-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from Lan2Play/feature/G5Events
Feature/g5 events
- Loading branch information
Showing
24 changed files
with
287 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,7 @@ | |
|
||
public interface ITeamInfo | ||
{ | ||
string TeamId { get; } | ||
|
||
string TeamName { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
namespace PugSharp.Api.Contract; | ||
|
||
public record RoundStatusUpdateParams(string MatchId, int MapNumber, ITeamInfo TeamInfo1, ITeamInfo TeamInfo2, IMap CurrentMap); | ||
public record RoundStatusUpdateParams(string MatchId, int MapNumber, ITeamInfo TeamInfo1, ITeamInfo TeamInfo2, IMap CurrentMap, int Reason, int RoundTime); |
2 changes: 1 addition & 1 deletion
2
PugSharp.Api.Contract/StartingSide.cs → PugSharp.Api.Contract/TeamSide.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
namespace PugSharp.Api.Contract; | ||
|
||
public enum StartingSide | ||
public enum TeamSide | ||
{ | ||
None, | ||
T = 2, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace PugSharp.Api.G5Api; | ||
|
||
public class PlayerStats | ||
{ | ||
[JsonPropertyName("kills")] | ||
public int Kills { get; set; } | ||
|
||
[JsonPropertyName("deaths")] | ||
public int Deaths { get; set; } | ||
|
||
[JsonPropertyName("assists")] | ||
public int Assists { get; set; } | ||
|
||
[JsonPropertyName("flash_assists")] | ||
public int FlashAssists { get; set; } | ||
|
||
[JsonPropertyName("team_kills")] | ||
public int TeamKills { get; set; } | ||
|
||
[JsonPropertyName("suicides")] | ||
public int Suicides { get; set; } | ||
|
||
[JsonPropertyName("damage")] | ||
public int Damage { get; set; } | ||
|
||
[JsonPropertyName("utility_damage")] | ||
public int UtilityDamage { get; set; } | ||
|
||
[JsonPropertyName("enemies_flashed")] | ||
public int EnemiesFlashed { get; set; } | ||
|
||
[JsonPropertyName("friendlies_flashed")] | ||
public int FriendliesFlashed { get; set; } | ||
|
||
[JsonPropertyName("knife_kills")] | ||
public int KnifeKills { get; set; } | ||
|
||
[JsonPropertyName("headshot_kills")] | ||
public int HeadshotKills { get; set; } | ||
|
||
[JsonPropertyName("rounds_played")] | ||
public int RoundsPlayed { get; set; } | ||
|
||
[JsonPropertyName("bomb_defuses")] | ||
public int BombDefuses { get; set; } | ||
|
||
[JsonPropertyName("bomb_plants")] | ||
public int BombPlants { get; set; } | ||
|
||
[JsonPropertyName("1k")] | ||
public int Kills1 { get; set; } | ||
|
||
[JsonPropertyName("2k")] | ||
public int Kills2 { get; set; } | ||
|
||
[JsonPropertyName("3k")] | ||
public int Kills3 { get; set; } | ||
|
||
[JsonPropertyName("4k")] | ||
public int Kills4 { get; set; } | ||
|
||
[JsonPropertyName("5k")] | ||
public int Kills5 { get; set; } | ||
|
||
#pragma warning disable S100 // Methods and properties should be named in PascalCase | ||
[JsonPropertyName("1v1")] | ||
public int OneV1s { get; set; } | ||
|
||
[JsonPropertyName("1v2")] | ||
public int OneV2s { get; set; } | ||
|
||
[JsonPropertyName("1v3")] | ||
public int OneV3s { get; set; } | ||
|
||
[JsonPropertyName("1v4")] | ||
public int OneV4s { get; set; } | ||
|
||
[JsonPropertyName("1v5")] | ||
public int OneV5s { get; set; } | ||
#pragma warning restore S100 // Methods and properties should be named in PascalCase | ||
|
||
[JsonPropertyName("first_kills_t")] | ||
public int FirstKillsT { get; set; } | ||
|
||
[JsonPropertyName("first_kills_ct")] | ||
public int FirstKillsCT { get; set; } | ||
|
||
[JsonPropertyName("first_deaths_t")] | ||
public int FirstDeathsT { get; set; } | ||
|
||
[JsonPropertyName("first_deaths_ct")] | ||
public int FirstDeathsCT { get; set; } | ||
|
||
[JsonPropertyName("trade_kills")] | ||
public int TradeKills { get; set; } | ||
|
||
[JsonPropertyName("kast")] | ||
public int Kast { get; set; } | ||
|
||
[JsonPropertyName("score")] | ||
public int Score { get; set; } | ||
|
||
[JsonPropertyName("mvp")] | ||
public int Mvps { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.