Class SpecificItemTypesRestriction
Restricts the inventory to only accept specific items
Inheritance
System.Object
SpecificItemTypesRestriction
Assembly: Eco.Gameplay.dll
Syntax
public class SpecificItemTypesRestriction : InventoryRestriction
Constructors
SpecificItemTypesRestriction(Type[])
Declaration
public SpecificItemTypesRestriction(params Type[] allowedTypes)
Parameters
Type |
Name |
Description |
System.Type[] |
allowedTypes |
|
Properties
Message
Declaration
public override LocString Message { 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