Lines Matching full:sample
31 MyGame.Sample.Weapon.startWeapon(builder);
32 MyGame.Sample.Weapon.addName(builder, weaponOne);
33 MyGame.Sample.Weapon.addDamage(builder, 3);
34 var sword = MyGame.Sample.Weapon.endWeapon(builder);
36 MyGame.Sample.Weapon.startWeapon(builder);
37 MyGame.Sample.Weapon.addName(builder, weaponTwo);
38 MyGame.Sample.Weapon.addDamage(builder, 5);
39 var axe = MyGame.Sample.Weapon.endWeapon(builder);
45 var inv = MyGame.Sample.Monster.createInventoryVector(builder, treasure);
48 var weapons = MyGame.Sample.Monster.createWeaponsVector(builder, weaps);
50 var pos = MyGame.Sample.Vec3.createVec3(builder, 1.0, 2.0, 3.0);
52 MyGame.Sample.Monster.startMonster(builder);
53 MyGame.Sample.Monster.addPos(builder, pos);
54 MyGame.Sample.Monster.addHp(builder, 300);
55 MyGame.Sample.Monster.addColor(builder, MyGame.Sample.Color.Red)
56 MyGame.Sample.Monster.addName(builder, name);
57 MyGame.Sample.Monster.addInventory(builder, inv);
58 MyGame.Sample.Monster.addWeapons(builder, weapons);
59 MyGame.Sample.Monster.addEquippedType(builder, MyGame.Sample.Equipment.Weapon);
60 MyGame.Sample.Monster.addEquipped(builder, weaps[1]);
61 var orc = MyGame.Sample.Monster.endMonster(builder);
74 var monster = MyGame.Sample.Monster.getRootAsMonster(buf);
80 assert.equal(monster.color(), MyGame.Sample.Color.Red);
99 assert.equal(monster.equippedType(), MyGame.Sample.Equipment.Weapon);
100 assert.equal(monster.equipped(new MyGame.Sample.Weapon()).name(), 'Axe');
101 assert.equal(monster.equipped(new MyGame.Sample.Weapon()).damage(), 5);