Table of Contents

Class ShroomDefinition

Namespace
S1API.Products
Assembly
S1API.dll

Represents a specific type of mushroom (shroom) product definition.

public sealed class ShroomDefinition : ProductDefinition
Inheritance
ShroomDefinition
Inherited Members
Extension Methods

Properties

AppearanceSettings

The appearance settings for this mushroom definition, including colors and visual properties.

public ShroomAppearanceSettings AppearanceSettings { get; }

Property Value

ShroomAppearanceSettings

BulkMaterial

The material used for rendering bulk mushrooms.

public Material BulkMaterial { get; }

Property Value

Material

EyeballMaterial

The material applied to character eyeballs when consuming mushrooms.

public Material EyeballMaterial { get; }

Property Value

Material

ShroomMaterial

The material used for rendering individual mushrooms.

public Material ShroomMaterial { get; }

Property Value

Material

Methods

CreateInstance(int)

Creates an instance of this mushroom product with the specified quantity.

public override ItemInstance CreateInstance(int quantity = 1)

Parameters

quantity int

The quantity of the product instance to create. Defaults to 1 if not specified.

Returns

ItemInstance

An ItemInstance representing the created mushroom product.

GetProperties()

Retrieves the list of properties associated with the mushroom product definition.

public List<PropertyBase> GetProperties()

Returns

List<PropertyBase>

A list of runtime-agnostic property wrappers that work on both Mono and IL2CPP.