ClassicCityBuilderKit 1.8.8
|
base class for any behaviour that might pass a connection
passers perpetuate a connection at their points and get notified when any of these changes its connection value
this can be used for things that link up connections(pipes, wires, ..) and also things that use that connection(households)
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 | |
Public Attributes | |
Connection | Connection |
PointValueEvent | PointValueChanged |
Protected Member Functions | |
virtual void | Start () |
virtual void | OnDestroy () |
void | onPointsChanged (IEnumerable< Vector2Int > removed, IEnumerable< Vector2Int > added) |
Events | |
Action< PointsChanged< IConnectionPasser > > | PointsChanged |
Events inherited from CityBuilderCore.IConnectionPasser | |
Action< PointsChanged< IConnectionPasser > > | PointsChanged |
fired by the passer when points are removed or added to it | |
Additional Inherited Members | |
Properties inherited from CityBuilderCore.IConnectionPasser |
|
abstract |
|
inline |
this is where the passer gets notified about changes to the values of its points
point | the point at which the value changed |
value | the new value at the point |
Implements CityBuilderCore.IConnectionPasser.