C# Class PlayerActionPlantTrees, tf_client

An action for planting trees on selected land.
Inheritance: PlayerAction
Datei anzeigen Open project: wids-eria/tf_client

Public Methods

Method Description
IsPermittedOnResourceTile ( ResourceTile, tile ) : bool

Determines whether this action is permitted on the specified tile.

Protected Methods

Method Description
DisplayControlsContents ( ) : void

Displays the controls contents.

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.

Private Methods

Method Description
Start ( ) : void

Initialize gui styles.

Method Details

DisplayControlsContents() protected method

Displays the controls contents.
protected DisplayControlsContents ( ) : void
return void

IsPermittedOnResourceTile() public method

Determines whether this action is permitted on the specified tile.
public IsPermittedOnResourceTile ( ResourceTile, tile ) : bool
tile ResourceTile, /// The resource tile in question. ///
return bool

Put() protected method

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.
protected Put ( ResourceTileSelection, selection ) : IEnumerator
selection ResourceTileSelection, /// The selection. ///
return IEnumerator