C# 클래스 Tools.TownGenerator.TerrainTileGenerator

Generates terrain using tiles the center tile should always be the tile the town gets build on
파일 보기 프로젝트 열기: TobieD/City-Generator 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CityTerrain UnityEngine.Terrain
Generated bool

공개 메소드들

메소드 설명
BuildTerrain ( ) : void

Creates the terrain and applies the height map and alpha map

Clear ( ) : void
InitializeSettings ( TerrainSettings terrainSettings, GenerationSettings voronoiSettings, GameObject parent, CitySettings citySettings ) : void

set required data for generating the terrain

비공개 메소드들

메소드 설명
AddLake ( Terrain terrain, int tileX, int tileZ, int lakeSize = 150 ) : void

Add a lake to the terrain

CreatePrototypes ( ) : void

Create splatmaps, trees and detail prototypes

CreateTerrainTile ( int x, int z ) : Terrain

Create terrain for the given tile

FindCityTerrainTile ( ) : Terrain

Find the ideal position for the city to be spawned on

FixTerrainSeams ( ) : void

Fix seams between tiles by correctly setting the neighbours

GenerateAlphaMap ( TerrainData data ) : float[,,]

Generate textures for the terrain

GenerateDetailLayers ( TerrainData data, int tileX, int tileZ ) : ]>.List

Generate detail like grass and props on the terrain

GenerateHeightMap ( int tileX, int tileZ ) : ].float[

Generate height information for the terrain at the given tile

GenerateTrees ( TerrainData data, int tileX, int tileZ ) : List

Generate trees on the terrain

메소드 상세

BuildTerrain() 공개 메소드

Creates the terrain and applies the height map and alpha map
public BuildTerrain ( ) : void
리턴 void

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

InitializeSettings() 공개 메소드

set required data for generating the terrain
public InitializeSettings ( TerrainSettings terrainSettings, GenerationSettings voronoiSettings, GameObject parent, CitySettings citySettings ) : void
terrainSettings TerrainSettings
voronoiSettings Voronoi.GenerationSettings
parent UnityEngine.GameObject
citySettings CityGenerator.CitySettings
리턴 void

프로퍼티 상세

CityTerrain 공개적으로 프로퍼티

Terrain the city will be created on
public Terrain,UnityEngine CityTerrain
리턴 UnityEngine.Terrain

Generated 공개적으로 프로퍼티

public bool Generated
리턴 bool