示例#1
0
 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;
 }
示例#2
0
        private void UpdateTerrain(TerrainUpdate update)
        {
            if (IsDisposed)
            {
                return;
            }

            _renderData.UpdateTerrain(update);
            Render(_renderData);
        }