Example #1
0
 private object process(LeavingData obj)
 {
     if (obj == null)
     {
         return(null);
     }
     new FadeText(this, Vector2.Zero, obj.Tag + " has left the Game ");
     return(obj);
 }
Example #2
0
        public void process(LeavingData leaving)
        {
            if (leaving == null) return;
            var found = otherPlayers.FirstOrDefault(p => p.playerID == leaving.playerID);
            if (found != null)
                otherPlayers.Remove(found);
            

        }
Example #3
0
 private static object process(LeavingData obj)
 {
     if (obj == null)
     {
         return(null);
     }
     return(new GameMessage {
         message = obj.playerID + " has left the Game "
     });
 }
        public static void process(LeavingData leaving)
        {
            if (leaving == null)
            {
                return;
            }
            var found = Players.FirstOrDefault(p => p.playerID == leaving.playerID);

            if (found != null)
            {
                Players.Remove(found);
            }
            Console.WriteLine("{0} has Left ", leaving.playerID);
        }