Add more log message
This commit is contained in:
parent
442956c34d
commit
c82ce4b465
@ -38,11 +38,15 @@ internal class CS2MessageHandler
|
||||
int? currentDeaths = messageJson.SelectToken("player.match_stats.deaths", false)?.Value<int>();
|
||||
if(currentSteamId == mySteamId && previousSteamId == currentSteamId && currentDeaths > previousDeaths)
|
||||
OnDeath?.Invoke();
|
||||
else if(currentSteamId != mySteamId)
|
||||
Console.WriteLine("Not my SteamId");
|
||||
|
||||
int? previousKills = messageJson.SelectToken("previously.player.match_stats.kills", false)?.Value<int>();
|
||||
int? currentKills = messageJson.SelectToken("player.match_stats.kills", false)?.Value<int>();
|
||||
if(currentSteamId == mySteamId && previousSteamId == currentSteamId && currentKills > previousKills)
|
||||
OnKill?.Invoke();
|
||||
else if(currentSteamId != mySteamId)
|
||||
Console.WriteLine("Not my SteamId");
|
||||
}
|
||||
|
||||
private RoundState ParseRoundStateFromString(string? str)
|
||||
|
Loading…
Reference in New Issue
Block a user