• 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
6 {
7 
8 using global::System;
9 using global::FlatBuffers;
10 
11 public struct MonsterExtra : IFlatbufferObject
12 {
13   private Table __p;
14   public ByteBuffer ByteBuffer { get { return __p.bb; } }
GetRootAsMonsterExtraMyGame.MonsterExtra15   public static MonsterExtra GetRootAsMonsterExtra(ByteBuffer _bb) { return GetRootAsMonsterExtra(_bb, new MonsterExtra()); }
GetRootAsMonsterExtraMyGame.MonsterExtra16   public static MonsterExtra GetRootAsMonsterExtra(ByteBuffer _bb, MonsterExtra obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
__initMyGame.MonsterExtra17   public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
__assignMyGame.MonsterExtra18   public MonsterExtra __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
19 
20   public float TestfNan { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)Single.NaN; } }
MutateTestfNanMyGame.MonsterExtra21   public bool MutateTestfNan(float testf_nan) { int o = __p.__offset(4); if (o != 0) { __p.bb.PutFloat(o + __p.bb_pos, testf_nan); return true; } else { return false; } }
22   public float TestfPinf { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)Single.PositiveInfinity; } }
MutateTestfPinfMyGame.MonsterExtra23   public bool MutateTestfPinf(float testf_pinf) { int o = __p.__offset(6); if (o != 0) { __p.bb.PutFloat(o + __p.bb_pos, testf_pinf); return true; } else { return false; } }
24   public float TestfNinf { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)Single.NegativeInfinity; } }
MutateTestfNinfMyGame.MonsterExtra25   public bool MutateTestfNinf(float testf_ninf) { int o = __p.__offset(8); if (o != 0) { __p.bb.PutFloat(o + __p.bb_pos, testf_ninf); return true; } else { return false; } }
26   public double TestdNan { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetDouble(o + __p.bb_pos) : (double)Double.NaN; } }
MutateTestdNanMyGame.MonsterExtra27   public bool MutateTestdNan(double testd_nan) { int o = __p.__offset(10); if (o != 0) { __p.bb.PutDouble(o + __p.bb_pos, testd_nan); return true; } else { return false; } }
28   public double TestdPinf { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetDouble(o + __p.bb_pos) : (double)Double.PositiveInfinity; } }
MutateTestdPinfMyGame.MonsterExtra29   public bool MutateTestdPinf(double testd_pinf) { int o = __p.__offset(12); if (o != 0) { __p.bb.PutDouble(o + __p.bb_pos, testd_pinf); return true; } else { return false; } }
30   public double TestdNinf { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetDouble(o + __p.bb_pos) : (double)Double.NegativeInfinity; } }
MutateTestdNinfMyGame.MonsterExtra31   public bool MutateTestdNinf(double testd_ninf) { int o = __p.__offset(14); if (o != 0) { __p.bb.PutDouble(o + __p.bb_pos, testd_ninf); return true; } else { return false; } }
32 
CreateMonsterExtraMyGame.MonsterExtra33   public static Offset<MonsterExtra> CreateMonsterExtra(FlatBufferBuilder builder,
34       float testf_nan = Single.NaN,
35       float testf_pinf = Single.PositiveInfinity,
36       float testf_ninf = Single.NegativeInfinity,
37       double testd_nan = Double.NaN,
38       double testd_pinf = Double.PositiveInfinity,
39       double testd_ninf = Double.NegativeInfinity) {
40     builder.StartObject(6);
41     MonsterExtra.AddTestdNinf(builder, testd_ninf);
42     MonsterExtra.AddTestdPinf(builder, testd_pinf);
43     MonsterExtra.AddTestdNan(builder, testd_nan);
44     MonsterExtra.AddTestfNinf(builder, testf_ninf);
45     MonsterExtra.AddTestfPinf(builder, testf_pinf);
46     MonsterExtra.AddTestfNan(builder, testf_nan);
47     return MonsterExtra.EndMonsterExtra(builder);
48   }
49 
StartMonsterExtraMyGame.MonsterExtra50   public static void StartMonsterExtra(FlatBufferBuilder builder) { builder.StartObject(6); }
AddTestfNanMyGame.MonsterExtra51   public static void AddTestfNan(FlatBufferBuilder builder, float testfNan) { builder.AddFloat(0, testfNan, Single.NaN); }
AddTestfPinfMyGame.MonsterExtra52   public static void AddTestfPinf(FlatBufferBuilder builder, float testfPinf) { builder.AddFloat(1, testfPinf, Single.PositiveInfinity); }
AddTestfNinfMyGame.MonsterExtra53   public static void AddTestfNinf(FlatBufferBuilder builder, float testfNinf) { builder.AddFloat(2, testfNinf, Single.NegativeInfinity); }
AddTestdNanMyGame.MonsterExtra54   public static void AddTestdNan(FlatBufferBuilder builder, double testdNan) { builder.AddDouble(3, testdNan, Double.NaN); }
AddTestdPinfMyGame.MonsterExtra55   public static void AddTestdPinf(FlatBufferBuilder builder, double testdPinf) { builder.AddDouble(4, testdPinf, Double.PositiveInfinity); }
AddTestdNinfMyGame.MonsterExtra56   public static void AddTestdNinf(FlatBufferBuilder builder, double testdNinf) { builder.AddDouble(5, testdNinf, Double.NegativeInfinity); }
EndMonsterExtraMyGame.MonsterExtra57   public static Offset<MonsterExtra> EndMonsterExtra(FlatBufferBuilder builder) {
58     int o = builder.EndObject();
59     return new Offset<MonsterExtra>(o);
60   }
61 };
62 
63 
64 }
65