public RavenfallServerConnection( ILogger logger, IRavenfallServerSettings settings, IRavenClient gameClient) { this.logger = logger; this.settings = settings; this.gameClient = gameClient; this.gameClient.Auth.LoginFailed += OnLoginFailed; this.gameClient.Auth.LoginSuccess += OnLoginSuccess; this.gameClient.Connected += OnConnect; this.gameClient.Disconnected += OnDisconnect; }
public RavenfallServerConnection( ILogger logger, IUserProvider userProvider, IRavenfallServerSettings settings, IRavenClient gameClient) { this.logger = logger; this.userProvider = userProvider; this.settings = settings; this.gameClient = gameClient; this.gameClient.SetAuthModule(connection => new BotAuthentication(connection)); this.gameClient.Auth.LoginFailed += OnLoginFailed; this.gameClient.Auth.LoginSuccess += OnLoginSuccess; this.gameClient.Connected += OnConnect; this.gameClient.Disconnected += OnDisconnect; }