Item registry.
Type: Reference type
Declaration | Description |
---|---|
int GetIdForName(const string& in szName) const | Gets the id associated with the given weapon name. Returns WEAPON_NONE if no id is associated with the given name. |
int RegisterItem(const string& in szName, const string& in szSpriteDir, const string& in szPrimaryAmmoName = "", const string& in szSecondaryAmmoName = "", const string& in szPrimaryAmmoClass = "", const string& in szSecondaryAmmoClass = "") | Registers the given entity name as an item and returns the id associated with it. Returns WEAPON_NONE if no id could be assigned to it. |
int RegisterWeapon(const string& in szName, const string& in szSpriteDir, const string& in szPrimaryAmmoName = "", const string& in szSecondaryAmmoName = "", const string& in szPrimaryAmmoClass = "", const string& in szSecondaryAmmoClass = "") | Registers the given entity name as a weapon and returns the id associated with it. Returns WEAPON_NONE if no id could be assigned to it. |