Class StackLimitRestriction
Limits the inventory stack sizes to a different quantity than MaxStackSize
Inheritance
System.Object
StackLimitRestriction
Assembly: Eco.Gameplay.dll
Syntax
public class StackLimitRestriction : InventoryRestriction
Constructors
StackLimitRestriction(Int32, Boolean)
Declaration
public StackLimitRestriction(int maxItems, bool staticLimit = false)
Parameters
Type |
Name |
Description |
System.Int32 |
maxItems |
|
System.Boolean |
staticLimit |
|
Properties
Enabled
Declaration
public virtual bool Enabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
MaxItems
The maximum stack size allowed by the restriction.
Declaration
public virtual int MaxItems { get; protected set; }
Property Value
Type |
Description |
System.Int32 |
|
Message
Declaration
public override LocString Message { get; }
Property Value
Overrides
StaticLimit
If true this inventory restriction will not apply external modifiers to its settings.
Declaration
public virtual bool StaticLimit { get; protected set; }
Property Value
Type |
Description |
System.Boolean |
|
SurpassStackSize
Declaration
public override bool SurpassStackSize { get; }
Property Value
Type |
Description |
System.Boolean |
|
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