James Kuszmaul | 3b15b0c | 2022-11-08 14:03:16 -0800 | [diff] [blame^] | 1 | #[ MyGame.Example.StructOfStructsOfStructs |
| 2 | Automatically generated by the FlatBuffers compiler, do not modify. |
| 3 | Or modify. I'm a message, not a cop. |
| 4 | |
| 5 | flatc version: 22.10.26 |
| 6 | |
| 7 | Declared by : |
| 8 | Rooting type : MyGame.Example.Monster () |
| 9 | ]# |
| 10 | |
| 11 | import StructOfStructs as MyGame_Example_StructOfStructs |
| 12 | import flatbuffers |
| 13 | |
| 14 | type StructOfStructsOfStructs* = object of FlatObj |
| 15 | func a*(self: StructOfStructsOfStructs): MyGame_Example_StructOfStructs.StructOfStructs = |
| 16 | return MyGame_Example_StructOfStructs.StructOfStructs(tab: Vtable(Bytes: self.tab.Bytes, Pos: self.tab.Pos + 0)) |
| 17 | proc StructOfStructsOfStructsCreate*(self: var Builder, a_a_id: uint32, a_a_distance: uint32, a_b_a: int16, a_b_b: int8, a_c_id: uint32, a_c_distance: uint32): uoffset = |
| 18 | self.Prep(4, 20) |
| 19 | self.Prep(4, 20) |
| 20 | self.Prep(4, 8) |
| 21 | self.Prepend(a_c_distance) |
| 22 | self.Prepend(a_c_id) |
| 23 | self.Prep(2, 4) |
| 24 | self.Pad(1) |
| 25 | self.Prepend(a_b_b) |
| 26 | self.Prepend(a_b_a) |
| 27 | self.Prep(4, 8) |
| 28 | self.Prepend(a_a_distance) |
| 29 | self.Prepend(a_a_id) |
| 30 | return self.Offset() |