Struct CargoPackage<TItem>
public struct CargoPackage<TItem> where TItem : unmanaged, IEquatable<TItem>
Type Parameters
TItem
- Extension Methods
Constructors
CargoPackage(short, TItem)
public CargoPackage(short amount, TItem item)
Parameters
amountshortitemTItem
Properties
Amount
public short Amount { readonly get; set; }
Property Value
- short
IsEmpty
public bool IsEmpty { get; }
Property Value
- bool
Item
public TItem Item { readonly get; set; }
Property Value
- TItem
Methods
Clear()
public void Clear()
ToString()
public override string ToString()
Returns
- string
TryGetItem(out TItem)
public readonly bool TryGetItem(out TItem item)
Parameters
itemTItem
Returns
- bool