blob: 955b600db326f1e65f71dccbaf13dd388b6134f0 [file] [log] [blame]
Austin Schuh2dd86a92022-09-14 21:19:23 -07001// automatically generated by the FlatBuffers compiler, do not modify
2
3package MyGame.Example
4
5import java.nio.*
6import kotlin.math.sign
7import com.google.flatbuffers.*
8
9@Suppress("unused")
10class StructOfStructsOfStructs : Struct() {
11
12 fun __init(_i: Int, _bb: ByteBuffer) {
13 __reset(_i, _bb)
14 }
15 fun __assign(_i: Int, _bb: ByteBuffer) : StructOfStructsOfStructs {
16 __init(_i, _bb)
17 return this
18 }
19 val a : MyGame.Example.StructOfStructs? get() = a(MyGame.Example.StructOfStructs())
20 fun a(obj: MyGame.Example.StructOfStructs) : MyGame.Example.StructOfStructs? = obj.__assign(bb_pos + 0, bb)
21 companion object {
22 fun createStructOfStructsOfStructs(builder: FlatBufferBuilder, a_a_id: UInt, a_a_distance: UInt, a_b_a: Short, a_b_b: Byte, a_c_id: UInt, a_c_distance: UInt) : Int {
23 builder.prep(4, 20)
24 builder.prep(4, 20)
25 builder.prep(4, 8)
26 builder.putInt(a_c_distance.toInt())
27 builder.putInt(a_c_id.toInt())
28 builder.prep(2, 4)
29 builder.pad(1)
30 builder.putByte(a_b_b)
31 builder.putShort(a_b_a)
32 builder.prep(4, 8)
33 builder.putInt(a_a_distance.toInt())
34 builder.putInt(a_a_id.toInt())
35 return builder.offset()
36 }
37 }
38}