1 // <auto-generated> 2 // automatically generated by the FlatBuffers compiler, do not modify 3 // </auto-generated> 4 5 namespace MyGame.Example 6 { 7 8 using global::System; 9 using global::FlatBuffers; 10 11 public struct Ability : IFlatbufferObject 12 { 13 private Struct __p; 14 public ByteBuffer ByteBuffer { get { return __p.bb; } } __initMyGame.Example.Ability15 public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; } __assignMyGame.Example.Ability16 public Ability __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } 17 18 public uint Id { get { return __p.bb.GetUint(__p.bb_pos + 0); } } MutateIdMyGame.Example.Ability19 public void MutateId(uint id) { __p.bb.PutUint(__p.bb_pos + 0, id); } 20 public uint Distance { get { return __p.bb.GetUint(__p.bb_pos + 4); } } MutateDistanceMyGame.Example.Ability21 public void MutateDistance(uint distance) { __p.bb.PutUint(__p.bb_pos + 4, distance); } 22 CreateAbilityMyGame.Example.Ability23 public static Offset<Ability> CreateAbility(FlatBufferBuilder builder, uint Id, uint Distance) { 24 builder.Prep(4, 8); 25 builder.PutUint(Distance); 26 builder.PutUint(Id); 27 return new Offset<Ability>(builder.Offset); 28 } 29 }; 30 31 32 } 33