Example #1
0
        /// <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));
        }
Example #2
0
 /// <inheritdoc />
 public void Dispose()
 {
     MapDataAdapter.Clear();
 }
Example #3
0
 /// <inheritdoc />
 public void Configure(IConfigSection configSection)
 {
     MapDataAdapter.UseTrace(_trace);
 }
Example #4
0
 /// <summary> Subscribes on mesh/element data loaded events. </summary>
 public IDisposable Subscribe(IObserver <MapData> observer)
 {
     MapDataAdapter.Add(observer);
     _dataObservers.Add(observer);
     return(Disposable.Empty);
 }