Loading...
Searching...
No Matches
CityBuilderCore.SelectionTool Class Reference

Detailed Description

selects walkers and buildings under the mouse on click

https://citybuilder.softleitner.com/manual

Inheritance diagram for CityBuilderCore.SelectionTool:
CityBuilderCore.BaseTool CityBuilderCore.TooltipOwnerBase CityBuilderCore.ITooltipOwner

Public Attributes

BuildingEvent BuildingSelected
 
WalkerEvent WalkerSelected
 
Vector2IntEvent PointSelected
 
Color HighlightColor = Color.clear
 
BuildingAddon BuildingAddon
 
WalkerAddon WalkerAddon
 
- Public Attributes inherited from CityBuilderCore.BaseTool
View View
 
ToolEvent Activating
 
ToolEvent Applied
 

Protected Member Functions

override void updateTool ()
 
- Protected Member Functions inherited from CityBuilderCore.BaseTool
void onApplied ()
 
- Protected Member Functions inherited from CityBuilderCore.TooltipOwnerBase
virtual void OnDisable ()
 
void enter ()
 
void exit ()
 

Properties

override bool ShowGrid [get]
 
override bool IsTouchPanAllowed [get]
 
bool IsHighlighting [get]
 
bool IsHovering [get]
 
- Properties inherited from CityBuilderCore.BaseTool
virtual bool ShowGrid [get]
 whether the IGridOverlay gets shown for this tool
 
virtual bool IsTouchPanAllowed [get]
 whether the camera can be panned by touch drag
 
bool IsToolActive [get]
 
bool IsTouchActivated [get]
 
- Properties inherited from CityBuilderCore.TooltipOwnerBase
virtual string TooltipName [get]
 main text in the tooltip
 
virtual string TooltipDescription [get]
 smaller but potentially longer text below the main text
 
- Properties inherited from CityBuilderCore.ITooltipOwner

Additional Inherited Members

- Public Member Functions inherited from CityBuilderCore.BaseTool
virtual void ActivateTool ()
 
virtual void DeactivateTool ()
 
virtual int GetCost (Item item)
 
- Public Member Functions inherited from CityBuilderCore.TooltipOwnerBase
void OnPointerEnter (PointerEventData eventData)
 
void OnPointerExit (PointerEventData eventData)
 
- Protected Attributes inherited from CityBuilderCore.TooltipOwnerBase
bool _isPointerInside
 

Member Function Documentation

◆ updateTool()

override void CityBuilderCore.SelectionTool.updateTool ( )
inlineprotectedvirtual

Reimplemented from CityBuilderCore.BaseTool.