Ejemplo n.º 1
0
    public InGameUIScreen(IServiceLocator services, IUIRenderer renderer)
      : base("InGame", renderer)
    {
      var gameObjectService = services.GetInstance<IGameObjectService>();
      _cameraObject = (CameraObject)gameObjectService.Objects["Camera"];

      _simulation = services.GetInstance<Simulation>();

      Background = Color.White;

      // Add one window to the screen.
      Window window = new InGameWindow(services) { X = 175, Y = 30 };
      window.Show(this);
    }
Ejemplo n.º 2
0
        public InGameUIScreen(IServiceLocator services, IUIRenderer renderer)
            : base("InGame", renderer)
        {
            var gameObjectService = services.GetInstance <IGameObjectService>();

            _cameraObject = (CameraObject)gameObjectService.Objects["Camera"];

            _simulation = services.GetInstance <Simulation>();

            Background = Color.White;

            // Add one window to the screen.
            Window window = new InGameWindow(services)
            {
                X = 175, Y = 30
            };

            window.Show(this);
        }