Ejemplo n.º 1
0
 public static void savePlayerToList(int source, PlayerJob job)
 {
     if (PlayersJobs.ContainsKey(source))
     {
         PlayersJobs[source] = job;
     }
     else
     {
         PlayersJobs.Add(source, job);
     }
 }
Ejemplo n.º 2
0
        public static void savePlayerToList(Player player, PlayerJob job)
        {
            int source = ID.GetPLayerId(player);

            if (PlayersJobs.ContainsKey(source))
            {
                PlayersJobs[source] = job;
            }
            else
            {
                PlayersJobs.Add(source, job);
            }
        }