Example #1
0
 public static Offset <MutatorSettings> CreateMutatorSettings(FlatBufferBuilder builder,
                                                              MatchLength matchLength                   = MatchLength.Five_Minutes,
                                                              MaxScore maxScore                         = MaxScore.Unlimited,
                                                              OvertimeOption overtimeOption             = OvertimeOption.Unlimited,
                                                              SeriesLengthOption seriesLengthOption     = SeriesLengthOption.Unlimited,
                                                              GameSpeedOption gameSpeedOption           = GameSpeedOption.Default,
                                                              BallMaxSpeedOption ballMaxSpeedOption     = BallMaxSpeedOption.Default,
                                                              BallTypeOption ballTypeOption             = BallTypeOption.Default,
                                                              BallWeightOption ballWeightOption         = BallWeightOption.Default,
                                                              BallSizeOption ballSizeOption             = BallSizeOption.Default,
                                                              BallBouncinessOption ballBouncinessOption = BallBouncinessOption.Default,
                                                              BoostOption boostOption                   = BoostOption.Normal_Boost,
                                                              RumbleOption rumbleOption                 = RumbleOption.None,
                                                              BoostStrengthOption boostStrengthOption   = BoostStrengthOption.One,
                                                              GravityOption gravityOption               = GravityOption.Default,
                                                              DemolishOption demolishOption             = DemolishOption.Default,
                                                              RespawnTimeOption respawnTimeOption       = RespawnTimeOption.Three_Seconds)
 {
     builder.StartObject(16);
     MutatorSettings.AddRespawnTimeOption(builder, respawnTimeOption);
     MutatorSettings.AddDemolishOption(builder, demolishOption);
     MutatorSettings.AddGravityOption(builder, gravityOption);
     MutatorSettings.AddBoostStrengthOption(builder, boostStrengthOption);
     MutatorSettings.AddRumbleOption(builder, rumbleOption);
     MutatorSettings.AddBoostOption(builder, boostOption);
     MutatorSettings.AddBallBouncinessOption(builder, ballBouncinessOption);
     MutatorSettings.AddBallSizeOption(builder, ballSizeOption);
     MutatorSettings.AddBallWeightOption(builder, ballWeightOption);
     MutatorSettings.AddBallTypeOption(builder, ballTypeOption);
     MutatorSettings.AddBallMaxSpeedOption(builder, ballMaxSpeedOption);
     MutatorSettings.AddGameSpeedOption(builder, gameSpeedOption);
     MutatorSettings.AddSeriesLengthOption(builder, seriesLengthOption);
     MutatorSettings.AddOvertimeOption(builder, overtimeOption);
     MutatorSettings.AddMaxScore(builder, maxScore);
     MutatorSettings.AddMatchLength(builder, matchLength);
     return(MutatorSettings.EndMutatorSettings(builder));
 }
Example #2
0
 public static void AddOvertimeOption(FlatBufferBuilder builder, OvertimeOption overtimeOption)
 {
     builder.AddSbyte(2, (sbyte)overtimeOption, 0);
 }