public MapUpdateHistory ApiDeleteSolarSystem(string key, string solarSystemName, string pilotName) { OnChangeStatus?.Invoke($"[Map.ApiDeleteSolarSystem] Start Delete Solar System for map '{key}' with pilot '{pilotName}'. Deleted solar system name is '{solarSystemName}'"); var updatedSystems = Global.MapApiFunctions.DeleteSolarSystem(this, solarSystemName); return(updatedSystems); }
public void Activate(string owner, string system) { OnChangeStatus?.Invoke($"[Map.Activate] Start updates for current map '{Key}' for pilot {ActivePilot}"); ActivePilot = owner; SelectedSolarSystemName = system; LocationSolarSystemName = system; }
public MapUpdateHistory ApiDeleteConnectionBeetwenSolarSystems(string solarSystemFrom, string solarSystemTo) { OnChangeStatus?.Invoke($"[Map.ApiDeleteSolarSystem] For map '{Key}' delete connection beetwen solar systems '{solarSystemFrom}' and '{solarSystemTo}'."); var result = Global.MapApiFunctions.DeleteConnectionBetweenSolarSystems(this, ActivePilot, Key, solarSystemFrom, solarSystemTo); return(result); }
public MapUpdateHistory ApiPublishSolarSystem(string pilotName, string key, string systemFrom, string systemTo) { OnChangeStatus?.Invoke($"[Map.ApiPublishSolarSystem] Start Publish Solar System for map '{Key}' with pilot '{pilotName}'. Relocated from '{systemFrom}' to '{systemTo}'"); var result = Global.MapApiFunctions.PublishSolarSystem(this, pilotName, Key, systemFrom, systemTo, _lastUpdate); return(result); }
private void SetIdleState(bool status) { idle = status; OnChangeStatus?.Invoke(idle); DCL.Interface.WebInterface.ReportIdleStateChanged(idle); }
public MapUpdateHistory GetUpdates() { //Global.MapApiFunctions.UpdateMap(SpaceMap); OnChangeStatus?.Invoke($"[Map.Update] Start Update Solar System for map '{Key}' with pilot '{ActivePilot}'."); var result = Global.MapApiFunctions.UpdateMap(this); return(result); }
public MapUpdateHistory ApiPublishDeathNotice(string locationSolarSystem) { var result = Global.MapApiFunctions.DeleteConnectionBetweenSolarSystems(this, ActivePilot, Key, PreviousLocationSolarSystemName, locationSolarSystem); OnChangeStatus?.Invoke($"[Map.ApiPublishDeathNotice] End get updates for map '{Key}' after DeathNotice delete connection from system {PreviousLocationSolarSystemName} to system {locationSolarSystem}. Updated {result.UpdatedSystems} solar systems."); _commandsLog.InfoFormat("[Map.ApiPublishDeathNotice] For map with key {0} delete connection from system {2} to system {1}", Key, locationSolarSystem, PreviousLocationSolarSystemName); return(result); }
public MapUpdateHistory ApiPublishSignatures(string key, string solarSystemName, string pilotName, List <CosmicSignature> signatures) { OnChangeStatus?.Invoke($"[Map.ApiPublishSignatures] Start Publish Signatures Solar System '{solarSystemName}' for map '{key}' with pilot '{pilotName}'. signatures count is '{signatures.Count}'"); var updatedSystems = Global.MapApiFunctions.PublishSignatures(this, pilotName, key, solarSystemName, signatures); RemoveSystem(solarSystemName); return(updatedSystems); }
private void CallChangeStatus() { try { OnChangeStatus?.Invoke(this, new ServerStatusArgs(_listenningStatus)); } catch (Exception ex) { if (_showFail) { Debug.Fail(ex.Message, ex.StackTrace); } } }
private void CallChangeStatus() { try { OnChangeStatus?.Invoke(this, new ClientStatusArgs(_connectedStatus)); } catch (Exception ex) { if (_showFail) { Debug.Fail(ex.Message, ex.StackTrace); } } }
public void RemoveSystem(string solarSystem) { OnChangeStatus?.Invoke($"[Map.RemoveSystem] Check is removed solar system '{solarSystem}' current for selected pilot {Global.Pilots.Selected.Name}..."); if (solarSystem == LocationSolarSystemName) { return; } //var deletedSystem = GetSystem(solarSystem); //deletedSystem.IsDeleted = true; SelectedSolarSystemName = LocationSolarSystemName; }
void SetState(SequenceStatus state) { m_State = state; OnChangeStatus?.Invoke(state); }
public void ChangeStatus(int id, Status status) { OnChangeStatus?.Invoke(id, status); }