public void RemovePlayer(string playerToRemove) { if (PlayerStatusList.ContainsKey(playerToRemove)) { PlayerStatusList.TryRemove(playerToRemove, out _); } }
public void RemovePlayer(string playerToRemove) { if (PlayerStatusList.ContainsKey(playerToRemove)) { PlayerStatusList.TryRemove(playerToRemove, out _); LunaLog.Log($"[LMP]: Removed {playerToRemove} from Status list"); } }
public PlayerStatus GetPlayerStatus(string playerName) { if (playerName == SettingsSystem.CurrentSettings.PlayerName) { return(MyPlayerStatus); } return(PlayerStatusList.ContainsKey(playerName) ? PlayerStatusList[playerName] : null); }
public void RemovePlayer(string playerToRemove) { if (PlayerStatusList.ContainsKey(playerToRemove)) { PlayerStatusList.Remove(playerToRemove); Debug.Log($"[LMP]: Removed {playerToRemove} from Status list"); } else { Debug.LogError("[LMP]: Cannot remove non-existant player " + playerToRemove); } }
public void RemovePlayer(string playerToRemove) { if (PlayerStatusList.ContainsKey(playerToRemove)) { PlayerStatusList.TryRemove(playerToRemove, out _); LunaLog.Log($"[LMP]: Removed {playerToRemove} from Status list"); } else { LunaLog.LogError($"[LMP]: Cannot remove non-existant player {playerToRemove}"); } }
public PlayerStatus GetPlayerStatus(string playerName) { return(PlayerStatusList.ContainsKey(playerName) ? PlayerStatusList[playerName] : null); }