Beispiel #1
0
        private void Login()
        {
            string ipAddress = GetIpAddress();

            if (ipAddress != null)
            {
                IGameCommand loginCommand = new LoginCommand()
                {
                    Data = new Tuple <Guid, object>(Guid.NewGuid(), ipAddress)
                };

                _clientEngine.SendGameCommand(loginCommand);
            }

            // client or server to create the initial square / server in a random location
            // initialise the game world
            // then begin rendering below
        }