コード例 #1
0
        public void GenerateTopologyAndEcology(OceanData oceanData)
        {
            foreach (var region in oceanData.EmptyOceanRegions)
            {
                foreach (var cell in region.Cells)
                {
                    ModLogic.ChangeTerrainOfCell(cell, CellTerrain.DeepWater);
                }
            }

            foreach (var region in oceanData.ArchipelagoRegions)
            {
                RegionData regionData = oceanData.GetRegionData(region);

                RegionGenerator.GenerateTopology(region, regionData.Topology);
                RegionGenerator.PaintTerrain(region, regionData.Biome);
                RegionGenerator.AssignFloodPlains(region.LandCells);
            }
        }
コード例 #2
0
 public void DistributeYieldAndResources(OceanData oceanData)
 {
     Debug.Log("Yield and resource distribution for oceans is currently unimplemented");
 }