Class MaxStackSizeAttribute
Define the max stack size of the item. Difficulty Settings may increase this value (StackSizeModifier)
Inheritance
System.Object
MaxStackSizeAttribute
Assembly: Eco.Gameplay.dll
Syntax
public class MaxStackSizeAttribute : ItemAttribute
Constructors
MaxStackSizeAttribute()
Declaration
public MaxStackSizeAttribute()
MaxStackSizeAttribute(Int32)
Declaration
public MaxStackSizeAttribute(int maxStackSize)
Parameters
Type |
Name |
Description |
System.Int32 |
maxStackSize |
|
Properties
Default
Controls the default maximum stack size of items. Override this to change the global stack size of items that don't already have an instance of MaxStackSizeAttribute. Defaults to 100.
Declaration
public static int Default { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
MaxStackSize
Declaration
public int MaxStackSize { get; }
Property Value
Type |
Description |
System.Int32 |
|
Extension Methods