Class TagRestriction
Restricts the inventory to only accept items that match the given tags.
Inheritance
System.Object
TagRestriction
Assembly: Eco.Gameplay.dll
Syntax
public class TagRestriction : InventoryRestriction
Constructors
TagRestriction(IEnumerable<Tag>)
Declaration
public TagRestriction(IEnumerable<Tag> allowedTags)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<Tag> |
allowedTags |
|
TagRestriction(String[])
Declaration
public TagRestriction(params string[] allowedTags)
Parameters
Type |
Name |
Description |
System.String[] |
allowedTags |
|
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