Lines Matching refs:sample
22 sample "MyGame/Sample" packageName
36 sample.WeaponStart(builder)
37 sample.WeaponAddName(builder, weaponOne)
38 sample.WeaponAddDamage(builder, 3)
39 sword := sample.WeaponEnd(builder)
41 sample.WeaponStart(builder)
42 sample.WeaponAddName(builder, weaponTwo)
43 sample.WeaponAddDamage(builder, 5)
44 axe := sample.WeaponEnd(builder)
49 sample.MonsterStartInventoryVector(builder, 10)
56 sample.MonsterStartWeaponsVector(builder, 2)
62 pos := sample.CreateVec3(builder, 1.0, 2.0, 3.0)
64 sample.MonsterStart(builder)
65 sample.MonsterAddPos(builder, pos)
66 sample.MonsterAddHp(builder, 300)
67 sample.MonsterAddName(builder, name)
68 sample.MonsterAddInventory(builder, inv)
69 sample.MonsterAddColor(builder, sample.ColorRed)
70 sample.MonsterAddWeapons(builder, weapons)
71 sample.MonsterAddEquippedType(builder, sample.EquipmentWeapon)
72 sample.MonsterAddEquipped(builder, axe)
73 orc := sample.MonsterEnd(builder)
90 monster := sample.GetRootAsMonster(buf, 0)
98 assert(monster.Color() == sample.ColorRed, "`monster.Color()`",
99 strconv.Itoa(int(monster.Color())), strconv.Itoa(int(sample.ColorRed)))
122 weapon := new(sample.Weapon) // We need a `sample.Weapon` to pass into `monster.Weapons()`
136 assert(monster.EquippedType() == sample.EquipmentWeapon, "`monster.EquippedType()`",
137 strconv.Itoa(int(monster.EquippedType())), strconv.Itoa(int(sample.EquipmentWeapon)))
145 if monster.EquippedType() == sample.EquipmentWeapon {
146 unionWeapon := new(sample.Weapon)