Class ClothingRestriction
Restricts an inventory to only accept fitting a specific slot
Inheritance
System.Object
ClothingRestriction
Assembly: Eco.Gameplay.dll
Syntax
public class ClothingRestriction : InventoryRestriction
Constructors
ClothingRestriction(String, String)
Declaration
public ClothingRestriction(string slot, string failureMessage)
Parameters
Type |
Name |
Description |
System.String |
slot |
|
System.String |
failureMessage |
|
Properties
FailureMessage
Declaration
public string FailureMessage { get; }
Property Value
Type |
Description |
System.String |
|
Message
Declaration
public override LocString Message { get; }
Property Value
Overrides
Slot
Declaration
public string Slot { get; }
Property Value
Type |
Description |
System.String |
|
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