public void Leave(User user) { if (JoinedUsers.Contains(user)) { Logger.DebugPrint(user.Username + " Left multiroom @ " + x.ToString() + "," + y.ToString()); JoinedUsers.Remove(user); } foreach (User joinedUser in JoinedUsers) { if (!TwoPlayer.IsPlayerInGame(joinedUser)) { if (!joinedUser.ListingAuction) { GameServer.UpdateArea(joinedUser.LoggedinClient); } } } }
public void Join(User user) { if (!JoinedUsers.Contains(user)) { Logger.DebugPrint(user.Username + " Joined multiroom @ " + x.ToString() + "," + y.ToString()); JoinedUsers.Add(user); foreach (User joinedUser in JoinedUsers) { if (joinedUser.Id != user.Id) { if (!TwoPlayer.IsPlayerInGame(joinedUser)) { if (!joinedUser.ListingAuction) { GameServer.UpdateArea(joinedUser.LoggedinClient); } } } } } }