private void MessageReceiver_FMD_S_DOCKED(ClientConnection client, AllegianceInterop.FMD_S_DOCKED message) { Log("MessageReceiver_FMD_S_DOCKED"); if (_waitingForLaunchToComplete == true) { Log("\tA launch is already in progress, skipping message."); return; } var ship = ClientConnection.GetShip(); var station = ship.GetStation(); // If we are in a station, then get into a scout and get out there. if (station != null) { // Mark the current sector as invalid so that we will aquire a new destination on launch. _currentSectorID = -1; Log("\tDocked at station, changing ship to scout and relaunching."); ChangeShip(ShipType.Scout, new ScoutProbeLoadout()); return; } }
private void _messageReceiver_FMD_S_DOCKED(ClientConnection client, AllegianceInterop.FMD_S_DOCKED message) { // When ever the server sends us a "DOCKED" message, we lose all of the info about ships we have seen, so we need to // re-update our galaxy view so that we know what's where. UpdateGalaxyView(); }