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

Detailed Description

default implementation of IOverlayManager
shows layer overlay using the color in ViewLayer.Gradientfor tiles in a tilemap
can also display a explanation for the values using LayerKeyVisualizer

https://citybuilder.softleitner.com/manual/views

Inheritance diagram for CityBuilderCore.DefaultOverlayManager:
CityBuilderCore.IOverlayManager

Public Member Functions

void ActivateOverlay (ViewLayer view)
 activates a layer view that displays a gradient for layer values
 
void ActivateOverlay (ViewConnection view)
 activates a connection view that displays a gradient for connection values
 
void ActivateOverlay (ViewEfficiency view)
 activates a layer view that displays a gradient for building efficiency
 
void ClearOverlay ()
 clears out any previously activated view
 

Public Attributes

TileBase Tile
 
LayerKeyVisualizer LayerKeyVisualizer
 
ConnectionValueVisualizer ConnectionValueVisualizer
 

Protected Member Functions

virtual void Awake ()
 
virtual void Start ()
 

Member Function Documentation

◆ ActivateOverlay() [1/3]

void CityBuilderCore.DefaultOverlayManager.ActivateOverlay ( ViewConnection connectionView)
inline

activates a connection view that displays a gradient for connection values

Parameters
connectionViewthe view to activate

Implements CityBuilderCore.IOverlayManager.

◆ ActivateOverlay() [2/3]

void CityBuilderCore.DefaultOverlayManager.ActivateOverlay ( ViewEfficiency efficiencyView)
inline

activates a layer view that displays a gradient for building efficiency

Parameters
efficiencyViewthe view to activate

Implements CityBuilderCore.IOverlayManager.

◆ ActivateOverlay() [3/3]

void CityBuilderCore.DefaultOverlayManager.ActivateOverlay ( ViewLayer layerView)
inline

activates a layer view that displays a gradient for layer values

Parameters
layerViewthe view to activate

Implements CityBuilderCore.IOverlayManager.

◆ ClearOverlay()

void CityBuilderCore.DefaultOverlayManager.ClearOverlay ( )
inline

clears out any previously activated view

Implements CityBuilderCore.IOverlayManager.