Пример #1
0
 public void RemovePlayer(string playerToRemove)
 {
     if (PlayerStatusList.ContainsKey(playerToRemove))
     {
         PlayerStatusList.TryRemove(playerToRemove, out _);
     }
 }
Пример #2
0
 public void RemovePlayer(string playerToRemove)
 {
     if (PlayerStatusList.ContainsKey(playerToRemove))
     {
         PlayerStatusList.TryRemove(playerToRemove, out _);
         LunaLog.Log($"[LMP]: Removed {playerToRemove} from Status list");
     }
 }
Пример #3
0
        public PlayerStatus GetPlayerStatus(string playerName)
        {
            if (playerName == SettingsSystem.CurrentSettings.PlayerName)
            {
                return(MyPlayerStatus);
            }

            return(PlayerStatusList.ContainsKey(playerName) ? PlayerStatusList[playerName] : null);
        }
Пример #4
0
 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);
     }
 }
Пример #5
0
 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}");
     }
 }
Пример #6
0
 public PlayerStatus GetPlayerStatus(string playerName)
 {
     return(PlayerStatusList.ContainsKey(playerName) ? PlayerStatusList[playerName] : null);
 }