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

Detailed Description

implementation of IHighlightManager that creates and dynamically adjusts meshes

https://citybuilder.softleitner.com/manual

Inheritance diagram for CityBuilderCore.MeshHighlightManager:
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 (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 Clear ()
 removes any previously made highlights
 

Public Attributes

MeshRenderer Prefab
 
Color ValidColor = Color.green
 
Color InvalidColor = Color.red
 
Color InfoColor = Color.blue
 
bool Outline
 

Protected Member Functions

virtual void Awake ()
 

Member Function Documentation

◆ Clear()

void CityBuilderCore.MeshHighlightManager.Clear ( )
inline

removes any previously made highlights

Implements CityBuilderCore.IHighlightManager.

◆ Highlight() [1/6]

void CityBuilderCore.MeshHighlightManager.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.MeshHighlightManager.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.MeshHighlightManager.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.MeshHighlightManager.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.MeshHighlightManager.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.MeshHighlightManager.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.