1 // automatically generated by the FlatBuffers compiler, do not modify 2 3 package MyGame.Example2 4 5 import java.nio.* 6 import kotlin.math.sign 7 import com.google.flatbuffers.* 8 9 @Suppress("unused") 10 @ExperimentalUnsignedTypes 11 class Monster : Table() { 12 __initnull13 fun __init(_i: Int, _bb: ByteBuffer) { 14 __reset(_i, _bb) 15 } __assignnull16 fun __assign(_i: Int, _bb: ByteBuffer) : Monster { 17 __init(_i, _bb) 18 return this 19 } 20 companion object { validateVersionnull21 fun validateVersion() = Constants.FLATBUFFERS_2_0_0() 22 fun getRootAsMonster(_bb: ByteBuffer): Monster = getRootAsMonster(_bb, Monster()) 23 fun getRootAsMonster(_bb: ByteBuffer, obj: Monster): Monster { 24 _bb.order(ByteOrder.LITTLE_ENDIAN) 25 return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)) 26 } startMonsternull27 fun startMonster(builder: FlatBufferBuilder) = builder.startTable(0) 28 fun endMonster(builder: FlatBufferBuilder) : Int { 29 val o = builder.endTable() 30 return o 31 } 32 } 33 } 34