Property | Type | Description | |
---|---|---|---|
allowPerformance | bool | ||
controlsAreaHeight | float | ||
cost | int | ||
dialogConfirmButtonDo | GUIContent | ||
dialogLongDescription | string | ||
effectPrefab | GameObject | ||
hasServerAPIPoint | bool | ||
icon | |||
inputMode | InputMode | ||
notificationMessage | string | ||
tooltip | string |
Property | Type | Description | |
---|---|---|---|
downloadTilesCoroutine | DownloadTilesInRegionCoroutine | ||
m_actionProgress | float | ||
m_tileModifications | ResourceTileModification |
Property | Type | Description |
---|
Method | Description | |
---|---|---|
DisplayControls ( ) : void |
Configure the dialog
|
|
DoAction ( GUIButtonBase, button ) : void | ||
DoIt ( object selection ) : void |
Perform the action.
|
|
IsPermittedOnResourceTile ( ResourceTile, tile ) : bool |
Determines whether this action is permitted on the specified tile.
|
|
OnEnable ( ) : void |
Raises the enable event.
|
|
OnGUI ( ) : void |
Display loading icon as needed
|
|
Start ( ) : void | ||
UpdateMask ( ) : void |
Updates the mask.
|
|
UpdateSelectionHighlighter ( ) : void |
Updates the selection highlighter.
|
Method | Description | |
---|---|---|
BeginGUIArea ( ) : void |
Begins the GUI area.
|
|
CalculateCost ( ResourceTileLite, tiles ) : int |
Calculates the cost of performing this action on the given tiles
|
|
ConcludeActionOnResourceTiles ( ResourceTileSelection, selection ) : void |
Concludes the action on resource tiles.
|
|
DisplayControlsContents ( ) : void |
Displays the controls contents.
|
|
DisplayPaintSelectionControlGroup ( ) : void |
Displays the paint selection control group.
|
|
DoItButton ( ) : void |
The button to perform the action.
|
|
DoResourceCalculations ( ResourceTileSelection, selection ) : bool | ||
EndGUIArea ( ) : void |
Ends the GUI area.
|
|
GetActionJson ( ) : string |
Gets JSON representation for the action. Creates a JSON object for use with god mode. |
|
GetActionJson ( object mods ) : string | ||
GetDoItWWW ( ResourceTileSelection, selection ) : WWW |
Gets the do it WWW.
|
|
GetEffectSpawnLocationsFromResourceTiles ( ResourceTileSelection, selection ) : Vector3[] |
Gets the effect spawn locations from resource tiles.
|
|
Put ( ResourceTileSelection, selection ) : IEnumerator |
Forces a put of resource tile modifications using god mode. This is a temporary solution for implementing actions with no server API point, and can eventually be removed. |
|
Refresh ( ) : IEnumerator | ||
RefreshAfterActionFailed ( string errorMessage ) : IEnumerator |
Refreshs after the action failed.
|
|
SendActionMessage ( ResourceTile, modifiedTiles ) : void |
Sends out a message stating that an action was performed
|
|
SpawnEffectsAtLocations ( Vector3 spawnLocations ) : void |
Spawns the effects at locations.
|
|
SubmitResourceTileSelection ( ResourceTileSelection, selection ) : void |
Submits the resource tile selection. NOTE: This may need a more sophisticated implementation if e.g., player action changes before server responds. |
|
SubmitResourceTileSelectionToServerAPI ( ResourceTileSelection, selection ) : IEnumerator |
Submits the resource tile selection to server API.
|
protected CalculateCost ( ResourceTileLite, tiles ) : int | ||
tiles | ResourceTileLite, | /// Tiles. /// |
return | int |
protected ConcludeActionOnResourceTiles ( ResourceTileSelection, selection ) : void | ||
selection | ResourceTileSelection, | /// Tiles. /// |
return | void |
protected DisplayPaintSelectionControlGroup ( ) : void | ||
return | void |
public DoAction ( GUIButtonBase, button ) : void | ||
button | GUIButtonBase, | |
return | void |
public DoIt ( object selection ) : void | ||
selection | object | /// The selection to which the action should be applied. /// |
return | void |
protected DoResourceCalculations ( ResourceTileSelection, selection ) : bool | ||
selection | ResourceTileSelection, | |
return | bool |
protected GetActionJson ( object mods ) : string | ||
mods | object | |
return | string |
protected GetDoItWWW ( ResourceTileSelection, selection ) : WWW | ||
selection | ResourceTileSelection, | /// The selection. /// |
return | WWW |
protected GetEffectSpawnLocationsFromResourceTiles ( ResourceTileSelection, selection ) : Vector3[] | ||
selection | ResourceTileSelection, | /// Tiles. /// |
return | Vector3[] |
public abstract IsPermittedOnResourceTile ( ResourceTile, tile ) : bool | ||
tile | ResourceTile, | /// The resource tile in question. /// |
return | bool |
protected Put ( ResourceTileSelection, selection ) : IEnumerator | ||
selection | ResourceTileSelection, | /// The selection. /// |
return | IEnumerator |
protected RefreshAfterActionFailed ( string errorMessage ) : IEnumerator | ||
errorMessage | string | /// Error message. /// |
return | IEnumerator |
protected SendActionMessage ( ResourceTile, modifiedTiles ) : void | ||
modifiedTiles | ResourceTile, | |
return | void |
protected SpawnEffectsAtLocations ( Vector3 spawnLocations ) : void | ||
spawnLocations | Vector3 | /// Spawn locations. /// |
return | void |
protected SubmitResourceTileSelection ( ResourceTileSelection, selection ) : void | ||
selection | ResourceTileSelection, | /// The resource tile selection. /// |
return | void |
protected SubmitResourceTileSelectionToServerAPI ( ResourceTileSelection, selection ) : IEnumerator | ||
selection | ResourceTileSelection, | /// The resource tile selection. /// |
return | IEnumerator |
protected DownloadTilesInRegionCoroutine downloadTilesCoroutine | ||
return | DownloadTilesInRegionCoroutine |
protected ResourceTileModification m_tileModifications | ||
return | ResourceTileModification |