PlayerBotScoreboardData
Class holding the data for any player for any scoreboard slot.unknown
csharp
a year ago
1.3 kB
1
Indexable
Never
using Photon.Realtime; using System.Collections.Generic; public class PlayerBotScoreboardData { public bool AI; public bool localClient; public string nickname; public Teams team; public int kills; public int deaths; public int ping; public int level; public Dictionary<byte, int> personalStats; public PlayerBotScoreboardData() { personalStats = new Dictionary<byte, int>(); } public PlayerBotScoreboardData(Player p_player) { localClient = p_player.IsLocal; nickname = p_player.NickName; team = (Teams)p_player.CustomProperties[PhotonKeys.TEAM]; level = (int)p_player.CustomProperties[PhotonKeys.LEVEL]; level = (int)p_player.CustomProperties[PhotonKeys.PING]; kills = (int)p_player.CustomProperties[PhotonKeys.KILLS]; deaths = (int)p_player.CustomProperties[PhotonKeys.DEATHS]; personalStats = (Dictionary<byte, int>)p_player.CustomProperties[PhotonKeys.PLAYER_STATS]; } public PlayerBotScoreboardData(Bot p_bot) { AI = true; nickname = p_bot.Nickname; kills = p_bot.Kills; deaths = p_bot.Deaths; level = p_bot.Level; team = p_bot.Team; personalStats = new Dictionary<byte, int>(); } }