simple IToolsManager implementation that should suffice for most cases
https://citybuilder.softleitner.com/manual
|
| 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
|
| |
|
|
BaseTool | FallbackTool |
| |
|
ToggleGroup | ToggleGroup |
| |
|
UnityEvent< BaseTool > | ToolChanged |
| |
◆ ActivateTool()
| void CityBuilderCore.ToolsManager.ActivateTool |
( |
BaseTool | tool | ) |
|
|
inline |
deactivate the currently active tool and activate the new one
- Parameters
-
| tool | the tool that will become active |
Implements CityBuilderCore.IToolsManager.
◆ DeactivateTool()
| void CityBuilderCore.ToolsManager.DeactivateTool |
( |
BaseTool | tool | ) |
|
|
inline |
◆ GetCost()
| int CityBuilderCore.ToolsManager.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
-
| item | the item for which to check cost |
- Returns
- how many items are needed to perform the action of the current tool
Implements CityBuilderCore.IToolsManager.
◆ ActiveTool
| BaseTool CityBuilderCore.ToolsManager.ActiveTool |
|
get |