1 // <auto-generated> 2 // automatically generated by the FlatBuffers compiler, do not modify 3 // </auto-generated> 4 5 namespace MyGame.Example2 6 { 7 8 using global::System; 9 using global::FlatBuffers; 10 11 public struct Monster : IFlatbufferObject 12 { 13 private Table __p; 14 public ByteBuffer ByteBuffer { get { return __p.bb; } } 15 public static Monster GetRootAsMonster(ByteBuffer _bb) { return GetRootAsMonster(_bb, new Monster()); } 16 public static Monster GetRootAsMonster(ByteBuffer _bb, Monster obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } 17 public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; } 18 public Monster __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } 19 20 21 public static void StartMonster(FlatBufferBuilder builder) { builder.StartObject(0); } 22 public static Offset<Monster> EndMonster(FlatBufferBuilder builder) { 23 int o = builder.EndObject(); 24 return new Offset<Monster>(o); 25 } 26 }; 27 28 29 } 30