Class PutOnlyRestriction
Prevents a user from picking up items from an inventory.
Inheritance
System.Object
PutOnlyRestriction
Assembly: Eco.Gameplay.dll
Syntax
public class PutOnlyRestriction : InventoryRestriction
Constructors
PutOnlyRestriction(Boolean)
Declaration
public PutOnlyRestriction(bool allowVehicleTransfer = true)
Parameters
Type |
Name |
Description |
System.Boolean |
allowVehicleTransfer |
|
Properties
Message
Declaration
public override LocString Message { get; }
Property Value
Overrides
Priority
Declaration
public override int Priority { get; }
Property Value
Type |
Description |
System.Int32 |
|
Overrides
Methods
MaxPickup(RestrictionCheckData, Item, Int32)
Declaration
public override int MaxPickup(RestrictionCheckData checkData, Item item, int currentQuantity)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Overrides
Extension Methods