public void Leave(ClientSession session) { // 플레이어 제거하고 _sessions.Remove(session); // 모두에게 알림 S_BroadcastLeaveGame leave = new S_BroadcastLeaveGame(); leave.playerId = session.SessionId; Broadcast(leave.Write()); }
public void Leave(ClientSession session) { // 플레이어 제거 _sessions.Add(session); session.Room = this; // 모두에게 알림 S_BroadcastLeaveGame leave = new S_BroadcastLeaveGame(); leave.playerId = session.SessionId; Broadcast(leave.Write()); }