예제 #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);
 }