Show / Hide Table of Contents

Class MaxStackSizeAttribute

Define the max stack size of the item. Difficulty Settings may increase this value (StackSizeModifier)

Inheritance
System.Object
ItemAttribute
MaxStackSizeAttribute
Inherited Members
ItemAttribute.BuildCache(IEnumerable<Item>)
ItemAttribute.Has<T>(Type)
ItemAttribute.Has(Type, Type)
ItemAttribute.TryGet<T>(Type, T)
ItemAttribute.Get<T>(Type)
Namespace: Eco.Gameplay.Items
Assembly: Eco.Gameplay.dll
Syntax
public class MaxStackSizeAttribute : ItemAttribute

Constructors

MaxStackSizeAttribute()

Declaration
public MaxStackSizeAttribute()

MaxStackSizeAttribute(Int32)

Declaration
public MaxStackSizeAttribute(int maxStackSize)
Parameters
Type Name Description
System.Int32 maxStackSize

Properties

Default

Controls the default maximum stack size of items. Override this to change the global stack size of items that don't already have an instance of MaxStackSizeAttribute. Defaults to 100.

Declaration
public static int Default { get; set; }
Property Value
Type Description
System.Int32

MaxStackSize

Declaration
public int MaxStackSize { get; }
Property Value
Type Description
System.Int32

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