示例#1
0
 public void Exit(ClientSession session)
 {
     _sessions.Remove(session);
 }
示例#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);
 }
示例#5
0
 public Broadcast(GameRoom room, ClientSession session, string chat)
 {
     _room    = room;
     _session = session;
     _chat    = chat;
 }