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

Detailed Description

helper class used by DefaultConnectionManager to encapsulate connection handling for one connection

Inheritance diagram for CityBuilderCore.ConnectionGrid:
CityBuilderCore.ILayerAffector

Public Member Functions

 ConnectionGrid (Connection connection)
 
void RegisterFeeder (IConnectionFeeder feeder)
 
void DeregisterFeeder (IConnectionFeeder feeder)
 
void RegisterPasser (IConnectionPasser passer)
 
void DeregisterPasser (IConnectionPasser passer)
 
bool HasPoint (Vector2Int point)
 
int GetValue (Vector2Int point)
 
void Check (bool force=false)
 
Dictionary< Vector2Int, int > GetValues ()
 return all positions the affector affects with their values
 
ConnectionGrid CreatePreview ()
 

Properties

Connection Connection [get]
 
Layer Layer [get]
 the layer affected
 
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.ConnectionGrid.GetValues ( )
inline

return all positions the affector affects with their values

Returns

Implements CityBuilderCore.ILayerAffector.

Property Documentation

◆ Layer

Layer CityBuilderCore.ConnectionGrid.Layer
get

the layer affected

Implements CityBuilderCore.ILayerAffector.

◆ Name

string CityBuilderCore.ConnectionGrid.Name
get

name of the affector used in UI

Implements CityBuilderCore.ILayerAffector.