• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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::System.Collections.Generic;
10 using global::FlatBuffers;
11 
12 /// an example documentation comment: "monster object"
13 public struct Monster : IFlatbufferObject
14 {
15   private Table __p;
16   public ByteBuffer ByteBuffer { get { return __p.bb; } }
ValidateVersionMyGame.Example.Monster17   public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_2_0_0(); }
GetRootAsMonsterMyGame.Example.Monster18   public static Monster GetRootAsMonster(ByteBuffer _bb) { return GetRootAsMonster(_bb, new Monster()); }
GetRootAsMonsterMyGame.Example.Monster19   public static Monster GetRootAsMonster(ByteBuffer _bb, Monster obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
MonsterBufferHasIdentifierMyGame.Example.Monster20   public static bool MonsterBufferHasIdentifier(ByteBuffer _bb) { return Table.__has_identifier(_bb, "MONS"); }
__initMyGame.Example.Monster21   public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
__assignMyGame.Example.Monster22   public Monster __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
23 
24   public MyGame.Example.Vec3? Pos { get { int o = __p.__offset(4); return o != 0 ? (MyGame.Example.Vec3?)(new MyGame.Example.Vec3()).__assign(o + __p.bb_pos, __p.bb) : null; } }
25   public short Mana { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetShort(o + __p.bb_pos) : (short)150; } }
MutateManaMyGame.Example.Monster26   public bool MutateMana(short mana) { int o = __p.__offset(6); if (o != 0) { __p.bb.PutShort(o + __p.bb_pos, mana); return true; } else { return false; } }
27   public short Hp { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetShort(o + __p.bb_pos) : (short)100; } }
MutateHpMyGame.Example.Monster28   public bool MutateHp(short hp) { int o = __p.__offset(8); if (o != 0) { __p.bb.PutShort(o + __p.bb_pos, hp); return true; } else { return false; } }
29   public string Name { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
30 #if ENABLE_SPAN_T
GetNameBytesMyGame.Example.Monster31   public Span<byte> GetNameBytes() { return __p.__vector_as_span<byte>(10, 1); }
32 #else
GetNameBytesMyGame.Example.Monster33   public ArraySegment<byte>? GetNameBytes() { return __p.__vector_as_arraysegment(10); }
34 #endif
GetNameArrayMyGame.Example.Monster35   public byte[] GetNameArray() { return __p.__vector_as_array<byte>(10); }
InventoryMyGame.Example.Monster36   public byte Inventory(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.Get(__p.__vector(o) + j * 1) : (byte)0; }
37   public int InventoryLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } }
38 #if ENABLE_SPAN_T
GetInventoryBytesMyGame.Example.Monster39   public Span<byte> GetInventoryBytes() { return __p.__vector_as_span<byte>(14, 1); }
40 #else
GetInventoryBytesMyGame.Example.Monster41   public ArraySegment<byte>? GetInventoryBytes() { return __p.__vector_as_arraysegment(14); }
42 #endif
GetInventoryArrayMyGame.Example.Monster43   public byte[] GetInventoryArray() { return __p.__vector_as_array<byte>(14); }
MutateInventoryMyGame.Example.Monster44   public bool MutateInventory(int j, byte inventory) { int o = __p.__offset(14); if (o != 0) { __p.bb.Put(__p.__vector(o) + j * 1, inventory); return true; } else { return false; } }
45   public MyGame.Example.Color Color { get { int o = __p.__offset(16); return o != 0 ? (MyGame.Example.Color)__p.bb.Get(o + __p.bb_pos) : MyGame.Example.Color.Blue; } }
MutateColorMyGame.Example.Monster46   public bool MutateColor(MyGame.Example.Color color) { int o = __p.__offset(16); if (o != 0) { __p.bb.Put(o + __p.bb_pos, (byte)color); return true; } else { return false; } }
47   public MyGame.Example.Any TestType { get { int o = __p.__offset(18); return o != 0 ? (MyGame.Example.Any)__p.bb.Get(o + __p.bb_pos) : MyGame.Example.Any.NONE; } }
48   public TTable? Test<TTable>() where TTable : struct, IFlatbufferObject { int o = __p.__offset(20); return o != 0 ? (TTable?)__p.__union<TTable>(o + __p.bb_pos) : null; }
TestAsMonsterMyGame.Example.Monster49   public MyGame.Example.Monster TestAsMonster() { return Test<MyGame.Example.Monster>().Value; }
TestAsTestSimpleTableWithEnumMyGame.Example.Monster50   internal MyGame.Example.TestSimpleTableWithEnum TestAsTestSimpleTableWithEnum() { return Test<MyGame.Example.TestSimpleTableWithEnum>().Value; }
TestAsMyGame_Example2_MonsterMyGame.Example.Monster51   public MyGame.Example2.Monster TestAsMyGame_Example2_Monster() { return Test<MyGame.Example2.Monster>().Value; }
Test4MyGame.Example.Monster52   public MyGame.Example.Test? Test4(int j) { int o = __p.__offset(22); return o != 0 ? (MyGame.Example.Test?)(new MyGame.Example.Test()).__assign(__p.__vector(o) + j * 4, __p.bb) : null; }
53   public int Test4Length { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } }
TestarrayofstringMyGame.Example.Monster54   public string Testarrayofstring(int j) { int o = __p.__offset(24); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; }
55   public int TestarrayofstringLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } }
56   /// an example documentation comment: this will end up in the generated code
57   /// multiline too
TestarrayoftablesMyGame.Example.Monster58   public MyGame.Example.Monster? Testarrayoftables(int j) { int o = __p.__offset(26); return o != 0 ? (MyGame.Example.Monster?)(new MyGame.Example.Monster()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; }
59   public int TestarrayoftablesLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } }
TestarrayoftablesByKeyMyGame.Example.Monster60   public MyGame.Example.Monster? TestarrayoftablesByKey(string key) { int o = __p.__offset(26); return o != 0 ? MyGame.Example.Monster.__lookup_by_key(__p.__vector(o), key, __p.bb) : null; }
61   public MyGame.Example.Monster? Enemy { get { int o = __p.__offset(28); return o != 0 ? (MyGame.Example.Monster?)(new MyGame.Example.Monster()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } }
TestnestedflatbufferMyGame.Example.Monster62   public byte Testnestedflatbuffer(int j) { int o = __p.__offset(30); return o != 0 ? __p.bb.Get(__p.__vector(o) + j * 1) : (byte)0; }
63   public int TestnestedflatbufferLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } }
64 #if ENABLE_SPAN_T
GetTestnestedflatbufferBytesMyGame.Example.Monster65   public Span<byte> GetTestnestedflatbufferBytes() { return __p.__vector_as_span<byte>(30, 1); }
66 #else
GetTestnestedflatbufferBytesMyGame.Example.Monster67   public ArraySegment<byte>? GetTestnestedflatbufferBytes() { return __p.__vector_as_arraysegment(30); }
68 #endif
GetTestnestedflatbufferArrayMyGame.Example.Monster69   public byte[] GetTestnestedflatbufferArray() { return __p.__vector_as_array<byte>(30); }
GetTestnestedflatbufferAsMonsterMyGame.Example.Monster70   public MyGame.Example.Monster? GetTestnestedflatbufferAsMonster() { int o = __p.__offset(30); return o != 0 ? (MyGame.Example.Monster?)(new MyGame.Example.Monster()).__assign(__p.__indirect(__p.__vector(o)), __p.bb) : null; }
MutateTestnestedflatbufferMyGame.Example.Monster71   public bool MutateTestnestedflatbuffer(int j, byte testnestedflatbuffer) { int o = __p.__offset(30); if (o != 0) { __p.bb.Put(__p.__vector(o) + j * 1, testnestedflatbuffer); return true; } else { return false; } }
72   public MyGame.Example.Stat? Testempty { get { int o = __p.__offset(32); return o != 0 ? (MyGame.Example.Stat?)(new MyGame.Example.Stat()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } }
73   public bool Testbool { get { int o = __p.__offset(34); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
MutateTestboolMyGame.Example.Monster74   public bool MutateTestbool(bool testbool) { int o = __p.__offset(34); if (o != 0) { __p.bb.Put(o + __p.bb_pos, (byte)(testbool ? 1 : 0)); return true; } else { return false; } }
75   public int Testhashs32Fnv1 { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
MutateTesthashs32Fnv1MyGame.Example.Monster76   public bool MutateTesthashs32Fnv1(int testhashs32_fnv1) { int o = __p.__offset(36); if (o != 0) { __p.bb.PutInt(o + __p.bb_pos, testhashs32_fnv1); return true; } else { return false; } }
77   public uint Testhashu32Fnv1 { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
MutateTesthashu32Fnv1MyGame.Example.Monster78   public bool MutateTesthashu32Fnv1(uint testhashu32_fnv1) { int o = __p.__offset(38); if (o != 0) { __p.bb.PutUint(o + __p.bb_pos, testhashu32_fnv1); return true; } else { return false; } }
79   public long Testhashs64Fnv1 { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
MutateTesthashs64Fnv1MyGame.Example.Monster80   public bool MutateTesthashs64Fnv1(long testhashs64_fnv1) { int o = __p.__offset(40); if (o != 0) { __p.bb.PutLong(o + __p.bb_pos, testhashs64_fnv1); return true; } else { return false; } }
81   public ulong Testhashu64Fnv1 { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetUlong(o + __p.bb_pos) : (ulong)0; } }
MutateTesthashu64Fnv1MyGame.Example.Monster82   public bool MutateTesthashu64Fnv1(ulong testhashu64_fnv1) { int o = __p.__offset(42); if (o != 0) { __p.bb.PutUlong(o + __p.bb_pos, testhashu64_fnv1); return true; } else { return false; } }
83   public int Testhashs32Fnv1a { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
MutateTesthashs32Fnv1aMyGame.Example.Monster84   public bool MutateTesthashs32Fnv1a(int testhashs32_fnv1a) { int o = __p.__offset(44); if (o != 0) { __p.bb.PutInt(o + __p.bb_pos, testhashs32_fnv1a); return true; } else { return false; } }
85   public uint Testhashu32Fnv1a { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
MutateTesthashu32Fnv1aMyGame.Example.Monster86   public bool MutateTesthashu32Fnv1a(uint testhashu32_fnv1a) { int o = __p.__offset(46); if (o != 0) { __p.bb.PutUint(o + __p.bb_pos, testhashu32_fnv1a); return true; } else { return false; } }
87   public long Testhashs64Fnv1a { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
MutateTesthashs64Fnv1aMyGame.Example.Monster88   public bool MutateTesthashs64Fnv1a(long testhashs64_fnv1a) { int o = __p.__offset(48); if (o != 0) { __p.bb.PutLong(o + __p.bb_pos, testhashs64_fnv1a); return true; } else { return false; } }
89   public ulong Testhashu64Fnv1a { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetUlong(o + __p.bb_pos) : (ulong)0; } }
MutateTesthashu64Fnv1aMyGame.Example.Monster90   public bool MutateTesthashu64Fnv1a(ulong testhashu64_fnv1a) { int o = __p.__offset(50); if (o != 0) { __p.bb.PutUlong(o + __p.bb_pos, testhashu64_fnv1a); return true; } else { return false; } }
TestarrayofboolsMyGame.Example.Monster91   public bool Testarrayofbools(int j) { int o = __p.__offset(52); return o != 0 ? 0!=__p.bb.Get(__p.__vector(o) + j * 1) : false; }
92   public int TestarrayofboolsLength { get { int o = __p.__offset(52); return o != 0 ? __p.__vector_len(o) : 0; } }
93 #if ENABLE_SPAN_T
GetTestarrayofboolsBytesMyGame.Example.Monster94   public Span<bool> GetTestarrayofboolsBytes() { return __p.__vector_as_span<bool>(52, 1); }
95 #else
GetTestarrayofboolsBytesMyGame.Example.Monster96   public ArraySegment<byte>? GetTestarrayofboolsBytes() { return __p.__vector_as_arraysegment(52); }
97 #endif
GetTestarrayofboolsArrayMyGame.Example.Monster98   public bool[] GetTestarrayofboolsArray() { return __p.__vector_as_array<bool>(52); }
MutateTestarrayofboolsMyGame.Example.Monster99   public bool MutateTestarrayofbools(int j, bool testarrayofbools) { int o = __p.__offset(52); if (o != 0) { __p.bb.Put(__p.__vector(o) + j * 1, (byte)(testarrayofbools ? 1 : 0)); return true; } else { return false; } }
100   public float Testf { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)3.14159f; } }
MutateTestfMyGame.Example.Monster101   public bool MutateTestf(float testf) { int o = __p.__offset(54); if (o != 0) { __p.bb.PutFloat(o + __p.bb_pos, testf); return true; } else { return false; } }
102   public float Testf2 { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)3.0f; } }
MutateTestf2MyGame.Example.Monster103   public bool MutateTestf2(float testf2) { int o = __p.__offset(56); if (o != 0) { __p.bb.PutFloat(o + __p.bb_pos, testf2); return true; } else { return false; } }
104   public float Testf3 { get { int o = __p.__offset(58); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } }
MutateTestf3MyGame.Example.Monster105   public bool MutateTestf3(float testf3) { int o = __p.__offset(58); if (o != 0) { __p.bb.PutFloat(o + __p.bb_pos, testf3); return true; } else { return false; } }
Testarrayofstring2MyGame.Example.Monster106   public string Testarrayofstring2(int j) { int o = __p.__offset(60); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; }
107   public int Testarrayofstring2Length { get { int o = __p.__offset(60); return o != 0 ? __p.__vector_len(o) : 0; } }
TestarrayofsortedstructMyGame.Example.Monster108   public MyGame.Example.Ability? Testarrayofsortedstruct(int j) { int o = __p.__offset(62); return o != 0 ? (MyGame.Example.Ability?)(new MyGame.Example.Ability()).__assign(__p.__vector(o) + j * 8, __p.bb) : null; }
109   public int TestarrayofsortedstructLength { get { int o = __p.__offset(62); return o != 0 ? __p.__vector_len(o) : 0; } }
FlexMyGame.Example.Monster110   public byte Flex(int j) { int o = __p.__offset(64); return o != 0 ? __p.bb.Get(__p.__vector(o) + j * 1) : (byte)0; }
111   public int FlexLength { get { int o = __p.__offset(64); return o != 0 ? __p.__vector_len(o) : 0; } }
112 #if ENABLE_SPAN_T
GetFlexBytesMyGame.Example.Monster113   public Span<byte> GetFlexBytes() { return __p.__vector_as_span<byte>(64, 1); }
114 #else
GetFlexBytesMyGame.Example.Monster115   public ArraySegment<byte>? GetFlexBytes() { return __p.__vector_as_arraysegment(64); }
116 #endif
GetFlexArrayMyGame.Example.Monster117   public byte[] GetFlexArray() { return __p.__vector_as_array<byte>(64); }
MutateFlexMyGame.Example.Monster118   public bool MutateFlex(int j, byte flex) { int o = __p.__offset(64); if (o != 0) { __p.bb.Put(__p.__vector(o) + j * 1, flex); return true; } else { return false; } }
Test5MyGame.Example.Monster119   public MyGame.Example.Test? Test5(int j) { int o = __p.__offset(66); return o != 0 ? (MyGame.Example.Test?)(new MyGame.Example.Test()).__assign(__p.__vector(o) + j * 4, __p.bb) : null; }
120   public int Test5Length { get { int o = __p.__offset(66); return o != 0 ? __p.__vector_len(o) : 0; } }
VectorOfLongsMyGame.Example.Monster121   public long VectorOfLongs(int j) { int o = __p.__offset(68); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; }
122   public int VectorOfLongsLength { get { int o = __p.__offset(68); return o != 0 ? __p.__vector_len(o) : 0; } }
123 #if ENABLE_SPAN_T
GetVectorOfLongsBytesMyGame.Example.Monster124   public Span<long> GetVectorOfLongsBytes() { return __p.__vector_as_span<long>(68, 8); }
125 #else
GetVectorOfLongsBytesMyGame.Example.Monster126   public ArraySegment<byte>? GetVectorOfLongsBytes() { return __p.__vector_as_arraysegment(68); }
127 #endif
GetVectorOfLongsArrayMyGame.Example.Monster128   public long[] GetVectorOfLongsArray() { return __p.__vector_as_array<long>(68); }
MutateVectorOfLongsMyGame.Example.Monster129   public bool MutateVectorOfLongs(int j, long vector_of_longs) { int o = __p.__offset(68); if (o != 0) { __p.bb.PutLong(__p.__vector(o) + j * 8, vector_of_longs); return true; } else { return false; } }
VectorOfDoublesMyGame.Example.Monster130   public double VectorOfDoubles(int j) { int o = __p.__offset(70); return o != 0 ? __p.bb.GetDouble(__p.__vector(o) + j * 8) : (double)0; }
131   public int VectorOfDoublesLength { get { int o = __p.__offset(70); return o != 0 ? __p.__vector_len(o) : 0; } }
132 #if ENABLE_SPAN_T
GetVectorOfDoublesBytesMyGame.Example.Monster133   public Span<double> GetVectorOfDoublesBytes() { return __p.__vector_as_span<double>(70, 8); }
134 #else
GetVectorOfDoublesBytesMyGame.Example.Monster135   public ArraySegment<byte>? GetVectorOfDoublesBytes() { return __p.__vector_as_arraysegment(70); }
136 #endif
GetVectorOfDoublesArrayMyGame.Example.Monster137   public double[] GetVectorOfDoublesArray() { return __p.__vector_as_array<double>(70); }
MutateVectorOfDoublesMyGame.Example.Monster138   public bool MutateVectorOfDoubles(int j, double vector_of_doubles) { int o = __p.__offset(70); if (o != 0) { __p.bb.PutDouble(__p.__vector(o) + j * 8, vector_of_doubles); return true; } else { return false; } }
139   public MyGame.InParentNamespace? ParentNamespaceTest { get { int o = __p.__offset(72); return o != 0 ? (MyGame.InParentNamespace?)(new MyGame.InParentNamespace()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } }
VectorOfReferrablesMyGame.Example.Monster140   public MyGame.Example.Referrable? VectorOfReferrables(int j) { int o = __p.__offset(74); return o != 0 ? (MyGame.Example.Referrable?)(new MyGame.Example.Referrable()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; }
141   public int VectorOfReferrablesLength { get { int o = __p.__offset(74); return o != 0 ? __p.__vector_len(o) : 0; } }
VectorOfReferrablesByKeyMyGame.Example.Monster142   public MyGame.Example.Referrable? VectorOfReferrablesByKey(ulong key) { int o = __p.__offset(74); return o != 0 ? MyGame.Example.Referrable.__lookup_by_key(__p.__vector(o), key, __p.bb) : null; }
143   public ulong SingleWeakReference { get { int o = __p.__offset(76); return o != 0 ? __p.bb.GetUlong(o + __p.bb_pos) : (ulong)0; } }
MutateSingleWeakReferenceMyGame.Example.Monster144   public bool MutateSingleWeakReference(ulong single_weak_reference) { int o = __p.__offset(76); if (o != 0) { __p.bb.PutUlong(o + __p.bb_pos, single_weak_reference); return true; } else { return false; } }
VectorOfWeakReferencesMyGame.Example.Monster145   public ulong VectorOfWeakReferences(int j) { int o = __p.__offset(78); return o != 0 ? __p.bb.GetUlong(__p.__vector(o) + j * 8) : (ulong)0; }
146   public int VectorOfWeakReferencesLength { get { int o = __p.__offset(78); return o != 0 ? __p.__vector_len(o) : 0; } }
147 #if ENABLE_SPAN_T
GetVectorOfWeakReferencesBytesMyGame.Example.Monster148   public Span<ulong> GetVectorOfWeakReferencesBytes() { return __p.__vector_as_span<ulong>(78, 8); }
149 #else
GetVectorOfWeakReferencesBytesMyGame.Example.Monster150   public ArraySegment<byte>? GetVectorOfWeakReferencesBytes() { return __p.__vector_as_arraysegment(78); }
151 #endif
GetVectorOfWeakReferencesArrayMyGame.Example.Monster152   public ulong[] GetVectorOfWeakReferencesArray() { return __p.__vector_as_array<ulong>(78); }
MutateVectorOfWeakReferencesMyGame.Example.Monster153   public bool MutateVectorOfWeakReferences(int j, ulong vector_of_weak_references) { int o = __p.__offset(78); if (o != 0) { __p.bb.PutUlong(__p.__vector(o) + j * 8, vector_of_weak_references); return true; } else { return false; } }
VectorOfStrongReferrablesMyGame.Example.Monster154   public MyGame.Example.Referrable? VectorOfStrongReferrables(int j) { int o = __p.__offset(80); return o != 0 ? (MyGame.Example.Referrable?)(new MyGame.Example.Referrable()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; }
155   public int VectorOfStrongReferrablesLength { get { int o = __p.__offset(80); return o != 0 ? __p.__vector_len(o) : 0; } }
VectorOfStrongReferrablesByKeyMyGame.Example.Monster156   public MyGame.Example.Referrable? VectorOfStrongReferrablesByKey(ulong key) { int o = __p.__offset(80); return o != 0 ? MyGame.Example.Referrable.__lookup_by_key(__p.__vector(o), key, __p.bb) : null; }
157   public ulong CoOwningReference { get { int o = __p.__offset(82); return o != 0 ? __p.bb.GetUlong(o + __p.bb_pos) : (ulong)0; } }
MutateCoOwningReferenceMyGame.Example.Monster158   public bool MutateCoOwningReference(ulong co_owning_reference) { int o = __p.__offset(82); if (o != 0) { __p.bb.PutUlong(o + __p.bb_pos, co_owning_reference); return true; } else { return false; } }
VectorOfCoOwningReferencesMyGame.Example.Monster159   public ulong VectorOfCoOwningReferences(int j) { int o = __p.__offset(84); return o != 0 ? __p.bb.GetUlong(__p.__vector(o) + j * 8) : (ulong)0; }
160   public int VectorOfCoOwningReferencesLength { get { int o = __p.__offset(84); return o != 0 ? __p.__vector_len(o) : 0; } }
161 #if ENABLE_SPAN_T
GetVectorOfCoOwningReferencesBytesMyGame.Example.Monster162   public Span<ulong> GetVectorOfCoOwningReferencesBytes() { return __p.__vector_as_span<ulong>(84, 8); }
163 #else
GetVectorOfCoOwningReferencesBytesMyGame.Example.Monster164   public ArraySegment<byte>? GetVectorOfCoOwningReferencesBytes() { return __p.__vector_as_arraysegment(84); }
165 #endif
GetVectorOfCoOwningReferencesArrayMyGame.Example.Monster166   public ulong[] GetVectorOfCoOwningReferencesArray() { return __p.__vector_as_array<ulong>(84); }
MutateVectorOfCoOwningReferencesMyGame.Example.Monster167   public bool MutateVectorOfCoOwningReferences(int j, ulong vector_of_co_owning_references) { int o = __p.__offset(84); if (o != 0) { __p.bb.PutUlong(__p.__vector(o) + j * 8, vector_of_co_owning_references); return true; } else { return false; } }
168   public ulong NonOwningReference { get { int o = __p.__offset(86); return o != 0 ? __p.bb.GetUlong(o + __p.bb_pos) : (ulong)0; } }
MutateNonOwningReferenceMyGame.Example.Monster169   public bool MutateNonOwningReference(ulong non_owning_reference) { int o = __p.__offset(86); if (o != 0) { __p.bb.PutUlong(o + __p.bb_pos, non_owning_reference); return true; } else { return false; } }
VectorOfNonOwningReferencesMyGame.Example.Monster170   public ulong VectorOfNonOwningReferences(int j) { int o = __p.__offset(88); return o != 0 ? __p.bb.GetUlong(__p.__vector(o) + j * 8) : (ulong)0; }
171   public int VectorOfNonOwningReferencesLength { get { int o = __p.__offset(88); return o != 0 ? __p.__vector_len(o) : 0; } }
172 #if ENABLE_SPAN_T
GetVectorOfNonOwningReferencesBytesMyGame.Example.Monster173   public Span<ulong> GetVectorOfNonOwningReferencesBytes() { return __p.__vector_as_span<ulong>(88, 8); }
174 #else
GetVectorOfNonOwningReferencesBytesMyGame.Example.Monster175   public ArraySegment<byte>? GetVectorOfNonOwningReferencesBytes() { return __p.__vector_as_arraysegment(88); }
176 #endif
GetVectorOfNonOwningReferencesArrayMyGame.Example.Monster177   public ulong[] GetVectorOfNonOwningReferencesArray() { return __p.__vector_as_array<ulong>(88); }
MutateVectorOfNonOwningReferencesMyGame.Example.Monster178   public bool MutateVectorOfNonOwningReferences(int j, ulong vector_of_non_owning_references) { int o = __p.__offset(88); if (o != 0) { __p.bb.PutUlong(__p.__vector(o) + j * 8, vector_of_non_owning_references); return true; } else { return false; } }
179   public MyGame.Example.AnyUniqueAliases AnyUniqueType { get { int o = __p.__offset(90); return o != 0 ? (MyGame.Example.AnyUniqueAliases)__p.bb.Get(o + __p.bb_pos) : MyGame.Example.AnyUniqueAliases.NONE; } }
180   public TTable? AnyUnique<TTable>() where TTable : struct, IFlatbufferObject { int o = __p.__offset(92); return o != 0 ? (TTable?)__p.__union<TTable>(o + __p.bb_pos) : null; }
AnyUniqueAsMMyGame.Example.Monster181   public MyGame.Example.Monster AnyUniqueAsM() { return AnyUnique<MyGame.Example.Monster>().Value; }
AnyUniqueAsTSMyGame.Example.Monster182   internal MyGame.Example.TestSimpleTableWithEnum AnyUniqueAsTS() { return AnyUnique<MyGame.Example.TestSimpleTableWithEnum>().Value; }
AnyUniqueAsM2MyGame.Example.Monster183   public MyGame.Example2.Monster AnyUniqueAsM2() { return AnyUnique<MyGame.Example2.Monster>().Value; }
184   public MyGame.Example.AnyAmbiguousAliases AnyAmbiguousType { get { int o = __p.__offset(94); return o != 0 ? (MyGame.Example.AnyAmbiguousAliases)__p.bb.Get(o + __p.bb_pos) : MyGame.Example.AnyAmbiguousAliases.NONE; } }
185   public TTable? AnyAmbiguous<TTable>() where TTable : struct, IFlatbufferObject { int o = __p.__offset(96); return o != 0 ? (TTable?)__p.__union<TTable>(o + __p.bb_pos) : null; }
AnyAmbiguousAsM1MyGame.Example.Monster186   public MyGame.Example.Monster AnyAmbiguousAsM1() { return AnyAmbiguous<MyGame.Example.Monster>().Value; }
AnyAmbiguousAsM2MyGame.Example.Monster187   public MyGame.Example.Monster AnyAmbiguousAsM2() { return AnyAmbiguous<MyGame.Example.Monster>().Value; }
AnyAmbiguousAsM3MyGame.Example.Monster188   public MyGame.Example.Monster AnyAmbiguousAsM3() { return AnyAmbiguous<MyGame.Example.Monster>().Value; }
VectorOfEnumsMyGame.Example.Monster189   public MyGame.Example.Color VectorOfEnums(int j) { int o = __p.__offset(98); return o != 0 ? (MyGame.Example.Color)__p.bb.Get(__p.__vector(o) + j * 1) : (MyGame.Example.Color)0; }
190   public int VectorOfEnumsLength { get { int o = __p.__offset(98); return o != 0 ? __p.__vector_len(o) : 0; } }
191 #if ENABLE_SPAN_T
GetVectorOfEnumsBytesMyGame.Example.Monster192   public Span<MyGame.Example.Color> GetVectorOfEnumsBytes() { return __p.__vector_as_span<MyGame.Example.Color>(98, 1); }
193 #else
GetVectorOfEnumsBytesMyGame.Example.Monster194   public ArraySegment<byte>? GetVectorOfEnumsBytes() { return __p.__vector_as_arraysegment(98); }
195 #endif
GetVectorOfEnumsArrayMyGame.Example.Monster196   public MyGame.Example.Color[] GetVectorOfEnumsArray() { int o = __p.__offset(98); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); MyGame.Example.Color[] a = new MyGame.Example.Color[l]; for (int i = 0; i < l; i++) { a[i] = (MyGame.Example.Color)__p.bb.Get(p + i * 1); } return a; }
MutateVectorOfEnumsMyGame.Example.Monster197   public bool MutateVectorOfEnums(int j, MyGame.Example.Color vector_of_enums) { int o = __p.__offset(98); if (o != 0) { __p.bb.Put(__p.__vector(o) + j * 1, (byte)vector_of_enums); return true; } else { return false; } }
198   public MyGame.Example.Race SignedEnum { get { int o = __p.__offset(100); return o != 0 ? (MyGame.Example.Race)__p.bb.GetSbyte(o + __p.bb_pos) : MyGame.Example.Race.None; } }
MutateSignedEnumMyGame.Example.Monster199   public bool MutateSignedEnum(MyGame.Example.Race signed_enum) { int o = __p.__offset(100); if (o != 0) { __p.bb.PutSbyte(o + __p.bb_pos, (sbyte)signed_enum); return true; } else { return false; } }
TestrequirednestedflatbufferMyGame.Example.Monster200   public byte Testrequirednestedflatbuffer(int j) { int o = __p.__offset(102); return o != 0 ? __p.bb.Get(__p.__vector(o) + j * 1) : (byte)0; }
201   public int TestrequirednestedflatbufferLength { get { int o = __p.__offset(102); return o != 0 ? __p.__vector_len(o) : 0; } }
202 #if ENABLE_SPAN_T
GetTestrequirednestedflatbufferBytesMyGame.Example.Monster203   public Span<byte> GetTestrequirednestedflatbufferBytes() { return __p.__vector_as_span<byte>(102, 1); }
204 #else
GetTestrequirednestedflatbufferBytesMyGame.Example.Monster205   public ArraySegment<byte>? GetTestrequirednestedflatbufferBytes() { return __p.__vector_as_arraysegment(102); }
206 #endif
GetTestrequirednestedflatbufferArrayMyGame.Example.Monster207   public byte[] GetTestrequirednestedflatbufferArray() { return __p.__vector_as_array<byte>(102); }
GetTestrequirednestedflatbufferAsMonsterMyGame.Example.Monster208   public MyGame.Example.Monster? GetTestrequirednestedflatbufferAsMonster() { int o = __p.__offset(102); return o != 0 ? (MyGame.Example.Monster?)(new MyGame.Example.Monster()).__assign(__p.__indirect(__p.__vector(o)), __p.bb) : null; }
MutateTestrequirednestedflatbufferMyGame.Example.Monster209   public bool MutateTestrequirednestedflatbuffer(int j, byte testrequirednestedflatbuffer) { int o = __p.__offset(102); if (o != 0) { __p.bb.Put(__p.__vector(o) + j * 1, testrequirednestedflatbuffer); return true; } else { return false; } }
ScalarKeySortedTablesMyGame.Example.Monster210   public MyGame.Example.Stat? ScalarKeySortedTables(int j) { int o = __p.__offset(104); return o != 0 ? (MyGame.Example.Stat?)(new MyGame.Example.Stat()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; }
211   public int ScalarKeySortedTablesLength { get { int o = __p.__offset(104); return o != 0 ? __p.__vector_len(o) : 0; } }
ScalarKeySortedTablesByKeyMyGame.Example.Monster212   public MyGame.Example.Stat? ScalarKeySortedTablesByKey(ushort key) { int o = __p.__offset(104); return o != 0 ? MyGame.Example.Stat.__lookup_by_key(__p.__vector(o), key, __p.bb) : null; }
213   public MyGame.Example.Test? NativeInline { get { int o = __p.__offset(106); return o != 0 ? (MyGame.Example.Test?)(new MyGame.Example.Test()).__assign(o + __p.bb_pos, __p.bb) : null; } }
214   public MyGame.Example.LongEnum LongEnumNonEnumDefault { get { int o = __p.__offset(108); return o != 0 ? (MyGame.Example.LongEnum)__p.bb.GetUlong(o + __p.bb_pos) : 0; } }
MutateLongEnumNonEnumDefaultMyGame.Example.Monster215   public bool MutateLongEnumNonEnumDefault(MyGame.Example.LongEnum long_enum_non_enum_default) { int o = __p.__offset(108); if (o != 0) { __p.bb.PutUlong(o + __p.bb_pos, (ulong)long_enum_non_enum_default); return true; } else { return false; } }
216   public MyGame.Example.LongEnum LongEnumNormalDefault { get { int o = __p.__offset(110); return o != 0 ? (MyGame.Example.LongEnum)__p.bb.GetUlong(o + __p.bb_pos) : MyGame.Example.LongEnum.LongOne; } }
MutateLongEnumNormalDefaultMyGame.Example.Monster217   public bool MutateLongEnumNormalDefault(MyGame.Example.LongEnum long_enum_normal_default) { int o = __p.__offset(110); if (o != 0) { __p.bb.PutUlong(o + __p.bb_pos, (ulong)long_enum_normal_default); return true; } else { return false; } }
218 
CreateMonsterMyGame.Example.Monster219   public static Offset<MyGame.Example.Monster> CreateMonster(FlatBufferBuilder builder,
220       MyGame.Example.Vec3T pos = null,
221       short mana = 150,
222       short hp = 100,
223       StringOffset nameOffset = default(StringOffset),
224       VectorOffset inventoryOffset = default(VectorOffset),
225       MyGame.Example.Color color = MyGame.Example.Color.Blue,
226       MyGame.Example.Any test_type = MyGame.Example.Any.NONE,
227       int testOffset = 0,
228       VectorOffset test4Offset = default(VectorOffset),
229       VectorOffset testarrayofstringOffset = default(VectorOffset),
230       VectorOffset testarrayoftablesOffset = default(VectorOffset),
231       Offset<MyGame.Example.Monster> enemyOffset = default(Offset<MyGame.Example.Monster>),
232       VectorOffset testnestedflatbufferOffset = default(VectorOffset),
233       Offset<MyGame.Example.Stat> testemptyOffset = default(Offset<MyGame.Example.Stat>),
234       bool testbool = false,
235       int testhashs32_fnv1 = 0,
236       uint testhashu32_fnv1 = 0,
237       long testhashs64_fnv1 = 0,
238       ulong testhashu64_fnv1 = 0,
239       int testhashs32_fnv1a = 0,
240       uint testhashu32_fnv1a = 0,
241       long testhashs64_fnv1a = 0,
242       ulong testhashu64_fnv1a = 0,
243       VectorOffset testarrayofboolsOffset = default(VectorOffset),
244       float testf = 3.14159f,
245       float testf2 = 3.0f,
246       float testf3 = 0.0f,
247       VectorOffset testarrayofstring2Offset = default(VectorOffset),
248       VectorOffset testarrayofsortedstructOffset = default(VectorOffset),
249       VectorOffset flexOffset = default(VectorOffset),
250       VectorOffset test5Offset = default(VectorOffset),
251       VectorOffset vector_of_longsOffset = default(VectorOffset),
252       VectorOffset vector_of_doublesOffset = default(VectorOffset),
253       Offset<MyGame.InParentNamespace> parent_namespace_testOffset = default(Offset<MyGame.InParentNamespace>),
254       VectorOffset vector_of_referrablesOffset = default(VectorOffset),
255       ulong single_weak_reference = 0,
256       VectorOffset vector_of_weak_referencesOffset = default(VectorOffset),
257       VectorOffset vector_of_strong_referrablesOffset = default(VectorOffset),
258       ulong co_owning_reference = 0,
259       VectorOffset vector_of_co_owning_referencesOffset = default(VectorOffset),
260       ulong non_owning_reference = 0,
261       VectorOffset vector_of_non_owning_referencesOffset = default(VectorOffset),
262       MyGame.Example.AnyUniqueAliases any_unique_type = MyGame.Example.AnyUniqueAliases.NONE,
263       int any_uniqueOffset = 0,
264       MyGame.Example.AnyAmbiguousAliases any_ambiguous_type = MyGame.Example.AnyAmbiguousAliases.NONE,
265       int any_ambiguousOffset = 0,
266       VectorOffset vector_of_enumsOffset = default(VectorOffset),
267       MyGame.Example.Race signed_enum = MyGame.Example.Race.None,
268       VectorOffset testrequirednestedflatbufferOffset = default(VectorOffset),
269       VectorOffset scalar_key_sorted_tablesOffset = default(VectorOffset),
270       MyGame.Example.TestT native_inline = null,
271       MyGame.Example.LongEnum long_enum_non_enum_default = 0,
272       MyGame.Example.LongEnum long_enum_normal_default = MyGame.Example.LongEnum.LongOne) {
273     builder.StartTable(54);
274     Monster.AddLongEnumNormalDefault(builder, long_enum_normal_default);
275     Monster.AddLongEnumNonEnumDefault(builder, long_enum_non_enum_default);
276     Monster.AddNonOwningReference(builder, non_owning_reference);
277     Monster.AddCoOwningReference(builder, co_owning_reference);
278     Monster.AddSingleWeakReference(builder, single_weak_reference);
279     Monster.AddTesthashu64Fnv1a(builder, testhashu64_fnv1a);
280     Monster.AddTesthashs64Fnv1a(builder, testhashs64_fnv1a);
281     Monster.AddTesthashu64Fnv1(builder, testhashu64_fnv1);
282     Monster.AddTesthashs64Fnv1(builder, testhashs64_fnv1);
283     Monster.AddNativeInline(builder, MyGame.Example.Test.Pack(builder, native_inline));
284     Monster.AddScalarKeySortedTables(builder, scalar_key_sorted_tablesOffset);
285     Monster.AddTestrequirednestedflatbuffer(builder, testrequirednestedflatbufferOffset);
286     Monster.AddVectorOfEnums(builder, vector_of_enumsOffset);
287     Monster.AddAnyAmbiguous(builder, any_ambiguousOffset);
288     Monster.AddAnyUnique(builder, any_uniqueOffset);
289     Monster.AddVectorOfNonOwningReferences(builder, vector_of_non_owning_referencesOffset);
290     Monster.AddVectorOfCoOwningReferences(builder, vector_of_co_owning_referencesOffset);
291     Monster.AddVectorOfStrongReferrables(builder, vector_of_strong_referrablesOffset);
292     Monster.AddVectorOfWeakReferences(builder, vector_of_weak_referencesOffset);
293     Monster.AddVectorOfReferrables(builder, vector_of_referrablesOffset);
294     Monster.AddParentNamespaceTest(builder, parent_namespace_testOffset);
295     Monster.AddVectorOfDoubles(builder, vector_of_doublesOffset);
296     Monster.AddVectorOfLongs(builder, vector_of_longsOffset);
297     Monster.AddTest5(builder, test5Offset);
298     Monster.AddFlex(builder, flexOffset);
299     Monster.AddTestarrayofsortedstruct(builder, testarrayofsortedstructOffset);
300     Monster.AddTestarrayofstring2(builder, testarrayofstring2Offset);
301     Monster.AddTestf3(builder, testf3);
302     Monster.AddTestf2(builder, testf2);
303     Monster.AddTestf(builder, testf);
304     Monster.AddTestarrayofbools(builder, testarrayofboolsOffset);
305     Monster.AddTesthashu32Fnv1a(builder, testhashu32_fnv1a);
306     Monster.AddTesthashs32Fnv1a(builder, testhashs32_fnv1a);
307     Monster.AddTesthashu32Fnv1(builder, testhashu32_fnv1);
308     Monster.AddTesthashs32Fnv1(builder, testhashs32_fnv1);
309     Monster.AddTestempty(builder, testemptyOffset);
310     Monster.AddTestnestedflatbuffer(builder, testnestedflatbufferOffset);
311     Monster.AddEnemy(builder, enemyOffset);
312     Monster.AddTestarrayoftables(builder, testarrayoftablesOffset);
313     Monster.AddTestarrayofstring(builder, testarrayofstringOffset);
314     Monster.AddTest4(builder, test4Offset);
315     Monster.AddTest(builder, testOffset);
316     Monster.AddInventory(builder, inventoryOffset);
317     Monster.AddName(builder, nameOffset);
318     Monster.AddPos(builder, MyGame.Example.Vec3.Pack(builder, pos));
319     Monster.AddHp(builder, hp);
320     Monster.AddMana(builder, mana);
321     Monster.AddSignedEnum(builder, signed_enum);
322     Monster.AddAnyAmbiguousType(builder, any_ambiguous_type);
323     Monster.AddAnyUniqueType(builder, any_unique_type);
324     Monster.AddTestbool(builder, testbool);
325     Monster.AddTestType(builder, test_type);
326     Monster.AddColor(builder, color);
327     return Monster.EndMonster(builder);
328   }
329 
StartMonsterMyGame.Example.Monster330   public static void StartMonster(FlatBufferBuilder builder) { builder.StartTable(54); }
AddPosMyGame.Example.Monster331   public static void AddPos(FlatBufferBuilder builder, Offset<MyGame.Example.Vec3> posOffset) { builder.AddStruct(0, posOffset.Value, 0); }
AddManaMyGame.Example.Monster332   public static void AddMana(FlatBufferBuilder builder, short mana) { builder.AddShort(1, mana, 150); }
AddHpMyGame.Example.Monster333   public static void AddHp(FlatBufferBuilder builder, short hp) { builder.AddShort(2, hp, 100); }
AddNameMyGame.Example.Monster334   public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(3, nameOffset.Value, 0); }
AddInventoryMyGame.Example.Monster335   public static void AddInventory(FlatBufferBuilder builder, VectorOffset inventoryOffset) { builder.AddOffset(5, inventoryOffset.Value, 0); }
CreateInventoryVectorMyGame.Example.Monster336   public static VectorOffset CreateInventoryVector(FlatBufferBuilder builder, byte[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte(data[i]); return builder.EndVector(); }
CreateInventoryVectorBlockMyGame.Example.Monster337   public static VectorOffset CreateInventoryVectorBlock(FlatBufferBuilder builder, byte[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); }
CreateInventoryVectorBlockMyGame.Example.Monster338   public static VectorOffset CreateInventoryVectorBlock(FlatBufferBuilder builder, ArraySegment<byte> data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); }
CreateInventoryVectorBlockMyGame.Example.Monster339   public static VectorOffset CreateInventoryVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<byte>(dataPtr, sizeInBytes); return builder.EndVector(); }
StartInventoryVectorMyGame.Example.Monster340   public static void StartInventoryVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); }
AddColorMyGame.Example.Monster341   public static void AddColor(FlatBufferBuilder builder, MyGame.Example.Color color) { builder.AddByte(6, (byte)color, 8); }
AddTestTypeMyGame.Example.Monster342   public static void AddTestType(FlatBufferBuilder builder, MyGame.Example.Any testType) { builder.AddByte(7, (byte)testType, 0); }
AddTestMyGame.Example.Monster343   public static void AddTest(FlatBufferBuilder builder, int testOffset) { builder.AddOffset(8, testOffset, 0); }
AddTest4MyGame.Example.Monster344   public static void AddTest4(FlatBufferBuilder builder, VectorOffset test4Offset) { builder.AddOffset(9, test4Offset.Value, 0); }
StartTest4VectorMyGame.Example.Monster345   public static void StartTest4Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 2); }
AddTestarrayofstringMyGame.Example.Monster346   public static void AddTestarrayofstring(FlatBufferBuilder builder, VectorOffset testarrayofstringOffset) { builder.AddOffset(10, testarrayofstringOffset.Value, 0); }
CreateTestarrayofstringVectorMyGame.Example.Monster347   public static VectorOffset CreateTestarrayofstringVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); }
CreateTestarrayofstringVectorBlockMyGame.Example.Monster348   public static VectorOffset CreateTestarrayofstringVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
CreateTestarrayofstringVectorBlockMyGame.Example.Monster349   public static VectorOffset CreateTestarrayofstringVectorBlock(FlatBufferBuilder builder, ArraySegment<StringOffset> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
CreateTestarrayofstringVectorBlockMyGame.Example.Monster350   public static VectorOffset CreateTestarrayofstringVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<StringOffset>(dataPtr, sizeInBytes); return builder.EndVector(); }
StartTestarrayofstringVectorMyGame.Example.Monster351   public static void StartTestarrayofstringVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
AddTestarrayoftablesMyGame.Example.Monster352   public static void AddTestarrayoftables(FlatBufferBuilder builder, VectorOffset testarrayoftablesOffset) { builder.AddOffset(11, testarrayoftablesOffset.Value, 0); }
CreateTestarrayoftablesVectorMyGame.Example.Monster353   public static VectorOffset CreateTestarrayoftablesVector(FlatBufferBuilder builder, Offset<MyGame.Example.Monster>[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); }
CreateTestarrayoftablesVectorBlockMyGame.Example.Monster354   public static VectorOffset CreateTestarrayoftablesVectorBlock(FlatBufferBuilder builder, Offset<MyGame.Example.Monster>[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
CreateTestarrayoftablesVectorBlockMyGame.Example.Monster355   public static VectorOffset CreateTestarrayoftablesVectorBlock(FlatBufferBuilder builder, ArraySegment<Offset<MyGame.Example.Monster>> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
CreateTestarrayoftablesVectorBlockMyGame.Example.Monster356   public static VectorOffset CreateTestarrayoftablesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<Offset<MyGame.Example.Monster>>(dataPtr, sizeInBytes); return builder.EndVector(); }
StartTestarrayoftablesVectorMyGame.Example.Monster357   public static void StartTestarrayoftablesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
AddEnemyMyGame.Example.Monster358   public static void AddEnemy(FlatBufferBuilder builder, Offset<MyGame.Example.Monster> enemyOffset) { builder.AddOffset(12, enemyOffset.Value, 0); }
AddTestnestedflatbufferMyGame.Example.Monster359   public static void AddTestnestedflatbuffer(FlatBufferBuilder builder, VectorOffset testnestedflatbufferOffset) { builder.AddOffset(13, testnestedflatbufferOffset.Value, 0); }
CreateTestnestedflatbufferVectorMyGame.Example.Monster360   public static VectorOffset CreateTestnestedflatbufferVector(FlatBufferBuilder builder, byte[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte(data[i]); return builder.EndVector(); }
CreateTestnestedflatbufferVectorBlockMyGame.Example.Monster361   public static VectorOffset CreateTestnestedflatbufferVectorBlock(FlatBufferBuilder builder, byte[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); }
CreateTestnestedflatbufferVectorBlockMyGame.Example.Monster362   public static VectorOffset CreateTestnestedflatbufferVectorBlock(FlatBufferBuilder builder, ArraySegment<byte> data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); }
CreateTestnestedflatbufferVectorBlockMyGame.Example.Monster363   public static VectorOffset CreateTestnestedflatbufferVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<byte>(dataPtr, sizeInBytes); return builder.EndVector(); }
StartTestnestedflatbufferVectorMyGame.Example.Monster364   public static void StartTestnestedflatbufferVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); }
AddTestemptyMyGame.Example.Monster365   public static void AddTestempty(FlatBufferBuilder builder, Offset<MyGame.Example.Stat> testemptyOffset) { builder.AddOffset(14, testemptyOffset.Value, 0); }
AddTestboolMyGame.Example.Monster366   public static void AddTestbool(FlatBufferBuilder builder, bool testbool) { builder.AddBool(15, testbool, false); }
AddTesthashs32Fnv1MyGame.Example.Monster367   public static void AddTesthashs32Fnv1(FlatBufferBuilder builder, int testhashs32Fnv1) { builder.AddInt(16, testhashs32Fnv1, 0); }
AddTesthashu32Fnv1MyGame.Example.Monster368   public static void AddTesthashu32Fnv1(FlatBufferBuilder builder, uint testhashu32Fnv1) { builder.AddUint(17, testhashu32Fnv1, 0); }
AddTesthashs64Fnv1MyGame.Example.Monster369   public static void AddTesthashs64Fnv1(FlatBufferBuilder builder, long testhashs64Fnv1) { builder.AddLong(18, testhashs64Fnv1, 0); }
AddTesthashu64Fnv1MyGame.Example.Monster370   public static void AddTesthashu64Fnv1(FlatBufferBuilder builder, ulong testhashu64Fnv1) { builder.AddUlong(19, testhashu64Fnv1, 0); }
AddTesthashs32Fnv1aMyGame.Example.Monster371   public static void AddTesthashs32Fnv1a(FlatBufferBuilder builder, int testhashs32Fnv1a) { builder.AddInt(20, testhashs32Fnv1a, 0); }
AddTesthashu32Fnv1aMyGame.Example.Monster372   public static void AddTesthashu32Fnv1a(FlatBufferBuilder builder, uint testhashu32Fnv1a) { builder.AddUint(21, testhashu32Fnv1a, 0); }
AddTesthashs64Fnv1aMyGame.Example.Monster373   public static void AddTesthashs64Fnv1a(FlatBufferBuilder builder, long testhashs64Fnv1a) { builder.AddLong(22, testhashs64Fnv1a, 0); }
AddTesthashu64Fnv1aMyGame.Example.Monster374   public static void AddTesthashu64Fnv1a(FlatBufferBuilder builder, ulong testhashu64Fnv1a) { builder.AddUlong(23, testhashu64Fnv1a, 0); }
AddTestarrayofboolsMyGame.Example.Monster375   public static void AddTestarrayofbools(FlatBufferBuilder builder, VectorOffset testarrayofboolsOffset) { builder.AddOffset(24, testarrayofboolsOffset.Value, 0); }
CreateTestarrayofboolsVectorMyGame.Example.Monster376   public static VectorOffset CreateTestarrayofboolsVector(FlatBufferBuilder builder, bool[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddBool(data[i]); return builder.EndVector(); }
CreateTestarrayofboolsVectorBlockMyGame.Example.Monster377   public static VectorOffset CreateTestarrayofboolsVectorBlock(FlatBufferBuilder builder, bool[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); }
CreateTestarrayofboolsVectorBlockMyGame.Example.Monster378   public static VectorOffset CreateTestarrayofboolsVectorBlock(FlatBufferBuilder builder, ArraySegment<bool> data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); }
CreateTestarrayofboolsVectorBlockMyGame.Example.Monster379   public static VectorOffset CreateTestarrayofboolsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<bool>(dataPtr, sizeInBytes); return builder.EndVector(); }
StartTestarrayofboolsVectorMyGame.Example.Monster380   public static void StartTestarrayofboolsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); }
AddTestfMyGame.Example.Monster381   public static void AddTestf(FlatBufferBuilder builder, float testf) { builder.AddFloat(25, testf, 3.14159f); }
AddTestf2MyGame.Example.Monster382   public static void AddTestf2(FlatBufferBuilder builder, float testf2) { builder.AddFloat(26, testf2, 3.0f); }
AddTestf3MyGame.Example.Monster383   public static void AddTestf3(FlatBufferBuilder builder, float testf3) { builder.AddFloat(27, testf3, 0.0f); }
AddTestarrayofstring2MyGame.Example.Monster384   public static void AddTestarrayofstring2(FlatBufferBuilder builder, VectorOffset testarrayofstring2Offset) { builder.AddOffset(28, testarrayofstring2Offset.Value, 0); }
CreateTestarrayofstring2VectorMyGame.Example.Monster385   public static VectorOffset CreateTestarrayofstring2Vector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); }
CreateTestarrayofstring2VectorBlockMyGame.Example.Monster386   public static VectorOffset CreateTestarrayofstring2VectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
CreateTestarrayofstring2VectorBlockMyGame.Example.Monster387   public static VectorOffset CreateTestarrayofstring2VectorBlock(FlatBufferBuilder builder, ArraySegment<StringOffset> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
CreateTestarrayofstring2VectorBlockMyGame.Example.Monster388   public static VectorOffset CreateTestarrayofstring2VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<StringOffset>(dataPtr, sizeInBytes); return builder.EndVector(); }
StartTestarrayofstring2VectorMyGame.Example.Monster389   public static void StartTestarrayofstring2Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
AddTestarrayofsortedstructMyGame.Example.Monster390   public static void AddTestarrayofsortedstruct(FlatBufferBuilder builder, VectorOffset testarrayofsortedstructOffset) { builder.AddOffset(29, testarrayofsortedstructOffset.Value, 0); }
StartTestarrayofsortedstructVectorMyGame.Example.Monster391   public static void StartTestarrayofsortedstructVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 4); }
AddFlexMyGame.Example.Monster392   public static void AddFlex(FlatBufferBuilder builder, VectorOffset flexOffset) { builder.AddOffset(30, flexOffset.Value, 0); }
CreateFlexVectorMyGame.Example.Monster393   public static VectorOffset CreateFlexVector(FlatBufferBuilder builder, byte[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte(data[i]); return builder.EndVector(); }
CreateFlexVectorBlockMyGame.Example.Monster394   public static VectorOffset CreateFlexVectorBlock(FlatBufferBuilder builder, byte[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); }
CreateFlexVectorBlockMyGame.Example.Monster395   public static VectorOffset CreateFlexVectorBlock(FlatBufferBuilder builder, ArraySegment<byte> data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); }
CreateFlexVectorBlockMyGame.Example.Monster396   public static VectorOffset CreateFlexVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<byte>(dataPtr, sizeInBytes); return builder.EndVector(); }
StartFlexVectorMyGame.Example.Monster397   public static void StartFlexVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); }
AddTest5MyGame.Example.Monster398   public static void AddTest5(FlatBufferBuilder builder, VectorOffset test5Offset) { builder.AddOffset(31, test5Offset.Value, 0); }
StartTest5VectorMyGame.Example.Monster399   public static void StartTest5Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 2); }
AddVectorOfLongsMyGame.Example.Monster400   public static void AddVectorOfLongs(FlatBufferBuilder builder, VectorOffset vectorOfLongsOffset) { builder.AddOffset(32, vectorOfLongsOffset.Value, 0); }
CreateVectorOfLongsVectorMyGame.Example.Monster401   public static VectorOffset CreateVectorOfLongsVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); }
CreateVectorOfLongsVectorBlockMyGame.Example.Monster402   public static VectorOffset CreateVectorOfLongsVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); }
CreateVectorOfLongsVectorBlockMyGame.Example.Monster403   public static VectorOffset CreateVectorOfLongsVectorBlock(FlatBufferBuilder builder, ArraySegment<long> data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); }
CreateVectorOfLongsVectorBlockMyGame.Example.Monster404   public static VectorOffset CreateVectorOfLongsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<long>(dataPtr, sizeInBytes); return builder.EndVector(); }
StartVectorOfLongsVectorMyGame.Example.Monster405   public static void StartVectorOfLongsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); }
AddVectorOfDoublesMyGame.Example.Monster406   public static void AddVectorOfDoubles(FlatBufferBuilder builder, VectorOffset vectorOfDoublesOffset) { builder.AddOffset(33, vectorOfDoublesOffset.Value, 0); }
CreateVectorOfDoublesVectorMyGame.Example.Monster407   public static VectorOffset CreateVectorOfDoublesVector(FlatBufferBuilder builder, double[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddDouble(data[i]); return builder.EndVector(); }
CreateVectorOfDoublesVectorBlockMyGame.Example.Monster408   public static VectorOffset CreateVectorOfDoublesVectorBlock(FlatBufferBuilder builder, double[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); }
CreateVectorOfDoublesVectorBlockMyGame.Example.Monster409   public static VectorOffset CreateVectorOfDoublesVectorBlock(FlatBufferBuilder builder, ArraySegment<double> data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); }
CreateVectorOfDoublesVectorBlockMyGame.Example.Monster410   public static VectorOffset CreateVectorOfDoublesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<double>(dataPtr, sizeInBytes); return builder.EndVector(); }
StartVectorOfDoublesVectorMyGame.Example.Monster411   public static void StartVectorOfDoublesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); }
AddParentNamespaceTestMyGame.Example.Monster412   public static void AddParentNamespaceTest(FlatBufferBuilder builder, Offset<MyGame.InParentNamespace> parentNamespaceTestOffset) { builder.AddOffset(34, parentNamespaceTestOffset.Value, 0); }
AddVectorOfReferrablesMyGame.Example.Monster413   public static void AddVectorOfReferrables(FlatBufferBuilder builder, VectorOffset vectorOfReferrablesOffset) { builder.AddOffset(35, vectorOfReferrablesOffset.Value, 0); }
CreateVectorOfReferrablesVectorMyGame.Example.Monster414   public static VectorOffset CreateVectorOfReferrablesVector(FlatBufferBuilder builder, Offset<MyGame.Example.Referrable>[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); }
CreateVectorOfReferrablesVectorBlockMyGame.Example.Monster415   public static VectorOffset CreateVectorOfReferrablesVectorBlock(FlatBufferBuilder builder, Offset<MyGame.Example.Referrable>[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
CreateVectorOfReferrablesVectorBlockMyGame.Example.Monster416   public static VectorOffset CreateVectorOfReferrablesVectorBlock(FlatBufferBuilder builder, ArraySegment<Offset<MyGame.Example.Referrable>> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
CreateVectorOfReferrablesVectorBlockMyGame.Example.Monster417   public static VectorOffset CreateVectorOfReferrablesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<Offset<MyGame.Example.Referrable>>(dataPtr, sizeInBytes); return builder.EndVector(); }
StartVectorOfReferrablesVectorMyGame.Example.Monster418   public static void StartVectorOfReferrablesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
AddSingleWeakReferenceMyGame.Example.Monster419   public static void AddSingleWeakReference(FlatBufferBuilder builder, ulong singleWeakReference) { builder.AddUlong(36, singleWeakReference, 0); }
AddVectorOfWeakReferencesMyGame.Example.Monster420   public static void AddVectorOfWeakReferences(FlatBufferBuilder builder, VectorOffset vectorOfWeakReferencesOffset) { builder.AddOffset(37, vectorOfWeakReferencesOffset.Value, 0); }
CreateVectorOfWeakReferencesVectorMyGame.Example.Monster421   public static VectorOffset CreateVectorOfWeakReferencesVector(FlatBufferBuilder builder, ulong[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddUlong(data[i]); return builder.EndVector(); }
CreateVectorOfWeakReferencesVectorBlockMyGame.Example.Monster422   public static VectorOffset CreateVectorOfWeakReferencesVectorBlock(FlatBufferBuilder builder, ulong[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); }
CreateVectorOfWeakReferencesVectorBlockMyGame.Example.Monster423   public static VectorOffset CreateVectorOfWeakReferencesVectorBlock(FlatBufferBuilder builder, ArraySegment<ulong> data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); }
CreateVectorOfWeakReferencesVectorBlockMyGame.Example.Monster424   public static VectorOffset CreateVectorOfWeakReferencesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<ulong>(dataPtr, sizeInBytes); return builder.EndVector(); }
StartVectorOfWeakReferencesVectorMyGame.Example.Monster425   public static void StartVectorOfWeakReferencesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); }
AddVectorOfStrongReferrablesMyGame.Example.Monster426   public static void AddVectorOfStrongReferrables(FlatBufferBuilder builder, VectorOffset vectorOfStrongReferrablesOffset) { builder.AddOffset(38, vectorOfStrongReferrablesOffset.Value, 0); }
CreateVectorOfStrongReferrablesVectorMyGame.Example.Monster427   public static VectorOffset CreateVectorOfStrongReferrablesVector(FlatBufferBuilder builder, Offset<MyGame.Example.Referrable>[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); }
CreateVectorOfStrongReferrablesVectorBlockMyGame.Example.Monster428   public static VectorOffset CreateVectorOfStrongReferrablesVectorBlock(FlatBufferBuilder builder, Offset<MyGame.Example.Referrable>[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
CreateVectorOfStrongReferrablesVectorBlockMyGame.Example.Monster429   public static VectorOffset CreateVectorOfStrongReferrablesVectorBlock(FlatBufferBuilder builder, ArraySegment<Offset<MyGame.Example.Referrable>> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
CreateVectorOfStrongReferrablesVectorBlockMyGame.Example.Monster430   public static VectorOffset CreateVectorOfStrongReferrablesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<Offset<MyGame.Example.Referrable>>(dataPtr, sizeInBytes); return builder.EndVector(); }
StartVectorOfStrongReferrablesVectorMyGame.Example.Monster431   public static void StartVectorOfStrongReferrablesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
AddCoOwningReferenceMyGame.Example.Monster432   public static void AddCoOwningReference(FlatBufferBuilder builder, ulong coOwningReference) { builder.AddUlong(39, coOwningReference, 0); }
AddVectorOfCoOwningReferencesMyGame.Example.Monster433   public static void AddVectorOfCoOwningReferences(FlatBufferBuilder builder, VectorOffset vectorOfCoOwningReferencesOffset) { builder.AddOffset(40, vectorOfCoOwningReferencesOffset.Value, 0); }
CreateVectorOfCoOwningReferencesVectorMyGame.Example.Monster434   public static VectorOffset CreateVectorOfCoOwningReferencesVector(FlatBufferBuilder builder, ulong[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddUlong(data[i]); return builder.EndVector(); }
CreateVectorOfCoOwningReferencesVectorBlockMyGame.Example.Monster435   public static VectorOffset CreateVectorOfCoOwningReferencesVectorBlock(FlatBufferBuilder builder, ulong[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); }
CreateVectorOfCoOwningReferencesVectorBlockMyGame.Example.Monster436   public static VectorOffset CreateVectorOfCoOwningReferencesVectorBlock(FlatBufferBuilder builder, ArraySegment<ulong> data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); }
CreateVectorOfCoOwningReferencesVectorBlockMyGame.Example.Monster437   public static VectorOffset CreateVectorOfCoOwningReferencesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<ulong>(dataPtr, sizeInBytes); return builder.EndVector(); }
StartVectorOfCoOwningReferencesVectorMyGame.Example.Monster438   public static void StartVectorOfCoOwningReferencesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); }
AddNonOwningReferenceMyGame.Example.Monster439   public static void AddNonOwningReference(FlatBufferBuilder builder, ulong nonOwningReference) { builder.AddUlong(41, nonOwningReference, 0); }
AddVectorOfNonOwningReferencesMyGame.Example.Monster440   public static void AddVectorOfNonOwningReferences(FlatBufferBuilder builder, VectorOffset vectorOfNonOwningReferencesOffset) { builder.AddOffset(42, vectorOfNonOwningReferencesOffset.Value, 0); }
CreateVectorOfNonOwningReferencesVectorMyGame.Example.Monster441   public static VectorOffset CreateVectorOfNonOwningReferencesVector(FlatBufferBuilder builder, ulong[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddUlong(data[i]); return builder.EndVector(); }
CreateVectorOfNonOwningReferencesVectorBlockMyGame.Example.Monster442   public static VectorOffset CreateVectorOfNonOwningReferencesVectorBlock(FlatBufferBuilder builder, ulong[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); }
CreateVectorOfNonOwningReferencesVectorBlockMyGame.Example.Monster443   public static VectorOffset CreateVectorOfNonOwningReferencesVectorBlock(FlatBufferBuilder builder, ArraySegment<ulong> data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); }
CreateVectorOfNonOwningReferencesVectorBlockMyGame.Example.Monster444   public static VectorOffset CreateVectorOfNonOwningReferencesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<ulong>(dataPtr, sizeInBytes); return builder.EndVector(); }
StartVectorOfNonOwningReferencesVectorMyGame.Example.Monster445   public static void StartVectorOfNonOwningReferencesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); }
AddAnyUniqueTypeMyGame.Example.Monster446   public static void AddAnyUniqueType(FlatBufferBuilder builder, MyGame.Example.AnyUniqueAliases anyUniqueType) { builder.AddByte(43, (byte)anyUniqueType, 0); }
AddAnyUniqueMyGame.Example.Monster447   public static void AddAnyUnique(FlatBufferBuilder builder, int anyUniqueOffset) { builder.AddOffset(44, anyUniqueOffset, 0); }
AddAnyAmbiguousTypeMyGame.Example.Monster448   public static void AddAnyAmbiguousType(FlatBufferBuilder builder, MyGame.Example.AnyAmbiguousAliases anyAmbiguousType) { builder.AddByte(45, (byte)anyAmbiguousType, 0); }
AddAnyAmbiguousMyGame.Example.Monster449   public static void AddAnyAmbiguous(FlatBufferBuilder builder, int anyAmbiguousOffset) { builder.AddOffset(46, anyAmbiguousOffset, 0); }
AddVectorOfEnumsMyGame.Example.Monster450   public static void AddVectorOfEnums(FlatBufferBuilder builder, VectorOffset vectorOfEnumsOffset) { builder.AddOffset(47, vectorOfEnumsOffset.Value, 0); }
CreateVectorOfEnumsVectorMyGame.Example.Monster451   public static VectorOffset CreateVectorOfEnumsVector(FlatBufferBuilder builder, MyGame.Example.Color[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); }
CreateVectorOfEnumsVectorBlockMyGame.Example.Monster452   public static VectorOffset CreateVectorOfEnumsVectorBlock(FlatBufferBuilder builder, MyGame.Example.Color[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); }
CreateVectorOfEnumsVectorBlockMyGame.Example.Monster453   public static VectorOffset CreateVectorOfEnumsVectorBlock(FlatBufferBuilder builder, ArraySegment<MyGame.Example.Color> data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); }
CreateVectorOfEnumsVectorBlockMyGame.Example.Monster454   public static VectorOffset CreateVectorOfEnumsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<MyGame.Example.Color>(dataPtr, sizeInBytes); return builder.EndVector(); }
StartVectorOfEnumsVectorMyGame.Example.Monster455   public static void StartVectorOfEnumsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); }
AddSignedEnumMyGame.Example.Monster456   public static void AddSignedEnum(FlatBufferBuilder builder, MyGame.Example.Race signedEnum) { builder.AddSbyte(48, (sbyte)signedEnum, -1); }
AddTestrequirednestedflatbufferMyGame.Example.Monster457   public static void AddTestrequirednestedflatbuffer(FlatBufferBuilder builder, VectorOffset testrequirednestedflatbufferOffset) { builder.AddOffset(49, testrequirednestedflatbufferOffset.Value, 0); }
CreateTestrequirednestedflatbufferVectorMyGame.Example.Monster458   public static VectorOffset CreateTestrequirednestedflatbufferVector(FlatBufferBuilder builder, byte[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte(data[i]); return builder.EndVector(); }
CreateTestrequirednestedflatbufferVectorBlockMyGame.Example.Monster459   public static VectorOffset CreateTestrequirednestedflatbufferVectorBlock(FlatBufferBuilder builder, byte[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); }
CreateTestrequirednestedflatbufferVectorBlockMyGame.Example.Monster460   public static VectorOffset CreateTestrequirednestedflatbufferVectorBlock(FlatBufferBuilder builder, ArraySegment<byte> data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); }
CreateTestrequirednestedflatbufferVectorBlockMyGame.Example.Monster461   public static VectorOffset CreateTestrequirednestedflatbufferVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<byte>(dataPtr, sizeInBytes); return builder.EndVector(); }
StartTestrequirednestedflatbufferVectorMyGame.Example.Monster462   public static void StartTestrequirednestedflatbufferVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); }
AddScalarKeySortedTablesMyGame.Example.Monster463   public static void AddScalarKeySortedTables(FlatBufferBuilder builder, VectorOffset scalarKeySortedTablesOffset) { builder.AddOffset(50, scalarKeySortedTablesOffset.Value, 0); }
CreateScalarKeySortedTablesVectorMyGame.Example.Monster464   public static VectorOffset CreateScalarKeySortedTablesVector(FlatBufferBuilder builder, Offset<MyGame.Example.Stat>[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); }
CreateScalarKeySortedTablesVectorBlockMyGame.Example.Monster465   public static VectorOffset CreateScalarKeySortedTablesVectorBlock(FlatBufferBuilder builder, Offset<MyGame.Example.Stat>[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
CreateScalarKeySortedTablesVectorBlockMyGame.Example.Monster466   public static VectorOffset CreateScalarKeySortedTablesVectorBlock(FlatBufferBuilder builder, ArraySegment<Offset<MyGame.Example.Stat>> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
CreateScalarKeySortedTablesVectorBlockMyGame.Example.Monster467   public static VectorOffset CreateScalarKeySortedTablesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<Offset<MyGame.Example.Stat>>(dataPtr, sizeInBytes); return builder.EndVector(); }
StartScalarKeySortedTablesVectorMyGame.Example.Monster468   public static void StartScalarKeySortedTablesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
AddNativeInlineMyGame.Example.Monster469   public static void AddNativeInline(FlatBufferBuilder builder, Offset<MyGame.Example.Test> nativeInlineOffset) { builder.AddStruct(51, nativeInlineOffset.Value, 0); }
AddLongEnumNonEnumDefaultMyGame.Example.Monster470   public static void AddLongEnumNonEnumDefault(FlatBufferBuilder builder, MyGame.Example.LongEnum longEnumNonEnumDefault) { builder.AddUlong(52, (ulong)longEnumNonEnumDefault, 0); }
AddLongEnumNormalDefaultMyGame.Example.Monster471   public static void AddLongEnumNormalDefault(FlatBufferBuilder builder, MyGame.Example.LongEnum longEnumNormalDefault) { builder.AddUlong(53, (ulong)longEnumNormalDefault, 2); }
EndMonsterMyGame.Example.Monster472   public static Offset<MyGame.Example.Monster> EndMonster(FlatBufferBuilder builder) {
473     int o = builder.EndTable();
474     builder.Required(o, 10);  // name
475     return new Offset<MyGame.Example.Monster>(o);
476   }
FinishMonsterBufferMyGame.Example.Monster477   public static void FinishMonsterBuffer(FlatBufferBuilder builder, Offset<MyGame.Example.Monster> offset) { builder.Finish(offset.Value, "MONS"); }
FinishSizePrefixedMonsterBufferMyGame.Example.Monster478   public static void FinishSizePrefixedMonsterBuffer(FlatBufferBuilder builder, Offset<MyGame.Example.Monster> offset) { builder.FinishSizePrefixed(offset.Value, "MONS"); }
479 
CreateSortedVectorOfMonsterMyGame.Example.Monster480   public static VectorOffset CreateSortedVectorOfMonster(FlatBufferBuilder builder, Offset<Monster>[] offsets) {
481     Array.Sort(offsets,
482       (Offset<Monster> o1, Offset<Monster> o2) =>
483         new Monster().__assign(builder.DataBuffer.Length - o1.Value, builder.DataBuffer).Name.CompareTo(new Monster().__assign(builder.DataBuffer.Length - o2.Value, builder.DataBuffer).Name));
484     return builder.CreateVectorOfTables(offsets);
485   }
486 
__lookup_by_keyMyGame.Example.Monster487   public static Monster? __lookup_by_key(int vectorLocation, string key, ByteBuffer bb) {
488     Monster obj_ = new Monster();
489     int span = bb.GetInt(vectorLocation - 4);
490     int start = 0;
491     while (span != 0) {
492       int middle = span / 2;
493       int tableOffset = Table.__indirect(vectorLocation + 4 * (start + middle), bb);
494       obj_.__assign(tableOffset, bb);
495       int comp = obj_.Name.CompareTo(key);
496       if (comp > 0) {
497         span = middle;
498       } else if (comp < 0) {
499         middle++;
500         start += middle;
501         span -= middle;
502       } else {
503         return obj_;
504       }
505     }
506     return null;
507   }
UnPackMyGame.Example.Monster508   public MonsterT UnPack() {
509     var _o = new MonsterT();
510     this.UnPackTo(_o);
511     return _o;
512   }
UnPackToMyGame.Example.Monster513   public void UnPackTo(MonsterT _o) {
514     _o.Pos = this.Pos.HasValue ? this.Pos.Value.UnPack() : null;
515     _o.Mana = this.Mana;
516     _o.Hp = this.Hp;
517     _o.Name = this.Name;
518     _o.Inventory = new List<byte>();
519     for (var _j = 0; _j < this.InventoryLength; ++_j) {_o.Inventory.Add(this.Inventory(_j));}
520     _o.Color = this.Color;
521     _o.Test = new MyGame.Example.AnyUnion();
522     _o.Test.Type = this.TestType;
523     switch (this.TestType) {
524       default: break;
525       case MyGame.Example.Any.Monster:
526         _o.Test.Value = this.Test<MyGame.Example.Monster>().HasValue ? this.Test<MyGame.Example.Monster>().Value.UnPack() : null;
527         break;
528       case MyGame.Example.Any.TestSimpleTableWithEnum:
529         _o.Test.Value = this.Test<MyGame.Example.TestSimpleTableWithEnum>().HasValue ? this.Test<MyGame.Example.TestSimpleTableWithEnum>().Value.UnPack() : null;
530         break;
531       case MyGame.Example.Any.MyGame_Example2_Monster:
532         _o.Test.Value = this.Test<MyGame.Example2.Monster>().HasValue ? this.Test<MyGame.Example2.Monster>().Value.UnPack() : null;
533         break;
534     }
535     _o.Test4 = new List<MyGame.Example.TestT>();
536     for (var _j = 0; _j < this.Test4Length; ++_j) {_o.Test4.Add(this.Test4(_j).HasValue ? this.Test4(_j).Value.UnPack() : null);}
537     _o.Testarrayofstring = new List<string>();
538     for (var _j = 0; _j < this.TestarrayofstringLength; ++_j) {_o.Testarrayofstring.Add(this.Testarrayofstring(_j));}
539     _o.Testarrayoftables = new List<MyGame.Example.MonsterT>();
540     for (var _j = 0; _j < this.TestarrayoftablesLength; ++_j) {_o.Testarrayoftables.Add(this.Testarrayoftables(_j).HasValue ? this.Testarrayoftables(_j).Value.UnPack() : null);}
541     _o.Enemy = this.Enemy.HasValue ? this.Enemy.Value.UnPack() : null;
542     _o.Testnestedflatbuffer = new List<byte>();
543     for (var _j = 0; _j < this.TestnestedflatbufferLength; ++_j) {_o.Testnestedflatbuffer.Add(this.Testnestedflatbuffer(_j));}
544     _o.Testempty = this.Testempty.HasValue ? this.Testempty.Value.UnPack() : null;
545     _o.Testbool = this.Testbool;
546     _o.Testhashs32Fnv1 = this.Testhashs32Fnv1;
547     _o.Testhashu32Fnv1 = this.Testhashu32Fnv1;
548     _o.Testhashs64Fnv1 = this.Testhashs64Fnv1;
549     _o.Testhashu64Fnv1 = this.Testhashu64Fnv1;
550     _o.Testhashs32Fnv1a = this.Testhashs32Fnv1a;
551     _o.Testhashu32Fnv1a = this.Testhashu32Fnv1a;
552     _o.Testhashs64Fnv1a = this.Testhashs64Fnv1a;
553     _o.Testhashu64Fnv1a = this.Testhashu64Fnv1a;
554     _o.Testarrayofbools = new List<bool>();
555     for (var _j = 0; _j < this.TestarrayofboolsLength; ++_j) {_o.Testarrayofbools.Add(this.Testarrayofbools(_j));}
556     _o.Testf = this.Testf;
557     _o.Testf2 = this.Testf2;
558     _o.Testf3 = this.Testf3;
559     _o.Testarrayofstring2 = new List<string>();
560     for (var _j = 0; _j < this.Testarrayofstring2Length; ++_j) {_o.Testarrayofstring2.Add(this.Testarrayofstring2(_j));}
561     _o.Testarrayofsortedstruct = new List<MyGame.Example.AbilityT>();
562     for (var _j = 0; _j < this.TestarrayofsortedstructLength; ++_j) {_o.Testarrayofsortedstruct.Add(this.Testarrayofsortedstruct(_j).HasValue ? this.Testarrayofsortedstruct(_j).Value.UnPack() : null);}
563     _o.Flex = new List<byte>();
564     for (var _j = 0; _j < this.FlexLength; ++_j) {_o.Flex.Add(this.Flex(_j));}
565     _o.Test5 = new List<MyGame.Example.TestT>();
566     for (var _j = 0; _j < this.Test5Length; ++_j) {_o.Test5.Add(this.Test5(_j).HasValue ? this.Test5(_j).Value.UnPack() : null);}
567     _o.VectorOfLongs = new List<long>();
568     for (var _j = 0; _j < this.VectorOfLongsLength; ++_j) {_o.VectorOfLongs.Add(this.VectorOfLongs(_j));}
569     _o.VectorOfDoubles = new List<double>();
570     for (var _j = 0; _j < this.VectorOfDoublesLength; ++_j) {_o.VectorOfDoubles.Add(this.VectorOfDoubles(_j));}
571     _o.ParentNamespaceTest = this.ParentNamespaceTest.HasValue ? this.ParentNamespaceTest.Value.UnPack() : null;
572     _o.VectorOfReferrables = new List<MyGame.Example.ReferrableT>();
573     for (var _j = 0; _j < this.VectorOfReferrablesLength; ++_j) {_o.VectorOfReferrables.Add(this.VectorOfReferrables(_j).HasValue ? this.VectorOfReferrables(_j).Value.UnPack() : null);}
574     _o.SingleWeakReference = this.SingleWeakReference;
575     _o.VectorOfWeakReferences = new List<ulong>();
576     for (var _j = 0; _j < this.VectorOfWeakReferencesLength; ++_j) {_o.VectorOfWeakReferences.Add(this.VectorOfWeakReferences(_j));}
577     _o.VectorOfStrongReferrables = new List<MyGame.Example.ReferrableT>();
578     for (var _j = 0; _j < this.VectorOfStrongReferrablesLength; ++_j) {_o.VectorOfStrongReferrables.Add(this.VectorOfStrongReferrables(_j).HasValue ? this.VectorOfStrongReferrables(_j).Value.UnPack() : null);}
579     _o.CoOwningReference = this.CoOwningReference;
580     _o.VectorOfCoOwningReferences = new List<ulong>();
581     for (var _j = 0; _j < this.VectorOfCoOwningReferencesLength; ++_j) {_o.VectorOfCoOwningReferences.Add(this.VectorOfCoOwningReferences(_j));}
582     _o.NonOwningReference = this.NonOwningReference;
583     _o.VectorOfNonOwningReferences = new List<ulong>();
584     for (var _j = 0; _j < this.VectorOfNonOwningReferencesLength; ++_j) {_o.VectorOfNonOwningReferences.Add(this.VectorOfNonOwningReferences(_j));}
585     _o.AnyUnique = new MyGame.Example.AnyUniqueAliasesUnion();
586     _o.AnyUnique.Type = this.AnyUniqueType;
587     switch (this.AnyUniqueType) {
588       default: break;
589       case MyGame.Example.AnyUniqueAliases.M:
590         _o.AnyUnique.Value = this.AnyUnique<MyGame.Example.Monster>().HasValue ? this.AnyUnique<MyGame.Example.Monster>().Value.UnPack() : null;
591         break;
592       case MyGame.Example.AnyUniqueAliases.TS:
593         _o.AnyUnique.Value = this.AnyUnique<MyGame.Example.TestSimpleTableWithEnum>().HasValue ? this.AnyUnique<MyGame.Example.TestSimpleTableWithEnum>().Value.UnPack() : null;
594         break;
595       case MyGame.Example.AnyUniqueAliases.M2:
596         _o.AnyUnique.Value = this.AnyUnique<MyGame.Example2.Monster>().HasValue ? this.AnyUnique<MyGame.Example2.Monster>().Value.UnPack() : null;
597         break;
598     }
599     _o.AnyAmbiguous = new MyGame.Example.AnyAmbiguousAliasesUnion();
600     _o.AnyAmbiguous.Type = this.AnyAmbiguousType;
601     switch (this.AnyAmbiguousType) {
602       default: break;
603       case MyGame.Example.AnyAmbiguousAliases.M1:
604         _o.AnyAmbiguous.Value = this.AnyAmbiguous<MyGame.Example.Monster>().HasValue ? this.AnyAmbiguous<MyGame.Example.Monster>().Value.UnPack() : null;
605         break;
606       case MyGame.Example.AnyAmbiguousAliases.M2:
607         _o.AnyAmbiguous.Value = this.AnyAmbiguous<MyGame.Example.Monster>().HasValue ? this.AnyAmbiguous<MyGame.Example.Monster>().Value.UnPack() : null;
608         break;
609       case MyGame.Example.AnyAmbiguousAliases.M3:
610         _o.AnyAmbiguous.Value = this.AnyAmbiguous<MyGame.Example.Monster>().HasValue ? this.AnyAmbiguous<MyGame.Example.Monster>().Value.UnPack() : null;
611         break;
612     }
613     _o.VectorOfEnums = new List<MyGame.Example.Color>();
614     for (var _j = 0; _j < this.VectorOfEnumsLength; ++_j) {_o.VectorOfEnums.Add(this.VectorOfEnums(_j));}
615     _o.SignedEnum = this.SignedEnum;
616     _o.Testrequirednestedflatbuffer = new List<byte>();
617     for (var _j = 0; _j < this.TestrequirednestedflatbufferLength; ++_j) {_o.Testrequirednestedflatbuffer.Add(this.Testrequirednestedflatbuffer(_j));}
618     _o.ScalarKeySortedTables = new List<MyGame.Example.StatT>();
619     for (var _j = 0; _j < this.ScalarKeySortedTablesLength; ++_j) {_o.ScalarKeySortedTables.Add(this.ScalarKeySortedTables(_j).HasValue ? this.ScalarKeySortedTables(_j).Value.UnPack() : null);}
620     _o.NativeInline = this.NativeInline.HasValue ? this.NativeInline.Value.UnPack() : null;
621     _o.LongEnumNonEnumDefault = this.LongEnumNonEnumDefault;
622     _o.LongEnumNormalDefault = this.LongEnumNormalDefault;
623   }
PackMyGame.Example.Monster624   public static Offset<MyGame.Example.Monster> Pack(FlatBufferBuilder builder, MonsterT _o) {
625     if (_o == null) return default(Offset<MyGame.Example.Monster>);
626     var _name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name);
627     var _inventory = default(VectorOffset);
628     if (_o.Inventory != null) {
629       var __inventory = _o.Inventory.ToArray();
630       _inventory = CreateInventoryVector(builder, __inventory);
631     }
632     var _test_type = _o.Test == null ? MyGame.Example.Any.NONE : _o.Test.Type;
633     var _test = _o.Test == null ? 0 : MyGame.Example.AnyUnion.Pack(builder, _o.Test);
634     var _test4 = default(VectorOffset);
635     if (_o.Test4 != null) {
636       StartTest4Vector(builder, _o.Test4.Count);
637       for (var _j = _o.Test4.Count - 1; _j >= 0; --_j) { MyGame.Example.Test.Pack(builder, _o.Test4[_j]); }
638       _test4 = builder.EndVector();
639     }
640     var _testarrayofstring = default(VectorOffset);
641     if (_o.Testarrayofstring != null) {
642       var __testarrayofstring = new StringOffset[_o.Testarrayofstring.Count];
643       for (var _j = 0; _j < __testarrayofstring.Length; ++_j) { __testarrayofstring[_j] = builder.CreateString(_o.Testarrayofstring[_j]); }
644       _testarrayofstring = CreateTestarrayofstringVector(builder, __testarrayofstring);
645     }
646     var _testarrayoftables = default(VectorOffset);
647     if (_o.Testarrayoftables != null) {
648       var __testarrayoftables = new Offset<MyGame.Example.Monster>[_o.Testarrayoftables.Count];
649       for (var _j = 0; _j < __testarrayoftables.Length; ++_j) { __testarrayoftables[_j] = MyGame.Example.Monster.Pack(builder, _o.Testarrayoftables[_j]); }
650       _testarrayoftables = CreateTestarrayoftablesVector(builder, __testarrayoftables);
651     }
652     var _enemy = _o.Enemy == null ? default(Offset<MyGame.Example.Monster>) : MyGame.Example.Monster.Pack(builder, _o.Enemy);
653     var _testnestedflatbuffer = default(VectorOffset);
654     if (_o.Testnestedflatbuffer != null) {
655       var __testnestedflatbuffer = _o.Testnestedflatbuffer.ToArray();
656       _testnestedflatbuffer = CreateTestnestedflatbufferVector(builder, __testnestedflatbuffer);
657     }
658     var _testempty = _o.Testempty == null ? default(Offset<MyGame.Example.Stat>) : MyGame.Example.Stat.Pack(builder, _o.Testempty);
659     var _testarrayofbools = default(VectorOffset);
660     if (_o.Testarrayofbools != null) {
661       var __testarrayofbools = _o.Testarrayofbools.ToArray();
662       _testarrayofbools = CreateTestarrayofboolsVector(builder, __testarrayofbools);
663     }
664     var _testarrayofstring2 = default(VectorOffset);
665     if (_o.Testarrayofstring2 != null) {
666       var __testarrayofstring2 = new StringOffset[_o.Testarrayofstring2.Count];
667       for (var _j = 0; _j < __testarrayofstring2.Length; ++_j) { __testarrayofstring2[_j] = builder.CreateString(_o.Testarrayofstring2[_j]); }
668       _testarrayofstring2 = CreateTestarrayofstring2Vector(builder, __testarrayofstring2);
669     }
670     var _testarrayofsortedstruct = default(VectorOffset);
671     if (_o.Testarrayofsortedstruct != null) {
672       StartTestarrayofsortedstructVector(builder, _o.Testarrayofsortedstruct.Count);
673       for (var _j = _o.Testarrayofsortedstruct.Count - 1; _j >= 0; --_j) { MyGame.Example.Ability.Pack(builder, _o.Testarrayofsortedstruct[_j]); }
674       _testarrayofsortedstruct = builder.EndVector();
675     }
676     var _flex = default(VectorOffset);
677     if (_o.Flex != null) {
678       var __flex = _o.Flex.ToArray();
679       _flex = CreateFlexVector(builder, __flex);
680     }
681     var _test5 = default(VectorOffset);
682     if (_o.Test5 != null) {
683       StartTest5Vector(builder, _o.Test5.Count);
684       for (var _j = _o.Test5.Count - 1; _j >= 0; --_j) { MyGame.Example.Test.Pack(builder, _o.Test5[_j]); }
685       _test5 = builder.EndVector();
686     }
687     var _vector_of_longs = default(VectorOffset);
688     if (_o.VectorOfLongs != null) {
689       var __vector_of_longs = _o.VectorOfLongs.ToArray();
690       _vector_of_longs = CreateVectorOfLongsVector(builder, __vector_of_longs);
691     }
692     var _vector_of_doubles = default(VectorOffset);
693     if (_o.VectorOfDoubles != null) {
694       var __vector_of_doubles = _o.VectorOfDoubles.ToArray();
695       _vector_of_doubles = CreateVectorOfDoublesVector(builder, __vector_of_doubles);
696     }
697     var _parent_namespace_test = _o.ParentNamespaceTest == null ? default(Offset<MyGame.InParentNamespace>) : MyGame.InParentNamespace.Pack(builder, _o.ParentNamespaceTest);
698     var _vector_of_referrables = default(VectorOffset);
699     if (_o.VectorOfReferrables != null) {
700       var __vector_of_referrables = new Offset<MyGame.Example.Referrable>[_o.VectorOfReferrables.Count];
701       for (var _j = 0; _j < __vector_of_referrables.Length; ++_j) { __vector_of_referrables[_j] = MyGame.Example.Referrable.Pack(builder, _o.VectorOfReferrables[_j]); }
702       _vector_of_referrables = CreateVectorOfReferrablesVector(builder, __vector_of_referrables);
703     }
704     var _vector_of_weak_references = default(VectorOffset);
705     if (_o.VectorOfWeakReferences != null) {
706       var __vector_of_weak_references = _o.VectorOfWeakReferences.ToArray();
707       _vector_of_weak_references = CreateVectorOfWeakReferencesVector(builder, __vector_of_weak_references);
708     }
709     var _vector_of_strong_referrables = default(VectorOffset);
710     if (_o.VectorOfStrongReferrables != null) {
711       var __vector_of_strong_referrables = new Offset<MyGame.Example.Referrable>[_o.VectorOfStrongReferrables.Count];
712       for (var _j = 0; _j < __vector_of_strong_referrables.Length; ++_j) { __vector_of_strong_referrables[_j] = MyGame.Example.Referrable.Pack(builder, _o.VectorOfStrongReferrables[_j]); }
713       _vector_of_strong_referrables = CreateVectorOfStrongReferrablesVector(builder, __vector_of_strong_referrables);
714     }
715     var _vector_of_co_owning_references = default(VectorOffset);
716     if (_o.VectorOfCoOwningReferences != null) {
717       var __vector_of_co_owning_references = _o.VectorOfCoOwningReferences.ToArray();
718       _vector_of_co_owning_references = CreateVectorOfCoOwningReferencesVector(builder, __vector_of_co_owning_references);
719     }
720     var _vector_of_non_owning_references = default(VectorOffset);
721     if (_o.VectorOfNonOwningReferences != null) {
722       var __vector_of_non_owning_references = _o.VectorOfNonOwningReferences.ToArray();
723       _vector_of_non_owning_references = CreateVectorOfNonOwningReferencesVector(builder, __vector_of_non_owning_references);
724     }
725     var _any_unique_type = _o.AnyUnique == null ? MyGame.Example.AnyUniqueAliases.NONE : _o.AnyUnique.Type;
726     var _any_unique = _o.AnyUnique == null ? 0 : MyGame.Example.AnyUniqueAliasesUnion.Pack(builder, _o.AnyUnique);
727     var _any_ambiguous_type = _o.AnyAmbiguous == null ? MyGame.Example.AnyAmbiguousAliases.NONE : _o.AnyAmbiguous.Type;
728     var _any_ambiguous = _o.AnyAmbiguous == null ? 0 : MyGame.Example.AnyAmbiguousAliasesUnion.Pack(builder, _o.AnyAmbiguous);
729     var _vector_of_enums = default(VectorOffset);
730     if (_o.VectorOfEnums != null) {
731       var __vector_of_enums = _o.VectorOfEnums.ToArray();
732       _vector_of_enums = CreateVectorOfEnumsVector(builder, __vector_of_enums);
733     }
734     var _testrequirednestedflatbuffer = default(VectorOffset);
735     if (_o.Testrequirednestedflatbuffer != null) {
736       var __testrequirednestedflatbuffer = _o.Testrequirednestedflatbuffer.ToArray();
737       _testrequirednestedflatbuffer = CreateTestrequirednestedflatbufferVector(builder, __testrequirednestedflatbuffer);
738     }
739     var _scalar_key_sorted_tables = default(VectorOffset);
740     if (_o.ScalarKeySortedTables != null) {
741       var __scalar_key_sorted_tables = new Offset<MyGame.Example.Stat>[_o.ScalarKeySortedTables.Count];
742       for (var _j = 0; _j < __scalar_key_sorted_tables.Length; ++_j) { __scalar_key_sorted_tables[_j] = MyGame.Example.Stat.Pack(builder, _o.ScalarKeySortedTables[_j]); }
743       _scalar_key_sorted_tables = CreateScalarKeySortedTablesVector(builder, __scalar_key_sorted_tables);
744     }
745     return CreateMonster(
746       builder,
747       _o.Pos,
748       _o.Mana,
749       _o.Hp,
750       _name,
751       _inventory,
752       _o.Color,
753       _test_type,
754       _test,
755       _test4,
756       _testarrayofstring,
757       _testarrayoftables,
758       _enemy,
759       _testnestedflatbuffer,
760       _testempty,
761       _o.Testbool,
762       _o.Testhashs32Fnv1,
763       _o.Testhashu32Fnv1,
764       _o.Testhashs64Fnv1,
765       _o.Testhashu64Fnv1,
766       _o.Testhashs32Fnv1a,
767       _o.Testhashu32Fnv1a,
768       _o.Testhashs64Fnv1a,
769       _o.Testhashu64Fnv1a,
770       _testarrayofbools,
771       _o.Testf,
772       _o.Testf2,
773       _o.Testf3,
774       _testarrayofstring2,
775       _testarrayofsortedstruct,
776       _flex,
777       _test5,
778       _vector_of_longs,
779       _vector_of_doubles,
780       _parent_namespace_test,
781       _vector_of_referrables,
782       _o.SingleWeakReference,
783       _vector_of_weak_references,
784       _vector_of_strong_referrables,
785       _o.CoOwningReference,
786       _vector_of_co_owning_references,
787       _o.NonOwningReference,
788       _vector_of_non_owning_references,
789       _any_unique_type,
790       _any_unique,
791       _any_ambiguous_type,
792       _any_ambiguous,
793       _vector_of_enums,
794       _o.SignedEnum,
795       _testrequirednestedflatbuffer,
796       _scalar_key_sorted_tables,
797       _o.NativeInline,
798       _o.LongEnumNonEnumDefault,
799       _o.LongEnumNormalDefault);
800   }
801 }
802 
803 public class MonsterT
804 {
805   [Newtonsoft.Json.JsonProperty("pos")]
806   public MyGame.Example.Vec3T Pos { get; set; }
807   [Newtonsoft.Json.JsonProperty("mana")]
808   public short Mana { get; set; }
809   [Newtonsoft.Json.JsonProperty("hp")]
810   public short Hp { get; set; }
811   [Newtonsoft.Json.JsonProperty("name")]
812   public string Name { get; set; }
813   [Newtonsoft.Json.JsonProperty("inventory")]
814   public List<byte> Inventory { get; set; }
815   [Newtonsoft.Json.JsonProperty("color")]
816   public MyGame.Example.Color Color { get; set; }
817   [Newtonsoft.Json.JsonProperty("test_type")]
818   private MyGame.Example.Any TestType {
819     get {
820       return this.Test != null ? this.Test.Type : MyGame.Example.Any.NONE;
821     }
822     set {
823       this.Test = new MyGame.Example.AnyUnion();
824       this.Test.Type = value;
825     }
826   }
827   [Newtonsoft.Json.JsonProperty("test")]
828   [Newtonsoft.Json.JsonConverter(typeof(MyGame.Example.AnyUnion_JsonConverter))]
829   public MyGame.Example.AnyUnion Test { get; set; }
830   [Newtonsoft.Json.JsonProperty("test4")]
831   public List<MyGame.Example.TestT> Test4 { get; set; }
832   [Newtonsoft.Json.JsonProperty("testarrayofstring")]
833   public List<string> Testarrayofstring { get; set; }
834   [Newtonsoft.Json.JsonProperty("testarrayoftables")]
835   public List<MyGame.Example.MonsterT> Testarrayoftables { get; set; }
836   [Newtonsoft.Json.JsonProperty("enemy")]
837   public MyGame.Example.MonsterT Enemy { get; set; }
838   [Newtonsoft.Json.JsonProperty("testnestedflatbuffer")]
839   public List<byte> Testnestedflatbuffer { get; set; }
840   [Newtonsoft.Json.JsonProperty("testempty")]
841   public MyGame.Example.StatT Testempty { get; set; }
842   [Newtonsoft.Json.JsonProperty("testbool")]
843   public bool Testbool { get; set; }
844   [Newtonsoft.Json.JsonProperty("testhashs32_fnv1")]
845   [Newtonsoft.Json.JsonIgnore()]
846   public int Testhashs32Fnv1 { get; set; }
847   [Newtonsoft.Json.JsonProperty("testhashu32_fnv1")]
848   [Newtonsoft.Json.JsonIgnore()]
849   public uint Testhashu32Fnv1 { get; set; }
850   [Newtonsoft.Json.JsonProperty("testhashs64_fnv1")]
851   [Newtonsoft.Json.JsonIgnore()]
852   public long Testhashs64Fnv1 { get; set; }
853   [Newtonsoft.Json.JsonProperty("testhashu64_fnv1")]
854   [Newtonsoft.Json.JsonIgnore()]
855   public ulong Testhashu64Fnv1 { get; set; }
856   [Newtonsoft.Json.JsonProperty("testhashs32_fnv1a")]
857   [Newtonsoft.Json.JsonIgnore()]
858   public int Testhashs32Fnv1a { get; set; }
859   [Newtonsoft.Json.JsonProperty("testhashu32_fnv1a")]
860   [Newtonsoft.Json.JsonIgnore()]
861   public uint Testhashu32Fnv1a { get; set; }
862   [Newtonsoft.Json.JsonProperty("testhashs64_fnv1a")]
863   [Newtonsoft.Json.JsonIgnore()]
864   public long Testhashs64Fnv1a { get; set; }
865   [Newtonsoft.Json.JsonProperty("testhashu64_fnv1a")]
866   [Newtonsoft.Json.JsonIgnore()]
867   public ulong Testhashu64Fnv1a { get; set; }
868   [Newtonsoft.Json.JsonProperty("testarrayofbools")]
869   public List<bool> Testarrayofbools { get; set; }
870   [Newtonsoft.Json.JsonProperty("testf")]
871   public float Testf { get; set; }
872   [Newtonsoft.Json.JsonProperty("testf2")]
873   public float Testf2 { get; set; }
874   [Newtonsoft.Json.JsonProperty("testf3")]
875   public float Testf3 { get; set; }
876   [Newtonsoft.Json.JsonProperty("testarrayofstring2")]
877   public List<string> Testarrayofstring2 { get; set; }
878   [Newtonsoft.Json.JsonProperty("testarrayofsortedstruct")]
879   public List<MyGame.Example.AbilityT> Testarrayofsortedstruct { get; set; }
880   [Newtonsoft.Json.JsonProperty("flex")]
881   public List<byte> Flex { get; set; }
882   [Newtonsoft.Json.JsonProperty("test5")]
883   public List<MyGame.Example.TestT> Test5 { get; set; }
884   [Newtonsoft.Json.JsonProperty("vector_of_longs")]
885   public List<long> VectorOfLongs { get; set; }
886   [Newtonsoft.Json.JsonProperty("vector_of_doubles")]
887   public List<double> VectorOfDoubles { get; set; }
888   [Newtonsoft.Json.JsonProperty("parent_namespace_test")]
889   public MyGame.InParentNamespaceT ParentNamespaceTest { get; set; }
890   [Newtonsoft.Json.JsonProperty("vector_of_referrables")]
891   public List<MyGame.Example.ReferrableT> VectorOfReferrables { get; set; }
892   [Newtonsoft.Json.JsonProperty("single_weak_reference")]
893   [Newtonsoft.Json.JsonIgnore()]
894   public ulong SingleWeakReference { get; set; }
895   [Newtonsoft.Json.JsonProperty("vector_of_weak_references")]
896   [Newtonsoft.Json.JsonIgnore()]
897   public List<ulong> VectorOfWeakReferences { get; set; }
898   [Newtonsoft.Json.JsonProperty("vector_of_strong_referrables")]
899   public List<MyGame.Example.ReferrableT> VectorOfStrongReferrables { get; set; }
900   [Newtonsoft.Json.JsonProperty("co_owning_reference")]
901   [Newtonsoft.Json.JsonIgnore()]
902   public ulong CoOwningReference { get; set; }
903   [Newtonsoft.Json.JsonProperty("vector_of_co_owning_references")]
904   [Newtonsoft.Json.JsonIgnore()]
905   public List<ulong> VectorOfCoOwningReferences { get; set; }
906   [Newtonsoft.Json.JsonProperty("non_owning_reference")]
907   [Newtonsoft.Json.JsonIgnore()]
908   public ulong NonOwningReference { get; set; }
909   [Newtonsoft.Json.JsonProperty("vector_of_non_owning_references")]
910   [Newtonsoft.Json.JsonIgnore()]
911   public List<ulong> VectorOfNonOwningReferences { get; set; }
912   [Newtonsoft.Json.JsonProperty("any_unique_type")]
913   private MyGame.Example.AnyUniqueAliases AnyUniqueType {
914     get {
915       return this.AnyUnique != null ? this.AnyUnique.Type : MyGame.Example.AnyUniqueAliases.NONE;
916     }
917     set {
918       this.AnyUnique = new MyGame.Example.AnyUniqueAliasesUnion();
919       this.AnyUnique.Type = value;
920     }
921   }
922   [Newtonsoft.Json.JsonProperty("any_unique")]
923   [Newtonsoft.Json.JsonConverter(typeof(MyGame.Example.AnyUniqueAliasesUnion_JsonConverter))]
924   public MyGame.Example.AnyUniqueAliasesUnion AnyUnique { get; set; }
925   [Newtonsoft.Json.JsonProperty("any_ambiguous_type")]
926   private MyGame.Example.AnyAmbiguousAliases AnyAmbiguousType {
927     get {
928       return this.AnyAmbiguous != null ? this.AnyAmbiguous.Type : MyGame.Example.AnyAmbiguousAliases.NONE;
929     }
930     set {
931       this.AnyAmbiguous = new MyGame.Example.AnyAmbiguousAliasesUnion();
932       this.AnyAmbiguous.Type = value;
933     }
934   }
935   [Newtonsoft.Json.JsonProperty("any_ambiguous")]
936   [Newtonsoft.Json.JsonConverter(typeof(MyGame.Example.AnyAmbiguousAliasesUnion_JsonConverter))]
937   public MyGame.Example.AnyAmbiguousAliasesUnion AnyAmbiguous { get; set; }
938   [Newtonsoft.Json.JsonProperty("vector_of_enums")]
939   public List<MyGame.Example.Color> VectorOfEnums { get; set; }
940   [Newtonsoft.Json.JsonProperty("signed_enum")]
941   public MyGame.Example.Race SignedEnum { get; set; }
942   [Newtonsoft.Json.JsonProperty("testrequirednestedflatbuffer")]
943   public List<byte> Testrequirednestedflatbuffer { get; set; }
944   [Newtonsoft.Json.JsonProperty("scalar_key_sorted_tables")]
945   public List<MyGame.Example.StatT> ScalarKeySortedTables { get; set; }
946   [Newtonsoft.Json.JsonProperty("native_inline")]
947   public MyGame.Example.TestT NativeInline { get; set; }
948   [Newtonsoft.Json.JsonProperty("long_enum_non_enum_default")]
949   public MyGame.Example.LongEnum LongEnumNonEnumDefault { get; set; }
950   [Newtonsoft.Json.JsonProperty("long_enum_normal_default")]
951   public MyGame.Example.LongEnum LongEnumNormalDefault { get; set; }
952 
MonsterT()953   public MonsterT() {
954     this.Pos = new MyGame.Example.Vec3T();
955     this.Mana = 150;
956     this.Hp = 100;
957     this.Name = null;
958     this.Inventory = null;
959     this.Color = MyGame.Example.Color.Blue;
960     this.Test = null;
961     this.Test4 = null;
962     this.Testarrayofstring = null;
963     this.Testarrayoftables = null;
964     this.Enemy = null;
965     this.Testnestedflatbuffer = null;
966     this.Testempty = null;
967     this.Testbool = false;
968     this.Testhashs32Fnv1 = 0;
969     this.Testhashu32Fnv1 = 0;
970     this.Testhashs64Fnv1 = 0;
971     this.Testhashu64Fnv1 = 0;
972     this.Testhashs32Fnv1a = 0;
973     this.Testhashu32Fnv1a = 0;
974     this.Testhashs64Fnv1a = 0;
975     this.Testhashu64Fnv1a = 0;
976     this.Testarrayofbools = null;
977     this.Testf = 3.14159f;
978     this.Testf2 = 3.0f;
979     this.Testf3 = 0.0f;
980     this.Testarrayofstring2 = null;
981     this.Testarrayofsortedstruct = null;
982     this.Flex = null;
983     this.Test5 = null;
984     this.VectorOfLongs = null;
985     this.VectorOfDoubles = null;
986     this.ParentNamespaceTest = null;
987     this.VectorOfReferrables = null;
988     this.SingleWeakReference = 0;
989     this.VectorOfWeakReferences = null;
990     this.VectorOfStrongReferrables = null;
991     this.CoOwningReference = 0;
992     this.VectorOfCoOwningReferences = null;
993     this.NonOwningReference = 0;
994     this.VectorOfNonOwningReferences = null;
995     this.AnyUnique = null;
996     this.AnyAmbiguous = null;
997     this.VectorOfEnums = null;
998     this.SignedEnum = MyGame.Example.Race.None;
999     this.Testrequirednestedflatbuffer = null;
1000     this.ScalarKeySortedTables = null;
1001     this.NativeInline = new MyGame.Example.TestT();
1002     this.LongEnumNonEnumDefault = 0;
1003     this.LongEnumNormalDefault = MyGame.Example.LongEnum.LongOne;
1004   }
1005 
DeserializeFromJson(string jsonText)1006   public static MonsterT DeserializeFromJson(string jsonText) {
1007     return Newtonsoft.Json.JsonConvert.DeserializeObject<MonsterT>(jsonText);
1008   }
SerializeToJson()1009   public string SerializeToJson() {
1010     return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
1011   }
DeserializeFromBinary(byte[] fbBuffer)1012   public static MonsterT DeserializeFromBinary(byte[] fbBuffer) {
1013     return Monster.GetRootAsMonster(new ByteBuffer(fbBuffer)).UnPack();
1014   }
SerializeToBinary()1015   public byte[] SerializeToBinary() {
1016     var fbb = new FlatBufferBuilder(0x10000);
1017     Monster.FinishMonsterBuffer(fbb, Monster.Pack(fbb, this));
1018     return fbb.DataBuffer.ToSizedArray();
1019   }
1020 }
1021 
1022 
1023 }
1024