Lines Matching refs:Monster
7 local Monster = {} -- the module
10 function Monster.New()
15 function Monster.GetRootAsMonster(buf, offset)
17 local o = Monster.New()
108 function Monster.Start(builder) builder:StartObject(10) end
109 function Monster.AddPos(builder, pos) builder:PrependStructSlot(0, pos, 0) end
110 function Monster.AddMana(builder, mana) builder:PrependInt16Slot(1, mana, 150) end
111 function Monster.AddHp(builder, hp) builder:PrependInt16Slot(2, hp, 100) end
112 function Monster.AddName(builder, name) builder:PrependUOffsetTRelativeSlot(3, name, 0) end
113 function Monster.AddInventory(builder, inventory) builder:PrependUOffsetTRelativeSlot(5, inventory,…
114 function Monster.StartInventoryVector(builder, numElems) return builder:StartVector(1, numElems, 1)…
115 function Monster.AddColor(builder, color) builder:PrependInt8Slot(6, color, 2) end
116 function Monster.AddWeapons(builder, weapons) builder:PrependUOffsetTRelativeSlot(7, weapons, 0) end
117 function Monster.StartWeaponsVector(builder, numElems) return builder:StartVector(4, numElems, 4) e…
118 function Monster.AddEquippedType(builder, equippedType) builder:PrependUint8Slot(8, equippedType, 0…
119 function Monster.AddEquipped(builder, equipped) builder:PrependUOffsetTRelativeSlot(9, equipped, 0)…
120 function Monster.End(builder) return builder:EndObject() end
122 return Monster -- return the module