Show / Hide Table of Contents

Class StackLimitRestriction

Limits the inventory stack sizes to a different quantity than MaxStackSize

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

Constructors

StackLimitRestriction(Int32, Boolean)

Declaration
public StackLimitRestriction(int maxItems, bool staticLimit = false)
Parameters
Type Name Description
System.Int32 maxItems
System.Boolean staticLimit

Properties

Enabled

Declaration
public virtual bool Enabled { get; }
Property Value
Type Description
System.Boolean

MaxItems

The maximum stack size allowed by the restriction.

Declaration
public virtual int MaxItems { get; protected set; }
Property Value
Type Description
System.Int32

Message

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

StaticLimit

If true this inventory restriction will not apply external modifiers to its settings.

Declaration
public virtual bool StaticLimit { get; protected set; }
Property Value
Type Description
System.Boolean

Methods

GetMaxItemsOverrider(Item)

Declaration
protected virtual int GetMaxItemsOverrider(Item item)
Parameters
Type Name Description
Item item
Returns
Type Description
System.Int32

MaxAccepted(Item)

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

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
☀
☾