Beispiel #1
0
 public void Exit(ClientSession session)
 {
     _sessions.Remove(session);
 }
Beispiel #2
0
 public void Enter(ClientSession session)
 {
     _sessions.Add(session);
     session.Room = this;
 }
 public void Leave(ClientSession session)
 {
     _sessions.Remove(session);
 }
 public void Remove(ClientSession session)
 {
     _sessions.Remove(session.SessionId);
 }
Beispiel #5
0
 public Broadcast(GameRoom room, ClientSession session, string chat)
 {
     _room    = room;
     _session = session;
     _chat    = chat;
 }