internal PlayerNode(string JSON) : base(JSON) { _SteamID = GetString("steamid"); Name = GetString("name"); Team = GetEnum<PlayerTeam>("team"); Clan = GetString("clan"); State = new PlayerStateNode(_Data?.SelectToken("state")?.ToString() ?? "{}"); Weapons = new WeaponsNode(_Data?.SelectToken("weapons")?.ToString() ?? "{}"); MatchStats = new MatchStatsNode(_Data?.SelectToken("match_stats")?.ToString() ?? "{}"); Activity = GetEnum<PlayerActivity>("activity"); }
internal PlayerNode(string JSON) : base(JSON) { _SteamID = GetString("steamid"); Name = GetString("name"); Team = GetEnum <PlayerTeam>("team"); Clan = GetString("clan"); State = new PlayerStateNode(_Data?.SelectToken("state")?.ToString() ?? "{}"); Weapons = new WeaponsNode(_Data?.SelectToken("weapons")?.ToString() ?? "{}"); MatchStats = new MatchStatsNode(_Data?.SelectToken("match_stats")?.ToString() ?? "{}"); Activity = GetEnum <PlayerActivity>("activity"); }
internal PlayerNode(string JSON) : base(JSON) { SteamID = GetString("steamid"); Name = GetString("name"); ObserverSlot = GetInt32("observer_slot"); Team = GetEnum <PlayerTeam>("team"); Clan = GetString("clan"); State = new PlayerStateNode(_data?.SelectToken("state")?.ToString() ?? "{}"); Weapons = new WeaponsNode(_data?.SelectToken("weapons")?.ToString() ?? "{}"); MatchStats = new MatchStatsNode(_data?.SelectToken("match_stats")?.ToString() ?? "{}"); Activity = GetEnum <PlayerActivity>("activity"); Position = ParseVector(GetString("position")); Forward = ParseVector(GetString("forward")); }