mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-11-01 13:15:38 +01:00
Compare commits
2 Commits
4a449e12a6
...
b85a31a572
Author | SHA1 | Date | |
---|---|---|---|
|
b85a31a572 | ||
f4a4449243 |
@ -32,6 +32,9 @@
|
|||||||
[Required]
|
[Required]
|
||||||
public int NumPlayers { get; set; }
|
public int NumPlayers { get; set; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
public int MaxPlayers { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
[StringLength(100)]
|
[StringLength(100)]
|
||||||
public string GameState { get; set; }
|
public string GameState { get; set; }
|
||||||
@ -61,6 +64,7 @@
|
|||||||
this.MapName == info.MapName &&
|
this.MapName == info.MapName &&
|
||||||
this.GameType == info.GameType &&
|
this.GameType == info.GameType &&
|
||||||
this.NumPlayers == info.NumPlayers &&
|
this.NumPlayers == info.NumPlayers &&
|
||||||
|
this.MaxPlayers == info.MaxPlayers &&
|
||||||
this.GameState == info.GameState &&
|
this.GameState == info.GameState &&
|
||||||
this.TimeLimit == info.TimeLimit &&
|
this.TimeLimit == info.TimeLimit &&
|
||||||
this.FragLimit == info.FragLimit &&
|
this.FragLimit == info.FragLimit &&
|
||||||
@ -79,6 +83,7 @@
|
|||||||
hash.Add(this.MapName);
|
hash.Add(this.MapName);
|
||||||
hash.Add(this.GameType);
|
hash.Add(this.GameType);
|
||||||
hash.Add(this.NumPlayers);
|
hash.Add(this.NumPlayers);
|
||||||
|
hash.Add(this.MaxPlayers);
|
||||||
hash.Add(this.GameState);
|
hash.Add(this.GameState);
|
||||||
hash.Add(this.TimeLimit);
|
hash.Add(this.TimeLimit);
|
||||||
hash.Add(this.FragLimit);
|
hash.Add(this.FragLimit);
|
||||||
|
@ -791,6 +791,9 @@ namespace Giants.WebApi.Clients
|
|||||||
[Newtonsoft.Json.JsonProperty("numPlayers", Required = Newtonsoft.Json.Required.Always)]
|
[Newtonsoft.Json.JsonProperty("numPlayers", Required = Newtonsoft.Json.Required.Always)]
|
||||||
public int NumPlayers { get; set; }
|
public int NumPlayers { get; set; }
|
||||||
|
|
||||||
|
[Newtonsoft.Json.JsonProperty("maxPlayers", Required = Newtonsoft.Json.Required.Always)]
|
||||||
|
public int MaxPlayers { get; set; }
|
||||||
|
|
||||||
[Newtonsoft.Json.JsonProperty("gameState", Required = Newtonsoft.Json.Required.Always)]
|
[Newtonsoft.Json.JsonProperty("gameState", Required = Newtonsoft.Json.Required.Always)]
|
||||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||||
[System.ComponentModel.DataAnnotations.StringLength(100)]
|
[System.ComponentModel.DataAnnotations.StringLength(100)]
|
||||||
|
@ -192,6 +192,10 @@
|
|||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
},
|
||||||
|
"maxPlayers": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
"gameState": {
|
"gameState": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 100,
|
"maxLength": 100,
|
||||||
|
@ -22,6 +22,7 @@ struct ServerInfoResponse
|
|||||||
mapName = serverInfoResponse["mapName"];
|
mapName = serverInfoResponse["mapName"];
|
||||||
gameType = serverInfoResponse["gameType"];
|
gameType = serverInfoResponse["gameType"];
|
||||||
numPlayers = serverInfoResponse["numPlayers"];
|
numPlayers = serverInfoResponse["numPlayers"];
|
||||||
|
maxPlayers = serverInfoResponse["maxPlayers"];
|
||||||
gameState = serverInfoResponse["gameState"];
|
gameState = serverInfoResponse["gameState"];
|
||||||
timeLimit = serverInfoResponse["timeLimit"];
|
timeLimit = serverInfoResponse["timeLimit"];
|
||||||
fragLimit = serverInfoResponse["fragLimit"];
|
fragLimit = serverInfoResponse["fragLimit"];
|
||||||
@ -42,6 +43,7 @@ struct ServerInfoResponse
|
|||||||
std::string mapName;
|
std::string mapName;
|
||||||
std::string gameType;
|
std::string gameType;
|
||||||
int numPlayers = 0;
|
int numPlayers = 0;
|
||||||
|
int maxPlayers = 0;
|
||||||
std::string gameState;
|
std::string gameState;
|
||||||
int timeLimit = 0;
|
int timeLimit = 0;
|
||||||
int fragLimit = 0;
|
int fragLimit = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user