Example #1
0
 private void Initialize(DataLock dataLock)
 {
     CreateWindow();
     _directX   = new Dx11(_form);
     _uiManager = new UiManager();
     _input     = new Input.Input();
     _camera    = new Camera(new Vector3(0, 200, 0), new Vector3(0, 0.7f, 0));
     _context   = new Context(_form, _directX, _game, _worldContainer, _uiManager, _input, _camera, _notificationResolver, dataLock);
     _camera.Initialize(_context);
     _input.Initialize(_context);
     _uiManager.Initialize(_context);
     _uiManager.AddScreen(new WorldParametersScreen(_context));
 }
Example #2
0
 private void Initialize(DataLock dataLock)
 {
     CreateWindow();
     _directX = new Dx11(_form);
     _uiManager = new UiManager();
     _input = new Input.Input();
     _camera = new Camera(new Vector3(0, 200, 0), new Vector3(0, 0.7f, 0));
     _context = new Context(_form, _directX, _game, _worldContainer, _uiManager, _input, _camera, _notificationResolver, dataLock);
     _camera.Initialize(_context);
     _input.Initialize(_context);
     _uiManager.Initialize(_context);
     _uiManager.AddScreen(new WorldParametersScreen(_context));
 }