Show / Hide Table of Contents

Class StackLimitTypeRestriction

Limit the inventory stack sizes to a different quantity than MaxStackSize depending on item type table

Inheritance
System.Object
InventoryRestriction
StackLimitRestriction
StackLimitTypeRestriction
Inherited Members
StackLimitRestriction.GetMaxItemsOverrider(Item)
StackLimitRestriction.MaxItems
StackLimitRestriction.StaticLimit
StackLimitRestriction.Message
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 StackLimitTypeRestriction : StackLimitRestriction

Constructors

StackLimitTypeRestriction(Boolean, Int32, Boolean)

Declaration
public StackLimitTypeRestriction(bool overrideOther = false, int defaultSize = 30, bool staticLimit = false)
Parameters
Type Name Description
System.Boolean overrideOther
System.Int32 defaultSize
System.Boolean staticLimit

Fields

StackSizeMap

Declaration
public Dictionary<Type, int> StackSizeMap
Field Value
Type Description
System.Collections.Generic.Dictionary<System.Type, System.Int32>

Properties

Enabled

Declaration
public override bool Enabled { get; }
Property Value
Type Description
System.Boolean
Overrides
StackLimitRestriction.Enabled

Methods

AddListRestriction(IEnumerable<Type>, Int32)

Declaration
public void AddListRestriction(IEnumerable<Type> items, int stackSize)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Type> items
System.Int32 stackSize

MaxAccepted(Item)

Declaration
public override int MaxAccepted(Item item)
Parameters
Type Name Description
Item item
Returns
Type Description
System.Int32
Overrides
StackLimitRestriction.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
☀
☾