Class StackableRestriction
Restricts an inventory so it can only accept specific stackable items.
Inheritance
System.Object
StackableRestriction
Assembly: Eco.Gameplay.dll
Syntax
public class StackableRestriction : InventoryRestriction
Constructors
StackableRestriction(ItemRepresentation[])
Declaration
public StackableRestriction(ItemRepresentation[] allowedStackables)
Parameters
Properties
Message
Declaration
public override LocString Message { get; }
Property Value
Overrides
Methods
MaxAccepted(Item)
Declaration
public override int MaxAccepted(Item item)
Parameters
| Type |
Name |
Description |
| Item |
item |
|
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
Extension Methods