Lines Matching refs:monster
20 let monster = MyGame_Example_GetRootAsMonster(buf)
22 assert monster.hp == 80
23 assert monster.mana == 150
24 assert monster.name == "MyMonster"
26 let vec = monster.pos
39 assert monster.test_type == MyGame_Example_Any_Monster
40 assert monster.test_as_Monster.name == "Fred"
42 assert monster.inventory_length == 5
43 assert sum(map(monster.inventory_length) i: monster.inventory(i)) == 10
46 assert monster.vector_of_longs(i) == pow(10, i * 2)
49 (map(monster.vector_of_doubles_length) i: monster.vector_of_doubles(i)))
51 assert monster.test4_length == 2
52 let test0 = monster.test4(0)
53 let test1 = monster.test4(1)
56 assert monster.testarrayofstring_length == 2
57 assert monster.testarrayofstring(0) == "test1"
58 assert monster.testarrayofstring(1) == "test2"
60 assert monster.testarrayoftables_length == 0
61 assert monster.testnestedflatbuffer_length == 0
62 assert not monster.testempty()