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

Detailed Description

affector that uses the points of an IStructure on the same or the parent component
for example in THREE trees raise desirability needed by housing and ore structures affect the iron layer which is needed to place mines

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

Inheritance diagram for CityBuilderCore.LayerAffector:
CityBuilderCore.ILayerAffector CityBuilderCore.LayerAffectorWorking

Public Member Functions

Dictionary< Vector2Int, int > GetValues ()
 return all positions the affector affects with their values
 
int GetValue (Vector2Int position)
 

Public Attributes

Layer Layer
 
int Value
 
int Range
 
int Falloff
 

Protected Member Functions

virtual void Start ()
 
void checkAffector ()
 

Properties

virtual bool IsAffecting [get]
 
virtual string Name [get]
 name of the affector used in UI
 
- Properties inherited from CityBuilderCore.ILayerAffector

Events

Action< ILayerAffectorChanged
 
- Events inherited from CityBuilderCore.ILayerAffector
Action< ILayerAffectorChanged
 

Member Function Documentation

◆ GetValues()

Dictionary< Vector2Int, int > CityBuilderCore.LayerAffector.GetValues ( )
inline

return all positions the affector affects with their values

Returns

Implements CityBuilderCore.ILayerAffector.

Property Documentation

◆ Name

virtual string CityBuilderCore.LayerAffector.Name
get

name of the affector used in UI

Implements CityBuilderCore.ILayerAffector.