Class ItemTypeLimiterRestriction
Restricts an inventory instance to only accept items matching the given types.
Inheritance
System.Object
ItemTypeLimiterRestriction
Assembly: Eco.Gameplay.dll
Syntax
public class ItemTypeLimiterRestriction : InventoryRestriction
Constructors
ItemTypeLimiterRestriction(Type[], LocString)
Declaration
public ItemTypeLimiterRestriction(Type[] types, LocString descriptor)
Parameters
| Type |
Name |
Description |
| System.Type[] |
types |
|
| LocString |
descriptor |
|
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