Exemple #1
0
 public static Offset <MatchSettings> CreateMatchSettings(FlatBufferBuilder builder,
                                                          VectorOffset playerConfigurationsOffset = default(VectorOffset),
                                                          GameMode gameMode = GameMode.Soccer,
                                                          GameMap gameMap   = GameMap.DFHStadium,
                                                          bool skipReplays  = false,
                                                          bool instantStart = false,
                                                          Offset <MutatorSettings> mutatorSettingsOffset = default(Offset <MutatorSettings>))
 {
     builder.StartObject(6);
     MatchSettings.AddMutatorSettings(builder, mutatorSettingsOffset);
     MatchSettings.AddPlayerConfigurations(builder, playerConfigurationsOffset);
     MatchSettings.AddInstantStart(builder, instantStart);
     MatchSettings.AddSkipReplays(builder, skipReplays);
     MatchSettings.AddGameMap(builder, gameMap);
     MatchSettings.AddGameMode(builder, gameMode);
     return(MatchSettings.EndMatchSettings(builder));
 }
 public static Offset <MatchSettings> CreateMatchSettings(FlatBufferBuilder builder,
                                                          VectorOffset playerConfigurationsOffset = default(VectorOffset),
                                                          GameMode gameMode = GameMode.Soccer,
                                                          GameMap gameMap   = GameMap.DFHStadium,
                                                          bool skipReplays  = false,
                                                          bool instantStart = false,
                                                          Offset <MutatorSettings> mutatorSettingsOffset = default(Offset <MutatorSettings>),
                                                          ExistingMatchBehavior existingMatchBehavior    = ExistingMatchBehavior.Restart_If_Different,
                                                          bool enableLockstep = false)
 {
     builder.StartObject(8);
     MatchSettings.AddMutatorSettings(builder, mutatorSettingsOffset);
     MatchSettings.AddPlayerConfigurations(builder, playerConfigurationsOffset);
     MatchSettings.AddEnableLockstep(builder, enableLockstep);
     MatchSettings.AddExistingMatchBehavior(builder, existingMatchBehavior);
     MatchSettings.AddInstantStart(builder, instantStart);
     MatchSettings.AddSkipReplays(builder, skipReplays);
     MatchSettings.AddGameMap(builder, gameMap);
     MatchSettings.AddGameMode(builder, gameMode);
     return(MatchSettings.EndMatchSettings(builder));
 }
 public static MatchSettings GetRootAsMatchSettings(ByteBuffer _bb, MatchSettings obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }