Empyrion: Galactic Survival Wiki
Advertisement

Index: GameAPI > CmdId

ItemStack[]

Class used to represent a single inventory item.

Properties[]

public int id;[]

Id representing item. Refer to list. https://docs.google.com/spreadsheets/d/1ktlhWztRGa2FuDkA9jDu2piIA_GeLe7oZrMVkk0CpMc/edit?usp=sharing

(Or refer to config_example.ecf file)

public int count;[]

Count of item from id (amount of this item).

public byte slotIdx;[]

Position of item in toolbar/backpack/countainer.

public int ammo;[]

Current ammo level of weapon. (If not a weapon, should be 0)

public int decay;[]

If perishable, state of items decay.

Methods[]

public ItemStack()[]

Constructor.

public ItemStack(int nid, int ncount)[]

Constructor, with parameters.

Advertisement