public void actorLeft(TAActor leaver) { actors.Remove(leaver); var player = leaver as TAPlayer; if (player != null) { players.Remove(player); } localBroadcast(leaver.actorName + " has left the scene"); }
public void actorEntered(TAActor newActor) { actors.Add(newActor); var player = newActor as TAPlayer; if (player != null) { players.Add(player); } localBroadcast(newActor.actorName + " has entered the scene"); }