public GameServerConnection( IGameServerClient gameServerClient) { _gameServerClient = gameServerClient; _gameServerClient.IncomingMessage += OnMessageReceived; _gameServerClient.Reconnecting += GameServerClient_Reconnecting; _gameServerClient.Reconnected += GameServerClient_Reconnected; }
public SIOnlineViewModel(ConnectionData connectionData, IGameServerClient gameServerclient, CommonSettings commonSettings, UserSettings userSettings) : base(connectionData, commonSettings, userSettings) { _gameServerClient = gameServerclient; _gameServerClient.GameCreated += GameServerClient_GameCreated; _gameServerClient.GameDeleted += GameServerClient_GameDeleted; _gameServerClient.GameChanged += GameServerClient_GameChanged; _gameServerClient.Joined += GameServerClient_Joined; _gameServerClient.Leaved += GameServerClient_Leaved; _gameServerClient.Receieve += OnMessage; _gameServerClient.Reconnecting += GameServerClient_Reconnecting; _gameServerClient.Reconnected += GameServerClient_Reconnected; _gameServerClient.Closed += GameServerClient_Closed; _gameServerClient.UploadProgress += GameServerClient_UploadProgress; ServerAddress = _gameServerClient.ServerAddress; AddEmoji = new CustomCommand(AddEmoji_Executed); }
private static void CreateGameServerClientInstance() { //TODO: Instance based on configuration clientIntance = (IGameServerClient)Activator.CreateInstance(ClientType); }