private void ProcessLoadedTiles() { MapArea data = null; var index = 0; lock (mLoadedData) { if (mLoadedData.Count > 0) { data = mLoadedData[0]; mLoadedData.RemoveAt(0); index = data.IndexX + data.IndexY * 0xFF; if (mAreas.ContainsKey(index)) { data.Dispose(); return; } } } if (data == null) { return; } var tile = new MapAreaRender(data.IndexX, data.IndexY); tile.AsyncLoaded(data); mAreas.Add(index, tile); }
public void AfterTest() { mAreaUnderTest.Dispose(); }