Class TagStack
should handle all of the tags => item conversions and comparisons.
Tag stacks SHOULD NOT be used to represent actual items.
Mostly should be not-displayed to the user (crafting elements are used for that).
Inheritance
System.Object
TagStack
Implements
System.ComponentModel.INotifyPropertyChanged
System.ICloneable
Assembly: Eco.Gameplay.dll
public class TagStack : ItemStack, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, ICloneable, IStack
Constructors
Declaration
Declaration
public TagStack(Tag tag, Item item, int quantity, float fractionalQuantity)
Parameters
| Type |
Name |
Description |
| Tag |
tag |
|
| Item |
item |
|
| System.Int32 |
quantity |
|
| System.Single |
fractionalQuantity |
|
Declaration
public TagStack(string name, Item item, int quantity, float fractionalQuantity)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| Item |
item |
|
| System.Int32 |
quantity |
|
| System.Single |
fractionalQuantity |
|
Fields
Declaration
public float FractionalQuantity
Field Value
| Type |
Description |
| System.Single |
|
Properties
Declaration
public bool IsLiquid { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public bool IsSpecificItem { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public override ItemRepresentation StackObject { get; }
Property Value
Overrides
Declaration
Property Value
Declaration
public override string TypeString { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
Methods
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Declaration
public override int NumberToTake(Item item, int quantity)
Parameters
| Type |
Name |
Description |
| Item |
item |
|
| System.Int32 |
quantity |
|
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
Declaration
public int NumberToTake(ItemStack stack)
Parameters
Returns
| Type |
Description |
| System.Int32 |
|
Implements
System.ComponentModel.INotifyPropertyChanged
System.ICloneable
Extension Methods