Class RestrictionType
This helps in preparing a simple contextual error message for invalid inventory move (when all stacks produced a restriction). See TryGetBestRestrictionMessage(IEnumerable<InventoryRestriction>, out LocString).
Inheritance
System.Object
RestrictionType
Namespace: Eco.Gameplay.Items
Assembly: Eco.Gameplay.dll
Syntax
public sealed class RestrictionType : Enum
Fields
Space
When everything can be added to the inventory and the only limit is space (currently only serves Stockpile).
Declaration
public const RestrictionType Space
Field Value
Type | Description |
---|---|
RestrictionType |
Specialized
When only a specialized set of items can be added to the inventory (Fuel/Silo etc.).
Declaration
public const RestrictionType Specialized
Field Value
Type | Description |
---|---|
RestrictionType |
value__
Declaration
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |