Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame^] | 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; } } |
| 15 | public void __init(int _i, ByteBuffer _bb) { __p = new Struct(_i, _bb); } |
| 16 | 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); } } |
| 19 | 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); } } |
| 21 | public void MutateDistance(uint distance) { __p.bb.PutUint(__p.bb_pos + 4, distance); } |
| 22 | |
| 23 | public static Offset<MyGame.Example.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<MyGame.Example.Ability>(builder.Offset); |
| 28 | } |
| 29 | }; |
| 30 | |
| 31 | |
| 32 | } |