예제 #1
0
 public static void PacketHandler(Type header, Client sender, dynamic msg)
 {
     _actions[header].Invoke(msg);
 }
예제 #2
0
 public Drawing(Stream imageStream, Client drawer)
 {
     _drawer = drawer;
     _image = imageStream;
 }
예제 #3
0
파일: Ping.cs 프로젝트: JamieH/DrawingGame
 public static void SendPing(Client client)
 {
 }
예제 #4
0
 public static void SendMessage(string msg, Client receiver)
 {
     receiver.WebSocketSession.Send(msg);
 }
예제 #5
0
 public static void SendData(byte[] data, Client receiver)
 {
     receiver.WebSocketSession.Send(data, 0, data.Length);
 }
예제 #6
0
파일: Lobby.cs 프로젝트: JamieH/DrawingGame
 public Lobby(int lobbyID, Client hostClient)
 {
     _clients = new List<Client>();
     _clients.Add(hostClient);
     _hostClient = hostClient;
 }