Loading...
Searching...
No Matches
CityBuilderCore.IToolsManager Interface Reference

Detailed Description

manages the tool activation and tool cost

Inheritance diagram for CityBuilderCore.IToolsManager:
CityBuilderCore.ToolsManager

Public Member Functions

void ActivateTool (BaseTool tool)
 deactivate the currently active tool and activate the new one
 
void DeactivateTool (BaseTool tool)
 deactivate the currently active tool if it is the one passed
 
int GetCost (Item item)
 checks the active tool for any item costs that should be shown as a previous
for example building costs while the building tool is active
 

Properties

BaseTool ActiveTool [get]
 the currently active tool or null when none
 

Member Function Documentation

◆ ActivateTool()

void CityBuilderCore.IToolsManager.ActivateTool ( BaseTool tool)

deactivate the currently active tool and activate the new one

Parameters
toolthe tool that will become active

Implemented in CityBuilderCore.ToolsManager.

◆ DeactivateTool()

void CityBuilderCore.IToolsManager.DeactivateTool ( BaseTool tool)

deactivate the currently active tool if it is the one passed

Parameters
toolthe tool to deactivate

Implemented in CityBuilderCore.ToolsManager.

◆ GetCost()

int CityBuilderCore.IToolsManager.GetCost ( Item item)

checks the active tool for any item costs that should be shown as a previous
for example building costs while the building tool is active

Parameters
itemthe item for which to check cost
Returns
how many items are needed to perform the action of the current tool

Implemented in CityBuilderCore.ToolsManager.

Property Documentation

◆ ActiveTool

BaseTool CityBuilderCore.IToolsManager.ActiveTool
get

the currently active tool or null when none

Implemented in CityBuilderCore.ToolsManager.