Property | Type | Description | |
---|---|---|---|
buildHousingAction | PlayerActionBuildHousing | ||
forceTileUpdate | bool | ||
lastUpdateTime | System.DateTime | ||
worldRegion | Region |
Property | Type | Description | |
---|---|---|---|
cameraWaitTime | float | ||
downloadTilesCoroutine | DownloadTilesInRegionCoroutine | ||
updateRegion | bool |
Property | Type | Description | |
---|---|---|---|
ClearAllTerrainObjects | void | ||
ClearBuildingsInRegion | void | ||
ClearTerrain | void | ||
ClearTreesInRegion | void | ||
CreatePaddingMeshes | void | ||
InitializeResourceTileCache | void | ||
InitializeTerrain | void | ||
UpdatePaddingMeshGridOffset | void |
Method | 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
|
Method | 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. /// |
return | bool |
public static GetResourceTileCacheGroup ( Status, &status ) : ResourceTileLite[], | ||
status | Status, | |
return | ResourceTileLite[], |
public static GetResourceTileCacheRegion ( Region, region ) : ].ResourceTileLite[ | ||
region | Region, | |
return | ].ResourceTileLite[ |
public static GetResourceTileCacheUnderMouseCursor ( ResourceTileLite, &tile ) : bool | ||
tile | ResourceTileLite, | /// The cache under the mouse cursor. /// |
return | bool |
public static GetResourceTileCacheWithId ( int id, Status, &status ) : ResourceTileLite, | ||
id | int | /// Identifier. /// |
status | Status, | /// Status indicating whether the returned value is valid or not. /// |
return | ResourceTileLite, |
public static GetWorldCoordinateAtMousePosition ( ) : Vector3 | ||
return | Vector3 |
public SetPermissions ( ResourceTile, tiles ) : void | ||
tiles | ResourceTile, | /// Tiles from which to read permissions. /// |
return | void |
public SetTerrainFromResourceTiles ( ResourceTile, resourceTiles, SetTerrainMode mode ) : void | ||
resourceTiles | ResourceTile, | /// Microtiles. /// |
mode | SetTerrainMode | /// Mode. /// |
return | void |
public _CameraMoved ( MessageCameraMoved msg ) : void | ||
msg | MessageCameraMoved |
/// A |
return | void |
public _CameraStopped ( MessageCameraStopped msg ) : void | ||
msg | MessageCameraStopped |
/// A |
return | void |
public _LoadedNewTiles ( MessageLoadedNewTiles msg ) : void | ||
msg | MessageLoadedNewTiles | |
return | void |
public _WorldLoaded ( MessageWorldLoaded msg ) : void | ||
msg | MessageWorldLoaded |
/// A |
return | void |
public PlayerActionBuildHousing buildHousingAction | ||
return | PlayerActionBuildHousing |
protected DownloadTilesInRegionCoroutine downloadTilesCoroutine | ||
return | DownloadTilesInRegionCoroutine |