1 // automatically generated by the FlatBuffers compiler, do not modify 2 3 package MyGame.Example 4 5 import java.nio.* 6 import kotlin.math.sign 7 import com.google.flatbuffers.* 8 9 @Suppress("unused") 10 class StructOfStructsOfStructs : Struct() { 11 __initnull12 fun __init(_i: Int, _bb: ByteBuffer) { 13 __reset(_i, _bb) 14 } __assignnull15 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()) anull20 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 } 39