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

Detailed Description

default implementation for IHighlightManager
uses tiles that are assigned in inspector

https://citybuilder.softleitner.com/manual

Inheritance diagram for CityBuilderCore.DefaultHighlightManager:
CityBuilderCore.IHighlightManager

Public Member Functions

void Highlight (IEnumerable< Vector2Int > points, bool valid)
 highlights points on the map
 
void Highlight (IEnumerable< Vector2Int > points, HighlightType type)
 highlights points on the map
 
void Highlight (IEnumerable< Vector2Int > points, Color color)
 highlights points on the map
 
void Highlight (IEnumerable< Vector2Int > points, TileBase tile)
 
void Highlight (Vector2Int point, bool isValid)
 highlights a point on the map
 
void Highlight (Vector2Int point, HighlightType type)
 highlights a point on the map
 
void Highlight (Vector2Int point, Color color)
 highlights points on the map
 
void Highlight (Vector2Int point, TileBase tile)
 
void Clear ()
 removes any previously made highlights
 

Public Attributes

TileBase ValidTile
 
TileBase InvalidTile
 
TileBase InfoTile
 
TileBase ColorTile
 

Protected Member Functions

virtual void Awake ()
 

Member Function Documentation

◆ Clear()

void CityBuilderCore.DefaultHighlightManager.Clear ( )
inline

removes any previously made highlights

Implements CityBuilderCore.IHighlightManager.

◆ Highlight() [1/6]

void CityBuilderCore.DefaultHighlightManager.Highlight ( IEnumerable< Vector2Int > points,
bool valid )

highlights points on the map

Parameters
pointspoints on the map to highlight
validtrue to display as valid(green), false for invalid(red)

Implements CityBuilderCore.IHighlightManager.

◆ Highlight() [2/6]

void CityBuilderCore.DefaultHighlightManager.Highlight ( IEnumerable< Vector2Int > points,
Color color )
inline

highlights points on the map

Parameters
pointspoints on the map to highlight
colorcolor to visualize the highlight in

Implements CityBuilderCore.IHighlightManager.

◆ Highlight() [3/6]

void CityBuilderCore.DefaultHighlightManager.Highlight ( IEnumerable< Vector2Int > points,
HighlightType type )

highlights points on the map

Parameters
pointspoints on the map to highlight
typehow the points should be visualized(valid>green, invalid>red, info>blue)

Implements CityBuilderCore.IHighlightManager.

◆ Highlight() [4/6]

void CityBuilderCore.DefaultHighlightManager.Highlight ( Vector2Int point,
bool isValid )

highlights a point on the map

Parameters
pointpoint on the map to highlight
validtrue to display as valid(green), false for invalid(red)

Implements CityBuilderCore.IHighlightManager.

◆ Highlight() [5/6]

void CityBuilderCore.DefaultHighlightManager.Highlight ( Vector2Int point,
Color color )
inline

highlights points on the map

Parameters
pointspoints on the map to highlight
colorcolor to visualize the highlight in

Implements CityBuilderCore.IHighlightManager.

◆ Highlight() [6/6]

void CityBuilderCore.DefaultHighlightManager.Highlight ( Vector2Int point,
HighlightType type )

highlights a point on the map

Parameters
pointpoint on the map to highlight
typehow the points should be visualized(valid>green, invalid>red, info>blue)

Implements CityBuilderCore.IHighlightManager.