Lines Matching refs:mon
18 local mon = monster.GetRootAsMonster(buf, offset)
19 assert(mon:Hp() == 80, "Monster Hp is not 80")
20 assert(mon:Mana() == 150, "Monster Mana is not 150")
21 assert(mon:Name() == "MyMonster", "Monster Name is not MyMonster")
23 local vec = assert(mon:Pos(), "Monster Position is nil")
37 assert(mon:TestType() == ut.Monster)
39 local table2 = mon:Test()
47 assert(mon:InventoryLength() == 5)
49 for i=1,mon:InventoryLength() do
50 local v = mon:Inventory(i)
56 assert(mon:VectorOfLongs(i) == 10^((i-1)*2))
60 for i=1,mon:VectorOfDoublesLength() do
61 assert(mon:VectorOfDoubles(i) == dbls[i])
64 assert(mon:Test4Length() == 2)
66 local test0 = mon:Test4(1)
67 local test1 = mon:Test4(2)
77 assert(mon:TestarrayofstringLength() == 2)
78 assert(mon:Testarrayofstring(1) == "test1")
79 assert(mon:Testarrayofstring(2) == "test2")
81 assert(mon:TestarrayoftablesLength() == 0)
82 assert(mon:TestnestedflatbufferLength() == 0)
83 assert(mon:Testempty() == nil)
142 local mon = monster.End(b)
145 b:FinishSizePrefixed(mon)
147 b:Finish(mon)