-
-
Notifications
You must be signed in to change notification settings - Fork 73
/
MatchConfig.cs
76 lines (52 loc) · 2.44 KB
/
MatchConfig.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
using System.Text.Json.Serialization;
using Newtonsoft.Json.Linq;
namespace MatchZy
{
public class MatchConfig
{
[JsonPropertyName("maplist")]
public List<string> Maplist { get; set; } = new List<string>();
[JsonPropertyName("maps_pool")]
public List<string> MapsPool { get; set; } = new List<string>();
[JsonPropertyName("maps_left_in_veto_pool")]
public List<string> MapsLeftInVetoPool { get; set; } = new List<string>();
[JsonPropertyName("map_ban_order")]
public List<string> MapBanOrder { get; set; } = new List<string>();
[JsonPropertyName("skip_veto")]
public bool SkipVeto { get; set; } = true;
[JsonPropertyName("match_id")]
public long MatchId { get; set; }
[JsonPropertyName("num_maps")]
public int NumMaps { get; set; } = 1;
[JsonPropertyName("players_per_team")]
public int PlayersPerTeam { get; set; } = 5;
[JsonPropertyName("min_players_to_ready")]
public int MinPlayersToReady { get; set; } = 12;
[JsonPropertyName("min_spectators_to_ready")]
public int MinSpectatorsToReady { get; set; } = 0;
[JsonPropertyName("current_map_number")]
public int CurrentMapNumber { get; set; } = 0;
[JsonPropertyName("map_sides")]
public List<string> MapSides { get; set; } = new List<string>();
[JsonPropertyName("series_can_clinch")]
public bool SeriesCanClinch { get; set; } = true;
[JsonPropertyName("scrim")]
public bool Scrim { get; set; } = false;
[JsonPropertyName("wingman")]
public bool Wingman { get; set; } = false;
[JsonPropertyName("match_side_type")]
public string MatchSideType { get; set; } = "standard";
[JsonPropertyName("changed_cvars")]
public Dictionary<string, string> ChangedCvars { get; set; } = new();
[JsonPropertyName("original_cvars")]
public Dictionary<string, string> OriginalCvars { get; set; } = new();
[JsonPropertyName("spectators")]
public JToken Spectators { get; set; } = new JObject();
[JsonPropertyName("remote_log_url")]
public string RemoteLogURL { get; set; } = "";
[JsonPropertyName("remote_log_header_key")]
public string RemoteLogHeaderKey { get; set; } = "";
[JsonPropertyName("remote_log_header_value")]
public string RemoteLogHeaderValue { get; set; } = "";
}
}