Esempio n. 1
0
 public static Offset <MyGame.MonsterExtra> CreateMonsterExtra(FlatBufferBuilder builder,
                                                               double d0 = Double.NaN,
                                                               double d1 = Double.NaN,
                                                               double d2 = Double.PositiveInfinity,
                                                               double d3 = Double.NegativeInfinity,
                                                               float f0  = Single.NaN,
                                                               float f1  = Single.NaN,
                                                               float f2  = Single.PositiveInfinity,
                                                               float f3  = Single.NegativeInfinity,
                                                               VectorOffset dvecOffset = default(VectorOffset),
                                                               VectorOffset fvecOffset = default(VectorOffset))
 {
     builder.StartTable(11);
     MonsterExtra.AddD3(builder, d3);
     MonsterExtra.AddD2(builder, d2);
     MonsterExtra.AddD1(builder, d1);
     MonsterExtra.AddD0(builder, d0);
     MonsterExtra.AddFvec(builder, fvecOffset);
     MonsterExtra.AddDvec(builder, dvecOffset);
     MonsterExtra.AddF3(builder, f3);
     MonsterExtra.AddF2(builder, f2);
     MonsterExtra.AddF1(builder, f1);
     MonsterExtra.AddF0(builder, f0);
     return(MonsterExtra.EndMonsterExtra(builder));
 }
Esempio n. 2
0
 public static Offset <MonsterExtra> CreateMonsterExtra(FlatBufferBuilder builder,
                                                        float testf_nan   = Single.NaN,
                                                        float testf_pinf  = Single.PositiveInfinity,
                                                        float testf_ninf  = Single.NegativeInfinity,
                                                        double testd_nan  = Double.NaN,
                                                        double testd_pinf = Double.PositiveInfinity,
                                                        double testd_ninf = Double.NegativeInfinity)
 {
     builder.StartObject(6);
     MonsterExtra.AddTestdNinf(builder, testd_ninf);
     MonsterExtra.AddTestdPinf(builder, testd_pinf);
     MonsterExtra.AddTestdNan(builder, testd_nan);
     MonsterExtra.AddTestfNinf(builder, testf_ninf);
     MonsterExtra.AddTestfPinf(builder, testf_pinf);
     MonsterExtra.AddTestfNan(builder, testf_nan);
     return(MonsterExtra.EndMonsterExtra(builder));
 }
Esempio n. 3
0
 public static Offset <MyGame.MonsterExtra> CreateMonsterExtra(FlatBufferBuilder builder,
                                                               float testf_nan              = Single.NaN,
                                                               float testf_pinf             = Single.PositiveInfinity,
                                                               float testf_ninf             = Single.NegativeInfinity,
                                                               double testd_nan             = Double.NaN,
                                                               double testd_pinf            = Double.PositiveInfinity,
                                                               double testd_ninf            = Double.NegativeInfinity,
                                                               VectorOffset testf_vecOffset = default(VectorOffset),
                                                               VectorOffset testd_vecOffset = default(VectorOffset))
 {
     builder.StartTable(8);
     MonsterExtra.AddTestdNinf(builder, testd_ninf);
     MonsterExtra.AddTestdPinf(builder, testd_pinf);
     MonsterExtra.AddTestdNan(builder, testd_nan);
     MonsterExtra.AddTestdVec(builder, testd_vecOffset);
     MonsterExtra.AddTestfVec(builder, testf_vecOffset);
     MonsterExtra.AddTestfNinf(builder, testf_ninf);
     MonsterExtra.AddTestfPinf(builder, testf_pinf);
     MonsterExtra.AddTestfNan(builder, testf_nan);
     return(MonsterExtra.EndMonsterExtra(builder));
 }