Esempio n. 1
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. 2
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));
 }