public void ClickFlight(ClickUIEvent ev) { var keys = Keyboard.GetState(); if (!keys.IsKeyDown(Keys.LeftControl)) { _fadeTransition.StartTransition(() => { _sceneManager.SetScene(new CreditsScene()); }); return; } var topology = new ShipTopology(6, 5); if (keys.IsKeyDown(Keys.D9)) { for (var i = 0; i < 6; i++) { for (var j = 0; j < 5; j++) { topology.SetSection(new Point(i, j), new Section( new RocketModule(), ConnectionLayouts.FullyConnected, 1 )); } } } topology.SetSection(new Point(2, 2), new Section( new ResearchCenterModule(), ConnectionLayouts.FullyConnected )); topology.SetSection(new Point(2, 1), new Section( new BlasterModule(), ConnectionLayouts.FullyConnected, 4 )); topology.SetSection(new Point(3, 1), new Section( new BombardModule(), ConnectionLayouts.FullyConnected, 4 )); topology.SetSection(new Point(2, 3), new Section( new RocketModule(), ConnectionLayouts.FullyConnected, 1 )); topology.SetSection(new Point(1, 3), new Section( new RocketModule(), ConnectionLayouts.FullyConnected, 2 )); topology.SetSection(new Point(3, 3), new Section( new RocketModule(), ConnectionLayouts.FullyConnected, OffDirection.SouthEast )); topology.SetSection(new Point(3, 2), new Section( new RotaryEngine(), ConnectionLayouts.FullyConnected, 1 )); topology.SetSection(new Point(4, 2), new Section( new RotaryEngine(), ConnectionLayouts.FullyConnected, 1 )); topology.SetSection(new Point(5, 2), new Section( new RotaryEngine(), ConnectionLayouts.FullyConnected, 1 )); topology.ApplyUpgrade(new RapidFire()); var orchestrator = _menuScene.Create(false).Add(new Orchestrator(topology)); orchestrator.CurrentPlanet = Planet.Earth; orchestrator.NextFlight(); //_menuScene.SetScene(new FlightScene(topology)); }
public void ClickBuild(ClickUIEvent ev) { var orchestrator = _menuScene.Create(false).Add(new Orchestrator()); orchestrator.NextBuild(); }
private void RocketClicked(ClickUIEvent @event) { Debug.WriteLine("Rocket clicked"); _sceneManager.SetScene(new OtherScene()); }
public void ClickContinue(ClickUIEvent ev) { _sceneManager.SetScene(new MenuScene()); }
public void ClickContinue(ClickUIEvent ev) { _fadeTransition.StartTransition(() => _sceneManager.SetScene(new CreditsScene())); }
public void ClickContinue(ClickUIEvent ev) { _actionStart?.Invoke(); }