Property | Type | Description | |
---|---|---|---|
timeToWaitForRefresh | float |
Property | Type | Description | |
---|---|---|---|
m_actualFrequencyDistributionOfSelectedTiles | int[] | ||
m_cutType | CutType | ||
m_desiredTreeValues | int[] | ||
m_histogramHeight | float | ||
m_histogramRect | Rect | ||
m_knownFrequencyDistributionOfSelectedTiles | int[] | ||
m_needSurveyMessageRect | Rect |
Method | Description | |
---|---|---|
DisplayHistogram ( int treesToKeep, int treesToCut, float progress ) : void |
Displays the histogram. Presently, implicitly assumes that both arrays have length of ResourceTile.treeSizeClassCount and that all values are >= 0. KNOW YOUR DATA BRO. |
|
DoIt ( object selection ) : void |
Configure modifications then call base implementation.
|
|
IsPermittedOnResourceTile ( ResourceTile, tile ) : bool |
Determines whether this action is permitted on the specified tile.
|
|
OnEnable ( ) : void |
Raises the enable event.
|
Method | Description | |
---|---|---|
Awake ( ) : void |
Listen for input messages.
|
|
DisplayControlsContents ( ) : void |
Displays the controls contents.
|
|
DisplayCutSelector ( ) : void |
Displays the cut selector.
|
|
DisplayOperationCost ( ) : void |
Displays the operation cost.
|
|
FilterSelection ( ResourceTileSelection, selection ) : ResourceTileSelection, |
HACK
|
|
SendActionMessage ( ResourceTile, modifiedTiles ) : void | ||
SubmitResourceTileSelectionToServerAPI ( ResourceTileSelection, selection ) : IEnumerator |
Submits the resource tile selection to server API. This differs from the base implementation because the API returns timber values, not modified resource tiles |
|
Update ( ) : void |
Refresh the info for the selection as needed.
|
Method | Description | |
---|---|---|
ClearFrequencyDistribution ( ) : void |
Clears the frequency distribution.
|
|
ComputeTreesToBeCut ( int &treesToCut, int &treesToKeep ) : void |
Computes the trees to be cut.
|
|
ComputeTreesToBeCut ( int frequencyDistribution, int &treesToCut, int &treesToKeep ) : void |
Computes the trees to be cut (Overload function).
|
|
InitializeQRatioCurve ( ) : void |
Initializes the Q ratio curve.
|
|
RefreshDataForSelection ( ResourceTileSelection, selection ) : IEnumerator |
Refreshs the data for selection.
|
|
Start ( ) : void |
Initialize q ratio curve.
|
public static DisplayHistogram ( int treesToKeep, int treesToCut, float progress ) : void | ||
treesToKeep | int | /// Trees to keep. /// |
treesToCut | int | /// Trees to cut. /// |
progress | float | /// Normalized progress. /// |
return | void |
public DoIt ( object selection ) : void | ||
selection | object | /// The selection to which the action should be applied. /// |
return | void |
protected FilterSelection ( ResourceTileSelection, selection ) : ResourceTileSelection, | ||
selection | ResourceTileSelection, | /// Selection. /// |
return | ResourceTileSelection, |
public IsPermittedOnResourceTile ( ResourceTile, tile ) : bool | ||
tile | ResourceTile, | /// The resource tile in question. /// |
return | bool |
protected SendActionMessage ( ResourceTile, modifiedTiles ) : void | ||
modifiedTiles | ResourceTile, | |
return | void |
protected SubmitResourceTileSelectionToServerAPI ( ResourceTileSelection, selection ) : IEnumerator | ||
selection | ResourceTileSelection, | /// The resource tile selection. /// |
return | IEnumerator |
protected int[] m_actualFrequencyDistributionOfSelectedTiles | ||
return | int[] |
protected static float m_histogramHeight | ||
return | float |
protected int[] m_knownFrequencyDistributionOfSelectedTiles | ||
return | int[] |
protected static Rect m_needSurveyMessageRect | ||
return | Rect |