Lines Matching refs:monster

150 	for _, monster := range []*example.Monster{monster1, monster2} {
151 if got := monster.Hp(); 80 != got {
156 if got := monster.Mana(); 150 != got {
160 if got := monster.Name(); !bytes.Equal([]byte("MyMonster"), got) {
164 if got := monster.Color(); example.ColorBlue != got {
168 if got := monster.Testbool(); true != got {
174 vec = monster.Pos(vec)
180 vec2 := monster.Pos(nil)
228 if got := monster.TestType(); example.AnyMonster != got {
234 if ok := monster.Test(&table2); !ok {
246 inventorySlice := monster.InventoryBytes()
247 if len(inventorySlice) != monster.InventoryLength() {
248 …onster.InventoryBytes) != monster.InventoryLength", len(inventorySlice), monster.InventoryLength()…
251 if got := monster.InventoryLength(); 5 != got {
256 l := monster.InventoryLength()
258 v := monster.Inventory(i)
268 if got := monster.Test4Length(); 2 != got {
273 ok := monster.Test4(&test0, 0)
279 ok = monster.Test4(&test1, 1)
296 if got := monster.TestarrayofstringLength(); 2 != got {
300 if got := monster.Testarrayofstring(0); !bytes.Equal([]byte("test1"), got) {
304 if got := monster.Testarrayofstring(1); !bytes.Equal([]byte("test2"), got) {
318 monster := example.GetRootAsMonster(buf, offset)
327 testcase{"Hp", func() bool { return monster.Hp() == 80 }},
328 testcase{"Mana", func() bool { return monster.Mana() == 150 }},
329 testcase{"Testbool", func() bool { return monster.Testbool() == true }},
330 testcase{"Pos.X'", func() bool { return monster.Pos(nil).X() == float32(1.0) }},
331 testcase{"Pos.Y'", func() bool { return monster.Pos(nil).Y() == float32(2.0) }},
332 testcase{"Pos.Z'", func() bool { return monster.Pos(nil).Z() == float32(3.0) }},
333 testcase{"Pos.Test1'", func() bool { return monster.Pos(nil).Test1() == float64(3.0) }},
334 testcase{"Pos.Test2'", func() bool { return monster.Pos(nil).Test2() == int8(2) }},
335 testcase{"Pos.Test3.A", func() bool { return monster.Pos(nil).Test3(nil).A() == int16(5) }},
336 testcase{"Pos.Test3.B", func() bool { return monster.Pos(nil).Test3(nil).B() == int8(6) }},
340 testcase{"Hp", func() bool { return monster.MutateHp(70) }},
341 testcase{"Mana", func() bool { return !monster.MutateMana(140) }},
342 testcase{"Testbool", func() bool { return monster.MutateTestbool(false) }},
343 testcase{"Pos.X", func() bool { return monster.Pos(nil).MutateX(10.0) }},
344 testcase{"Pos.Y", func() bool { return monster.Pos(nil).MutateY(20.0) }},
345 testcase{"Pos.Z", func() bool { return monster.Pos(nil).MutateZ(30.0) }},
346 testcase{"Pos.Test1", func() bool { return monster.Pos(nil).MutateTest1(30.0) }},
347 testcase{"Pos.Test2", func() bool { return monster.Pos(nil).MutateTest2(20) }},
348 testcase{"Pos.Test3.A", func() bool { return monster.Pos(nil).Test3(nil).MutateA(50) }},
349 testcase{"Pos.Test3.B", func() bool { return monster.Pos(nil).Test3(nil).MutateB(60) }},
353 testcase{"Hp", func() bool { return monster.Hp() == 70 }},
354 testcase{"Mana", func() bool { return monster.Mana() == 150 }},
355 testcase{"Testbool", func() bool { return monster.Testbool() == false }},
356 testcase{"Pos.X'", func() bool { return monster.Pos(nil).X() == float32(10.0) }},
357 testcase{"Pos.Y'", func() bool { return monster.Pos(nil).Y() == float32(20.0) }},
358 testcase{"Pos.Z'", func() bool { return monster.Pos(nil).Z() == float32(30.0) }},
359 testcase{"Pos.Test1'", func() bool { return monster.Pos(nil).Test1() == float64(30.0) }},
360 testcase{"Pos.Test2'", func() bool { return monster.Pos(nil).Test2() == int8(20) }},
361 testcase{"Pos.Test3.A", func() bool { return monster.Pos(nil).Test3(nil).A() == int16(50) }},
362 testcase{"Pos.Test3.B", func() bool { return monster.Pos(nil).Test3(nil).B() == int8(60) }},
393 monster = example.GetRootAsMonster(buf, offset)
405 monster = example.GetRootAsMonster(buf, offset)
406 monster.MutateHp(80)
407 monster.MutateTestbool(true)
408 monster.Pos(nil).MutateX(1.0)
409 monster.Pos(nil).MutateY(2.0)
410 monster.Pos(nil).MutateZ(3.0)
411 monster.Pos(nil).MutateTest1(3.0)
412 monster.Pos(nil).MutateTest2(2)
413 monster.Pos(nil).Test3(nil).MutateA(5)
414 monster.Pos(nil).Test3(nil).MutateB(6)
1406 monster := example.GetRootAsMonster(buf, off)
1407 _ = monster.Hp()
1408 _ = monster.Pos(nil)
1409 for i := 0; i < monster.InventoryLength(); i++ {
1410 _ = monster.Inventory(i) // do something here
1710 monster := example.GetRootAsMonster(buf, offset)
1724 monster.Hp()
1725 monster.Mana()
1726 name := monster.Name()
1730 monster.Pos(&reuse_pos)
1739 monster.TestType()
1740 monster.Test(&reuse_table2)
1745 monster.InventoryLength()
1746 l := monster.InventoryLength()
1748 monster.Inventory(i)
1750 monster.Test4Length()
1751 monster.Test4(&reuse_test4_0, 0)
1752 monster.Test4(&reuse_test4_1, 1)
1759 monster.TestarrayofstringLength()
1760 str0 := monster.Testarrayofstring(0)
1763 str1 := monster.Testarrayofstring(1)