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)
Declaration
public override int MaxAccepted(Item item)
Parameters
| Type |
Name |
Description |
| Item |
item |
|
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
Extension Methods