int slot = InventorySlots.GetSlotIdFromString("FireWood"); if (slot != InventorySlots.INVALID)
@NOTE the example looks in the DZ/data/config.cpp and searches for class entry Slot_##slot_name class Slot_Firewood { whatever };
i.e. it does NOT look at name= or displayName= attributes of the entry!
{
const int COUNT;
const int INVALID;
#ifdef DIAG_DEVELOPER
#else
#endif
static proto native int GetSlotIdFromString(string slot_name);
static proto native owned string GetSlotName(int id);
static proto native owned string GetSlotDisplayName(int id);
static proto native bool IsSlotIdValid(int slotId);
static proto native int GetStackMaxForSlotId(int slot_Id);
static proto native bool GetShowForSlotId(int slot_Id);
static proto native bool GetAutoAttachForSlotId(int slot_Id);
static proto bool GetBoneNameForSlotId(int slot_Id, out string bone_name);
static proto bool GetSelectionForSlotId(int slot_Id, out string selection);
};