Lines Matching refs:weapon
483 local weapon = require("MyGame.Sample.Weapon")
798 weapon.Start(builder)
799 weapon.AddName(builder, weaponOne)
800 weapon.AddDamage(builder, 3)
801 local sword = weapon.End(builder)
804 weapon.Start(builder)
805 weapon.AddName(builder, weaponTwo)
806 weapon.AddDamage(builder, 5)
807 local axe = weapon.End(builder)
2030 local weapon = require("MyGame.Sample.Weapon")
2529 weapon := new(sample.Weapon) // We need a `sample.Weapon` to pass into `monster.Weapons()`
2531 if monster.Weapons(weapon, 1) {
2532 secondWeaponName := weapon.Name()
2533 secondWeaponDamage := weapon.Damage()
2618 auto weapon = static_cast<const Weapon*>(monster->equipped()); // Requires `static_cast`
2621 auto weapon_name = weapon->name()->str(); // "Axe"
2622 auto weapon_damage = weapon->damage(); // 5
2631 Weapon weapon = (Weapon)monster.equipped(new Weapon()); // Requires explicit cast
2634 String weaponName = weapon.name(); // "Axe"
2635 short weaponDamage = weapon.damage(); // 5
2644 var weapon = monster.Equipped<Weapon>().Value;
2646 var weaponName = weapon.Name; // "Axe"
2647 var weaponDamage = weapon.Damage; // 5
2723 ns(Weapon_table_t) weapon = ns(Monster_equipped(monster));
2724 const char *weapon_name = ns(Weapon_name(weapon)); // "Axe"
2725 uint16_t weapon_damage = ns(Weapon_damage(weapon)); // 5
2734 myGame.Weapon weapon = mon.equipped as myGame.Weapon;
2736 var weaponName = weapon.name; // "Axe"
2737 var weaponDamage = weapon.damage; // 5
2746 local unionWeapon = weapon.New()