Exemple #1
0
 internal PlayerNode(string JSON) : base(JSON)
 {
     Name            = GetString("name");
     Character       = GetString("character");
     Level           = GetInt("level");
     Rank            = GetInt("rank");
     State           = GetEnum <PlayerState>("state");
     Health          = new HealthNode(_ParsedData["health"]?.ToString() ?? "");
     Armor           = new ArmorNode(_ParsedData["armor"]?.ToString() ?? "");
     Weapons         = new WeaponsNode(_ParsedData["weapons"]?.ToString() ?? "");
     DownTime        = GetInt("down_time");
     SuspicionAmount = GetFloat("suspicion");
     FlashAmount     = GetFloat("flashbang_amount");
     IsLocalPlayer   = GetBool("is_local");
     IsSwanSong      = GetBool("is_swansong");
 }
Exemple #2
0
 internal PlayerNode(string JSON) : base(JSON)
 {
     Tick   = GetInt("tick");
     Health = new HealthNode(_ParsedData["health"]?.ToString() ?? "");
     Mana   = new ManaNode(_ParsedData["mana"]?.ToString() ?? "");
 }