WEAPON_*
in the generated protocol.h above NUM_WEAPONS
?class Weapon_Plasma_Rifle(Struct):
def __init__(self):
Struct.__init__(self, "CDataWeaponspecPlasma_Rifle")
self.base = Pointer(WeaponSpec, WeaponSpec())
class Weapons(Struct):
def __init__(self):
Struct.__init__(self, "CDataWeaponspecs")
self.hammer = Weapon_Hammer()
self.gun = Weapon_Gun()
self.shotgun = Weapon_Shotgun()
self.grenade = Weapon_Grenade()
self.rifle = Weapon_Rifle()
self.ninja = Weapon_Ninja()
self.plasma_rifle = Weapon_Plasma_Rifle() <<<<<<<<<<<<<<
self.id = Array(WeaponSpec())
weapon = WeaponSpec(container, "plasma_rifle")
weapon.firedelay.Set(500)
container.weapons.plasma_rifle.base.Set(weapon)
container.weapons.id.Add(weapon)
EmitEnum(["WEAPON_%s"%i.name.value.upper() for i in content.container.weapons.id.items], "NUM_WEAPONS")
EmitEnum(["WEAPON_%s"%i.name.value.upper() for i in content.container.weapons.id.items], "WEAPON_PLASMA_RIFLE", "NUM_WEAPONS")