Show / Hide Table of Contents

Class WeightRestriction

Prohibits the inventory Prohibits from accepting items beyond the weight limit

Inheritance
System.Object
InventoryRestriction
WeightRestriction
Inherited Members
InventoryRestriction.MaxAccepted(Item)
InventoryRestriction.MaxPickup(RestrictionCheckData, Item, Int32)
InventoryRestriction.MaxAccepted(RestrictionCheckData, Item)
InventoryRestriction.Type
Namespace: Eco.Gameplay.Items
Assembly: Eco.Gameplay.dll
Syntax
public class WeightRestriction : InventoryRestriction

Properties

Message

Declaration
public override LocString Message { get; }
Property Value
Type Description
LocString
Overrides
InventoryRestriction.Message

Priority

Declaration
public override int Priority { get; }
Property Value
Type Description
System.Int32
Overrides
InventoryRestriction.Priority

Methods

Add(Inventory, Int32)

Declaration
public static WeightRestriction Add(Inventory inventory, int maxWeight)
Parameters
Type Name Description
Inventory inventory
System.Int32 maxWeight
Returns
Type Description
WeightRestriction

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
InventoryRestriction.MaxAccepted(Item, Int32)

MaxAccepted(RestrictionCheckData, Item, Int32)

Declaration
public override int MaxAccepted(RestrictionCheckData checkData, Item item, int currentQuantity)
Parameters
Type Name Description
RestrictionCheckData checkData
Item item
System.Int32 currentQuantity
Returns
Type Description
System.Int32
Overrides
InventoryRestriction.MaxAccepted(RestrictionCheckData, Item, Int32)

SetMaxWeight(Int32)

Declaration
public void SetMaxWeight(int maxWeight)
Parameters
Type Name Description
System.Int32 maxWeight

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾