Class InfluenceChangeNotifier
Allows watching influence at a given plot position and getting a callback when changes occurr.
Inheritance
System.Object
InfluenceChangeNotifier
Namespace: Eco.Gameplay.InfluenceObjects
Assembly: Eco.Gameplay.dll
Syntax
public class InfluenceChangeNotifier : Singleton<InfluenceChangeNotifier>
Constructors
InfluenceChangeNotifier()
Declaration
public InfluenceChangeNotifier()
Methods
MarkInfluenceChanged(IEnumerable<PlotPos>)
Called to tell us the list of changed plots and alert any subscribers.
Declaration
public void MarkInfluenceChanged(IEnumerable<PlotPos> changedPlots)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<PlotPos> | changedPlots |
SubscribeInfluenceChanged(IThreadSafeSubscriptions, PlotPos, Action)
Subscribe to Influence changes at the given position.
Declaration
public void SubscribeInfluenceChanged(IThreadSafeSubscriptions subs, PlotPos pos, Action callback)
Parameters
Type | Name | Description |
---|---|---|
IThreadSafeSubscriptions | subs | List where the subscription is stored. |
PlotPos | pos | |
System.Action | callback |