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

Detailed Description

an object that, in addition to passing it, also feeds value into a connection
defines some parameters for how that value perpetuates, how exactly those are calculated is defiend in the manager

Inheritance diagram for CityBuilderCore.IConnectionFeeder:
CityBuilderCore.IConnectionPasser CityBuilderCore.ConnectionFeederBuilder CityBuilderCore.ConnectionFeederComponent CityBuilderCore.ConnectionFeederStructure CityBuilderCore.ConnectionFeederTiles

Properties

int Value [get]
 value at the point of the feeder
 
int Range [get]
 how far the value of the feeder carries without falling off
 
int Falloff [get]
 value subtracted for every step outside the range
 
- Properties inherited from CityBuilderCore.IConnectionPasser
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< IConnectionFeederFeederValueChanged
 event that has to be fired when the feeder changes its output
 
- Events inherited from CityBuilderCore.IConnectionPasser
Action< PointsChanged< IConnectionPasser > > PointsChanged
 fired by the passer when points are removed or added to it
 

Additional Inherited Members

- Public Member Functions inherited from CityBuilderCore.IConnectionPasser
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