/// <summary> /// Creates a client that is connected to a dummy connection. /// </summary> public static ITenhouReceiver CreateDummyClient() { var logger = new ConsoleLogger(); var connection = new DummyTenhouConnection(logger); var logOnInformation = new LogOnInformation("ID0160262B-SG8PcR2h", "M", 0); var sender = new TenhouSender(connection, logOnInformation); var ai = new TsumokiriAI(sender); var lobbyClient = new AutoJoinLobbyClient(sender); var receiver = new TenhouReceiver(connection, sender, lobbyClient, ai); connection.Connect(); return receiver; }
/// <summary> /// Instantiates a new instance of TenhouSender. /// </summary> /// <param name="connection">The connection to send the messages to.</param> /// <param name="logOnInformation">Information necessary to log onto the connection.</param> public TenhouSender(ITenhouConnection connection, LogOnInformation logOnInformation) { _connection = connection; _logOnInformation = logOnInformation; }