C# Класс PlayerActionScheduleHarvest, tf_client

An action to schedule a regular harvest.
Наследование: PlayerActionHarvestTimber
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
ConcludeHarvest IEnumerator
DisplayCurrentHarvestDetails void
DisplayCurrentHarvestHistoryViewer void
DisplayDiameterLimitDetails void
DisplayHarvestList void
DisplayNewHarvestTab void
DisplayQRatioDetails void
DisplayReviewHarvestsTab void
DrawLineInGraph void
DrawPointInGraph void
ExecuteHarvests IEnumerator

Открытые методы

Метод Описание
DisplayHarvestHistoryGraph ( Rect parent, Harvest, harvest, HistoryTab currentTab, TimeSeries, poleTimberSeries, TimeSeries, sawTimberSeries, Material lineGraphMaterial ) : string

Displays the history of the supplied harvest as a line graph.

DoIt ( object selection ) : void

Configure modifications then call base implementation.

ExecuteHarvests ( ) : void

Executes the harvests.

IsPermittedOnResourceTile ( ResourceTile, tile ) : bool

Determines whether this action is permitted on the specified tile.

ScheduleHarvest ( Harvest, harvest ) : void

Schedules the harvest.

_HarvestExecuted ( MessageHarvestExecuted, msg ) : void

Raises the harvest executed event.

Concludes the harvest if needed

Защищенные методы

Метод Описание
Awake ( ) : void

Listen for messages.

DisplayControlsContents ( ) : void

Displays the controls contents.

Update ( ) : void

Debug

Приватные методы

Метод Описание
ConcludeHarvest ( Harvest, harvest ) : IEnumerator

Concludes the harvest.

DisplayCurrentHarvestDetails ( ) : void

Displays the current harvest details.

DisplayCurrentHarvestHistoryViewer ( ) : void

Displays the current harvest history viewer.

DisplayDiameterLimitDetails ( ) : void

Displays the diameter limit details.

DisplayHarvestList ( ) : void

Displays the harvest list.

DisplayNewHarvestTab ( ) : void

Displays the new harvest tab.

DisplayQRatioDetails ( ) : void

Displays the Q ratio details.

DisplayReviewHarvestsTab ( ) : void

Displays the review harvests tab.

DrawLineInGraph ( TimeSeries, timeSeries, Vector2 points, Material material, Vector2 upperLeftCorner ) : void

Draws the line in graph.

DrawPointInGraph ( TimeSeries, timeSeries, Vector2 centerPoint, string tooltip ) : void

Draws the point in the line graph.

ExecuteHarvests ( Harvest, harvests ) : IEnumerator

Executes the harvests.

Описание методов

Awake() защищенный Метод

Listen for messages.
protected Awake ( ) : void
Результат void

DisplayControlsContents() защищенный Метод

Displays the controls contents.
protected DisplayControlsContents ( ) : void
Результат void

DisplayHarvestHistoryGraph() публичный статический Метод

Displays the history of the supplied harvest as a line graph.
public static DisplayHarvestHistoryGraph ( Rect parent, Harvest, harvest, HistoryTab currentTab, TimeSeries, poleTimberSeries, TimeSeries, sawTimberSeries, Material lineGraphMaterial ) : string
parent Rect /// The parent rectangle ///
harvest Harvest, /// Harvest. ///
currentTab HistoryTab /// Current tab. ///
poleTimberSeries TimeSeries, /// Pole timber point style. ///
sawTimberSeries TimeSeries, /// Saw timber point style. ///
lineGraphMaterial Material /// Line graph material. ///
Результат string

DoIt() публичный Метод

Configure modifications then call base implementation.
public DoIt ( object selection ) : void
selection object /// The selection to which the action should be applied. ///
Результат void

ExecuteHarvests() публичный Метод

Executes the harvests.
public ExecuteHarvests ( ) : void
Результат void

IsPermittedOnResourceTile() публичный Метод

Determines whether this action is permitted on the specified tile.
public IsPermittedOnResourceTile ( ResourceTile, tile ) : bool
tile ResourceTile, /// The resource tile in question. ///
Результат bool

ScheduleHarvest() публичный Метод

Schedules the harvest.
public ScheduleHarvest ( Harvest, harvest ) : void
harvest Harvest, /// Harvest. ///
Результат void

Update() защищенный Метод

Debug
protected Update ( ) : void
Результат void

_HarvestExecuted() публичный Метод

Raises the harvest executed event.
Concludes the harvest if needed
public _HarvestExecuted ( MessageHarvestExecuted, msg ) : void
msg MessageHarvestExecuted, /// Message. ///
Результат void