コード例 #1
0
 // Remove this player from the sick players
 public void UnregisterHealedPlayer(MobSickness mobSickness)
 {
     lock (sickPlayers)
     {
         if (!sickPlayers.Contains(mobSickness))
         {
             sickPlayers.Remove(mobSickness);
         }
     }
 }
コード例 #2
0
 // Add this player as a sick player
 public void RegisterSickPlayer(MobSickness mobSickness)
 {
     lock (sickPlayers)
     {
         if (!sickPlayers.Contains(mobSickness))
         {
             sickPlayers.Add(mobSickness);
         }
     }
 }