Class SettlementRestriction
Sets an inventory to only accept items matching a specific settlement, for items associated with settlements
Inheritance
System.Object
SettlementRestriction
Assembly: Eco.Gameplay.dll
Syntax
public class SettlementRestriction : InventoryRestriction
Constructors
SettlementRestriction()
Declaration
public SettlementRestriction()
Fields
Settlement
Declaration
public Settlement Settlement
Field Value
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