public void UpdateTerrain(TerrainUpdate update) { if (!BottomRight.Contains(update.Position)) { return; // We can ignore out of bound updates, as these are not accessible anyway. } (Int32 x, Int32 y) = update.Position; Terrain[x, y] = update.NewTerrain; }
private void UpdateTerrain(TerrainUpdate update) { if (IsDisposed) { return; } _renderData.UpdateTerrain(update); Render(_renderData); }