Class StockpileStackRestriction
Inheritance
System.Object
StockpileStackRestriction
Assembly: Eco.Gameplay.dll
Syntax
public class StockpileStackRestriction : InventoryRestriction
Constructors
StockpileStackRestriction(Int32)
Declaration
public StockpileStackRestriction(int maxStackHeight)
Parameters
Type |
Name |
Description |
System.Int32 |
maxStackHeight |
|
Properties
Message
Declaration
public override LocString Message { get; }
Property Value
Overrides
SurpassStackSize
Declaration
public override bool SurpassStackSize { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Type
Declaration
public override RestrictionType Type { get; }
Property Value
Overrides
Methods
MaxAccepted(Item, Int32)
Declaration
public override int MaxAccepted(Item item, int currentQuantity)
Parameters
Type |
Name |
Description |
Item |
item |
|
System.Int32 |
currentQuantity |
|
Returns
Type |
Description |
System.Int32 |
|
Overrides
Extension Methods