1 // <auto-generated>
2 //  automatically generated by the FlatBuffers compiler, do not modify
3 // </auto-generated>
4 
5 using global::System;
6 using global::System.Collections.Generic;
7 using global::FlatBuffers;
8 
9 public struct Rapunzel : IFlatbufferObject
10 {
11   private Struct __p;
12   public ByteBuffer ByteBuffer { get { return __p.bb; } }
__initRapunzel13   public void __init(int _i, ByteBuffer _bb) { __p = new Struct(_i, _bb); }
__assignRapunzel14   public Rapunzel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
15 
16   public int HairLength { get { return __p.bb.GetInt(__p.bb_pos + 0); } }
MutateHairLengthRapunzel17   public void MutateHairLength(int hair_length) { __p.bb.PutInt(__p.bb_pos + 0, hair_length); }
18 
CreateRapunzelRapunzel19   public static Offset<Rapunzel> CreateRapunzel(FlatBufferBuilder builder, int HairLength) {
20     builder.Prep(4, 4);
21     builder.PutInt(HairLength);
22     return new Offset<Rapunzel>(builder.Offset);
23   }
UnPackRapunzel24   public RapunzelT UnPack() {
25     var _o = new RapunzelT();
26     this.UnPackTo(_o);
27     return _o;
28   }
UnPackToRapunzel29   public void UnPackTo(RapunzelT _o) {
30     _o.HairLength = this.HairLength;
31   }
PackRapunzel32   public static Offset<Rapunzel> Pack(FlatBufferBuilder builder, RapunzelT _o) {
33     if (_o == null) return default(Offset<Rapunzel>);
34     return CreateRapunzel(
35       builder,
36       _o.HairLength);
37   }
38 };
39 
40 public class RapunzelT
41 {
42   [Newtonsoft.Json.JsonProperty("hair_length")]
43   public int HairLength { get; set; }
44 
RapunzelT()45   public RapunzelT() {
46     this.HairLength = 0;
47   }
48 }
49 
50