Class StackLimitTypeRestriction
Limit the inventory stack sizes to a different quantity than MaxStackSize depending on item type table
Inheritance
System.Object
StackLimitTypeRestriction
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
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
Extension Methods