Lines Matching refs:monster
86 monster = MyGame.Example.Monster.Monster.GetRootAsMonster(buf, offset)
88 asserter(monster.Hp() == 80)
89 asserter(monster.Mana() == 150)
90 asserter(monster.Name() == b'MyMonster')
93 vec = monster.Pos()
114 asserter(monster.TestType() == union_type.Monster)
117 table2 = monster.Test()
127 asserter(monster.InventoryLength() == 5)
130 for i in compat_range(monster.InventoryLength()):
131 v = monster.Inventory(i)
136 asserter(monster.VectorOfLongs(i) == 10 ** (i * 2))
139 == [monster.VectorOfDoubles(i)
140 for i in range(monster.VectorOfDoublesLength())]))
148 asserter(monster.InventoryAsNumpy().sum() == 10)
149 asserter(monster.InventoryAsNumpy().dtype == np.dtype('uint8'))
151 VectorOfLongs = monster.VectorOfLongsAsNumpy()
156 VectorOfDoubles = monster.VectorOfDoublesAsNumpy()
169 asserter(monster.Test4Length() == 2)
172 test0 = monster.Test4(0)
175 test1 = monster.Test4(1)
188 asserter(monster.TestarrayofstringLength() == 2)
189 asserter(monster.Testarrayofstring(0) == b"test1")
190 asserter(monster.Testarrayofstring(1) == b"test2")
192 asserter(monster.TestarrayoftablesLength() == 0)
193 asserter(monster.TestnestedflatbufferLength() == 0)
194 asserter(monster.Testempty() is None)