• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1--[[ MyGame.Example2.Monster
2
3  Automatically generated by the FlatBuffers compiler, do not modify.
4  Or modify. I'm a message, not a cop.
5
6  flatc version: 25.1.24
7
8  Declared by  : //monster_test.fbs
9  Rooting type : MyGame.Example.Monster (//monster_test.fbs)
10
11--]]
12
13local flatbuffers = require('flatbuffers')
14
15local Monster = {}
16local mt = {}
17
18function Monster.New()
19  local o = {}
20  setmetatable(o, {__index = mt})
21  return o
22end
23
24function mt:Init(buf, pos)
25  self.view = flatbuffers.view.New(buf, pos)
26end
27
28function Monster.Start(builder)
29  builder:StartObject(0)
30end
31
32function Monster.End(builder)
33  return builder:EndObject()
34end
35
36return Monster