Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 1 | -- automatically generated by the FlatBuffers compiler, do not modify |
| 2 | |
| 3 | -- namespace: MyGame |
| 4 | |
| 5 | local flatbuffers = require('flatbuffers') |
| 6 | |
| 7 | local InParentNamespace = {} -- the module |
| 8 | local InParentNamespace_mt = {} -- the class metatable |
| 9 | |
| 10 | function InParentNamespace.New() |
| 11 | local o = {} |
| 12 | setmetatable(o, {__index = InParentNamespace_mt}) |
| 13 | return o |
| 14 | end |
| 15 | function InParentNamespace.GetRootAsInParentNamespace(buf, offset) |
| 16 | local n = flatbuffers.N.UOffsetT:Unpack(buf, offset) |
| 17 | local o = InParentNamespace.New() |
| 18 | o:Init(buf, n + offset) |
| 19 | return o |
| 20 | end |
| 21 | function InParentNamespace_mt:Init(buf, pos) |
| 22 | self.view = flatbuffers.view.New(buf, pos) |
| 23 | end |
| 24 | function InParentNamespace.Start(builder) builder:StartObject(0) end |
| 25 | function InParentNamespace.End(builder) return builder:EndObject() end |
| 26 | |
| 27 | return InParentNamespace -- return the module |