public void UpdateTileForProperty(AbstractTileFactory factory, LayerUpdateArgs updateArgs) { foreach (KeyValuePair <UnwrappedTileId, UnityTile> tileBundle in _activeTiles) { factory.UpdateTileProperty(tileBundle.Value, updateArgs); } }
public void ReregisterTilesTo(AbstractTileFactory factory) { foreach (KeyValuePair <UnwrappedTileId, UnityTile> tileBundle in _activeTiles) { factory.Register(tileBundle.Value); } }
public void UpdateTileForProperty(AbstractTileFactory factory, LayerUpdateArgs updateArgs) { foreach (var tileBundle in _activeTiles) { factory.UpdateTileProperty(tileBundle.Value, updateArgs); } }
protected virtual void NotifyUpdateLayer(AbstractTileFactory factory, bool effectsVectorLayer = false) { System.EventHandler handler = UpdateLayer; if (handler != null) { LayerUpdateArgs layerUpdateArgs = new LayerUpdateArgs() { factory = factory, effectsVectorLayer = effectsVectorLayer }; handler(this, layerUpdateArgs); } }
private void UpdateState(AbstractTileFactory factory) { if (State != ModuleState.Working && factory.State == ModuleState.Working) { State = ModuleState.Working; } else if (State != ModuleState.Finished && factory.State == ModuleState.Finished) { var allFinished = true; for (int i = 0; i < _factories.Length; i++) { if (_factories[i] != null) { allFinished &= _factories[i].State == ModuleState.Finished; } } if (allFinished) { State = ModuleState.Finished; } } }
internal void UpdateState(AbstractTileFactory factory) { if (State != ModuleState.Working && factory.State == ModuleState.Working) { State = ModuleState.Working; } else if (State != ModuleState.Finished && factory.State == ModuleState.Finished) { var allFinished = true; for (int i = 0; i < Factories.Count; i++) { if (Factories[i] != null) { allFinished &= Factories[i].State == ModuleState.Finished; } } if (allFinished) { State = ModuleState.Finished; } } }
protected virtual void NotifyUpdateLayer(AbstractTileFactory factory, MapboxDataProperty prop, bool effectsVectorLayer = false) { System.EventHandler handler = UpdateLayer; if (handler != null) { LayerUpdateArgs layerUpdateArgs = (factory is VectorTileFactory) ? new VectorLayerUpdateArgs { factory = factory, effectsVectorLayer = effectsVectorLayer, property = prop } : new LayerUpdateArgs { factory = factory, effectsVectorLayer = effectsVectorLayer, property = prop }; handler(this, layerUpdateArgs); } }
private void UnregisterEvents(AbstractTileFactory factory) { factory.OnTileError -= Factory_OnTileError; }
private void RegisterEvents(AbstractTileFactory factory) { //directly relaying to map visualizer event for now, nothing doing special factory.OnTileError += Factory_OnTileError; }
private void UnregisterEvents(AbstractTileFactory factory) { factory.OnFactoryStateChanged -= UpdateState; factory.OnTileError -= Factory_OnTileError; }