Class RightsRestriction
Sets an inventory to only accept(or give) items if a player has proper rights.
Inheritance
System.Object
RightsRestriction
Assembly: Eco.Gameplay.dll
Syntax
public class RightsRestriction : InventoryRestriction
Constructors
RightsRestriction()
Declaration
public RightsRestriction()
Fields
RightsCheck
Declaration
public Func<User, bool> RightsCheck
Field Value
Type |
Description |
System.Func<User, System.Boolean> |
|
Properties
Message
Declaration
public override LocString Message { get; }
Property Value
Overrides
Methods
MaxAccepted(RestrictionCheckData, Item, Int32)
Declaration
public override int MaxAccepted(RestrictionCheckData checkData, Item item, int currentQuantity)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Overrides
MaxPickup(RestrictionCheckData, Item, Int32)
Declaration
public override int MaxPickup(RestrictionCheckData checkData, Item item, int currentQuantity)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Overrides
Extension Methods