Skip to content

Custom Game Settings

GameRuleModifier Record

C#
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
public record GameRuleModifier(
    [property: JsonPropertyName("AllowGameModifiers")] bool AllowGameModifiers,
    [property: JsonPropertyName("PlayOutAllRounds")] bool PlayOutAllRounds,
    [property: JsonPropertyName("SkipMatchHistory")] bool SkipMatchHistory,
    [property: JsonPropertyName("TournamentMode")] bool TournamentMode,
    [property: JsonPropertyName("IsOvertimeWinByTwo")] string IsOvertimeWinByTwo
);

public record CustomGameSettings(
    [property: JsonPropertyName("Map")] string Map,
    [property: JsonPropertyName("Mode")] string Mode,
    [property: JsonPropertyName("UseBots")] bool UseBots,
    [property: JsonPropertyName("GamePod")] string GamePod,
    [property: JsonPropertyName("GameRules")] GameRuleModifier GameRules
);