Exemplo n.º 1
0
 public EditShipTransfer(Player player, SpaceDockPanel spaceDock, Editor editor, EditorOptions editorOptions, World world, int material_Ship, Map map, ShipExtraArgs shipExtra)
 {
     _player = player;
     _spaceDock = spaceDock;
     _editor = editor;
     _editorOptions = editorOptions;
     _world = world;
     _material_Ship = material_Ship;
     _map = map;
     _shipExtra = shipExtra;
 }
Exemplo n.º 2
0
        private void ShowSpaceDock(SpaceStation2D station)
        {
            PauseWorld();

            if (_spaceDockPanel == null)
            {
                _spaceDockPanel = new SpaceDockPanel(_editorOptions, _itemOptions, _map, _material_Ship, _shipExtra);
                _spaceDockPanel.LaunchShip += SpaceDockPanel_LaunchShip;
                _spaceDockPanel.EditShip += SpaceDockPanel_EditShip;
            }

            _spaceDockPanel.ShipDocking(_player, station, _world);

            statusMessage.Content = "";

            panelContainer.Child = _spaceDockPanel;
            panelContainer.Visibility = Visibility.Visible;
        }