GameState Structs and Parser
This commit is contained in:
8
GameState/CS2GameState.cs
Normal file
8
GameState/CS2GameState.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace CS2GSI.GameState;
|
||||
|
||||
public struct CS2GameState
|
||||
{
|
||||
public int Timestamp;
|
||||
public Map? Map;
|
||||
public Player? Player;
|
||||
}
|
8
GameState/Map.cs
Normal file
8
GameState/Map.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace CS2GSI.GameState;
|
||||
|
||||
public struct Map
|
||||
{
|
||||
public string Mode, Name, Phase;
|
||||
public int Round, NumMatchesToWinSeries;
|
||||
public Team TeamCT, TeamT;
|
||||
}
|
10
GameState/Player.cs
Normal file
10
GameState/Player.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace CS2GSI.GameState;
|
||||
|
||||
public struct Player
|
||||
{
|
||||
public string SteamId, Name, Activity;
|
||||
public string? Team;
|
||||
public int? ObserverSlot;
|
||||
public PlayerState? State;
|
||||
public PlayerMatchStats? MatchStats;
|
||||
}
|
6
GameState/PlayerMatchStats.cs
Normal file
6
GameState/PlayerMatchStats.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace CS2GSI.GameState;
|
||||
|
||||
public struct PlayerMatchStats
|
||||
{
|
||||
public int Kills, Assists, Deaths, MVPs, Score;
|
||||
}
|
7
GameState/PlayerState.cs
Normal file
7
GameState/PlayerState.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace CS2GSI.GameState;
|
||||
|
||||
public struct PlayerState
|
||||
{
|
||||
public int Health, Armor, Flashed, Smoked, Burning, Money, RoundKills, RoundHs, EquipmentValue;
|
||||
public bool Helmet;
|
||||
}
|
6
GameState/Team.cs
Normal file
6
GameState/Team.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace CS2GSI.GameState;
|
||||
|
||||
public struct Team
|
||||
{
|
||||
public int Score, ConsecutiveRoundLosses, TimeoutsRemaining, MatchesWonThisSeries;
|
||||
}
|
Reference in New Issue
Block a user