public void Leave() { var cmd = new LeaveRequest(); var proto = BinaryProcolHelper <LeaveRequest> .GetProtocol(cmd); _tcp.SendData(proto); }
public void GetUsersInGame(string name) { var cmd = new GetUsersInGame { GameName = name }; var proto = BinaryProcolHelper <GetUsersInGame> .GetProtocol(cmd); _tcp.SendData(proto); }
public void JoinGame(string name) { var cmd = new JoinRequest { GameName = name }; var proto = BinaryProcolHelper <JoinRequest> .GetProtocol(cmd); _tcp.SendData(proto); }
public void SendToGame(string gameName, ProtocolBase <byte> command) { var cmd = new SendToGameUsers() { Message = "Hello" }; var proto = BinaryProcolHelper <SendToGameUsers> .GetProtocol(cmd); _tcp.SendData(proto); }