/// <inheritdoc /> public void OnNext(Tile tile) { _trace.Info(TraceCategory, "loading tile: {0}", tile.ToString()); MapDataAdapter.Add(tile); CoreLibrary.LoadTile(tile, MapDataAdapter.AdaptMesh, MapDataAdapter.AdaptElement, MapDataAdapter.AdaptError, _pathResolver); MapDataAdapter.Remove(tile); _trace.Info(TraceCategory, "tile loaded: {0}", tile.ToString()); _tileObservers.ForEach(o => o.OnNext(tile)); }
/// <inheritdoc /> public void Dispose() { MapDataAdapter.Clear(); }
/// <inheritdoc /> public void Configure(IConfigSection configSection) { MapDataAdapter.UseTrace(_trace); }
/// <summary> Subscribes on mesh/element data loaded events. </summary> public IDisposable Subscribe(IObserver <MapData> observer) { MapDataAdapter.Add(observer); _dataObservers.Add(observer); return(Disposable.Empty); }