James Kuszmaul | 8e62b02 | 2022-03-22 09:33:25 -0700 | [diff] [blame] | 1 | --[[ MyGame.OtherNameSpace.Unused |
| 2 | |
| 3 | Automatically generated by the FlatBuffers compiler, do not modify. |
| 4 | Or modify. I'm a message, not a cop. |
| 5 | |
Austin Schuh | 2dd86a9 | 2022-09-14 21:19:23 -0700 | [diff] [blame^] | 6 | flatc version: 2.0.8 |
James Kuszmaul | 8e62b02 | 2022-03-22 09:33:25 -0700 | [diff] [blame] | 7 | |
| 8 | Declared by : //include_test/sub/include_test2.fbs |
| 9 | Rooting type : MyGame.Example.Monster (//monster_test.fbs) |
| 10 | |
| 11 | --]] |
| 12 | |
| 13 | local flatbuffers = require('flatbuffers') |
| 14 | |
| 15 | local Unused = {} |
| 16 | local mt = {} |
| 17 | |
| 18 | function Unused.New() |
| 19 | local o = {} |
| 20 | setmetatable(o, {__index = mt}) |
| 21 | return o |
| 22 | end |
| 23 | |
| 24 | function mt:Init(buf, pos) |
| 25 | self.view = flatbuffers.view.New(buf, pos) |
| 26 | end |
| 27 | |
| 28 | function mt:A() |
| 29 | return self.view:Get(flatbuffers.N.Int32, self.view.pos + 0) |
| 30 | end |
| 31 | |
| 32 | function Unused.CreateUnused(builder, a) |
| 33 | builder:Prep(4, 4) |
| 34 | builder:PrependInt32(a) |
| 35 | return builder:Offset() |
| 36 | end |
| 37 | |
| 38 | return Unused |