Ejemplo n.º 1
0
        public static void CreateWater(EnvironmentObject env, IntGrid2Z area)
        {
            for (int x = area.X1; x <= area.X2; ++x)
            {
                for (int y = area.Y1; y <= area.Y2; ++y)
                {
                    var p = new IntVector3(x, y, area.Z);

                    ClearTile(env, p);

                    env.SetWaterLevel(p, TileData.MaxWaterLevel);
                }
            }
        }