Loading...
Searching...
No Matches
CityBuilderCore.IConnectionPasser Interface Reference

Detailed Description

any object that lets a connection pass through its points
gets notified when any of the values at those points change

Inheritance diagram for CityBuilderCore.IConnectionPasser:
CityBuilderCore.ConnectionPasserBase CityBuilderCore.ConnectionPasserComponent CityBuilderCore.IConnectionFeeder CityBuilderCore.ConnectionPasserStructure CityBuilderCore.ConnectionPasserTiles CityBuilderCore.ConnectionFeederBuilder CityBuilderCore.ConnectionFeederComponent CityBuilderCore.ConnectionFeederStructure CityBuilderCore.ConnectionFeederTiles CityBuilderCore.ConnectionFeederStructure CityBuilderCore.ConnectionFeederTiles

Public Member Functions

IEnumerable< Vector2Int > GetPoints ()
 the points of the passer
 
void ValueChanged (Vector2Int point, int value)
 this is where the passer gets notified about changes to the values of its points
 

Properties

Connection Connection [get]
 the connection this passer allows to pass
 
bool IsConsumer [get]
 whether the passer acts as a one-way consumer that does not pass the connection further
the highest value that reaches a consumer determines the value of all of its points
 

Events

Action< PointsChanged< IConnectionPasser > > PointsChanged
 fired by the passer when points are removed or added to it
 

Member Function Documentation

◆ GetPoints()

◆ ValueChanged()

void CityBuilderCore.IConnectionPasser.ValueChanged ( Vector2Int point,
int value )

this is where the passer gets notified about changes to the values of its points

Parameters
pointthe point at which the value changed
valuethe new value at the point

Implemented in CityBuilderCore.ConnectionFeederBuilder, CityBuilderCore.ConnectionFeederComponent, CityBuilderCore.ConnectionPasserBase, and CityBuilderCore.ConnectionPasserComponent.