Свойство | Type | Description | |
---|---|---|---|
buildHousingAction | PlayerActionBuildHousing | ||
forceTileUpdate | bool | ||
lastUpdateTime | System.DateTime | ||
worldRegion | Region |
Свойство | Type | Description | |
---|---|---|---|
cameraWaitTime | float | ||
downloadTilesCoroutine | DownloadTilesInRegionCoroutine | ||
updateRegion | bool |
Свойство | Type | Description | |
---|---|---|---|
ClearAllTerrainObjects | void | ||
ClearBuildingsInRegion | void | ||
ClearTerrain | void | ||
ClearTreesInRegion | void | ||
CreatePaddingMeshes | void | ||
InitializeResourceTileCache | void | ||
InitializeTerrain | void | ||
UpdatePaddingMeshGridOffset | void |
Méthode | Description | |
---|---|---|
Awake ( ) : void |
Initialize singleton
|
|
GetResourceTileCacheAtWorldPosition ( Vector3 position, ResourceTileLite, &tile ) : bool |
Gets the resource tile cache at world position.
|
|
GetResourceTileCacheGroup ( Status, &status ) : ResourceTileLite[], | ||
GetResourceTileCacheRegion ( Region, region ) : ].ResourceTileLite[ | ||
GetResourceTileCacheUnderMouseCursor ( ResourceTileLite, &tile ) : bool |
Gets the resource tile cache under mouse cursor.
|
|
GetResourceTileCacheWithId ( int id, Status, &status ) : ResourceTileLite, |
Gets the resource tile cache with identifier.
|
|
GetWorldCoordinateAtMousePosition ( ) : Vector3 |
Gets the world coordinate at mouse position.
|
|
MoveTerrainToCenterOfView ( ) : void |
Moves the terrain to center of view.
|
|
OnGUI ( ) : void |
Debug GUI
|
|
RefreshFromIds ( ) : void | ||
SetPermissions ( ResourceTile, tiles ) : void |
Sets the permissions.
|
|
SetTerrainFromResourceTiles ( ResourceTile, resourceTiles, SetTerrainMode mode ) : void |
Sets the terrain from resourceTiles.
|
|
Start ( ) : void |
Initialize terrain etc
|
|
Update ( ) : void | ||
_CameraMoved ( MessageCameraMoved msg ) : void |
Respond to camera moving
|
|
_CameraStopped ( MessageCameraStopped msg ) : void |
Load the terrain when the camera stops
|
|
_LoadedNewTiles ( MessageLoadedNewTiles msg ) : void | ||
_WorldLoaded ( MessageWorldLoaded msg ) : void |
Mark the world loaded
|
Méthode | Description | |
---|---|---|
ClearAllTerrainObjects ( SetTerrainMode mode ) : void |
Clears all terrain objects (buildings and trees).
|
|
ClearBuildingsInRegion ( Region, region ) : void |
Clears the buildings in region.
|
|
ClearTerrain ( SetTerrainMode mode ) : void |
Clears the terrain of all data.
|
|
ClearTreesInRegion ( Region, region, SetTerrainMode mode ) : void |
Clears the trees in region.
|
|
CreatePaddingMeshes ( ) : void |
Create the padding meshes to surround the terrain
|
|
InitializeResourceTileCache ( ) : void |
Initializes the resource tile cache.
|
|
InitializeTerrain ( ) : void |
Initialize the terrain and collider
|
|
UpdatePaddingMeshGridOffset ( ) : void |
Updates the padding mesh grid offset.
|
public static GetResourceTileCacheAtWorldPosition ( Vector3 position, ResourceTileLite, &tile ) : bool | ||
position | Vector3 | |
tile | ResourceTileLite, | /// The cache at the specified position. /// |
Résultat | bool |
public static GetResourceTileCacheGroup ( Status, &status ) : ResourceTileLite[], | ||
status | Status, | |
Résultat | ResourceTileLite[], |
public static GetResourceTileCacheRegion ( Region, region ) : ].ResourceTileLite[ | ||
region | Region, | |
Résultat | ].ResourceTileLite[ |
public static GetResourceTileCacheUnderMouseCursor ( ResourceTileLite, &tile ) : bool | ||
tile | ResourceTileLite, | /// The cache under the mouse cursor. /// |
Résultat | bool |
public static GetResourceTileCacheWithId ( int id, Status, &status ) : ResourceTileLite, | ||
id | int | /// Identifier. /// |
status | Status, | /// Status indicating whether the returned value is valid or not. /// |
Résultat | ResourceTileLite, |
public static GetWorldCoordinateAtMousePosition ( ) : Vector3 | ||
Résultat | Vector3 |
public MoveTerrainToCenterOfView ( ) : void | ||
Résultat | void |
public SetPermissions ( ResourceTile, tiles ) : void | ||
tiles | ResourceTile, | /// Tiles from which to read permissions. /// |
Résultat | void |
public SetTerrainFromResourceTiles ( ResourceTile, resourceTiles, SetTerrainMode mode ) : void | ||
resourceTiles | ResourceTile, | /// Microtiles. /// |
mode | SetTerrainMode | /// Mode. /// |
Résultat | void |
public _CameraMoved ( MessageCameraMoved msg ) : void | ||
msg | MessageCameraMoved |
/// A |
Résultat | void |
public _CameraStopped ( MessageCameraStopped msg ) : void | ||
msg | MessageCameraStopped |
/// A |
Résultat | void |
public _LoadedNewTiles ( MessageLoadedNewTiles msg ) : void | ||
msg | MessageLoadedNewTiles | |
Résultat | void |
public _WorldLoaded ( MessageWorldLoaded msg ) : void | ||
msg | MessageWorldLoaded |
/// A |
Résultat | void |
public PlayerActionBuildHousing buildHousingAction | ||
Résultat | PlayerActionBuildHousing |
protected DownloadTilesInRegionCoroutine downloadTilesCoroutine | ||
Résultat | DownloadTilesInRegionCoroutine |