Class AnnexationManager
Maintains a list of all the settlements that can annex another or are in progress of it (so they can get advance warning)
Inheritance
System.Object
AnnexationManager
Assembly: Eco.Gameplay.dll
Syntax
public class AnnexationManager : Singleton<AnnexationManager>, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions
Constructors
AnnexationManager()
Declaration
public AnnexationManager()
Fields
AnnexationCompleteEvent
Declaration
public ThreadSafeAction<Settlement, IAnnexable> AnnexationCompleteEvent
Field Value
AnnexLock
Declaration
Field Value
Type |
Description |
System.Object |
|
CachedAnnexRecords
Declaration
public ThreadSafeDictionary<(IAnnexable, IAnnexable), AnnexationRecord> CachedAnnexRecords
Field Value
Properties
AllowAdminsAnnexWithoutRequirements
Declaration
public bool AllowAdminsAnnexWithoutRequirements { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Subscriptions
Declaration
public ref ThreadSafeSubscriptions Subscriptions { get; }
Property Value
Methods
AnnexAndNotify(User, Settlement, IAnnexable, Boolean)
Declaration
public void AnnexAndNotify(User user, Settlement source, IAnnexable target, bool force)
Parameters
Describe()
Declaration
public LocString Describe()
Returns
DoAnnex(User, Settlement, IAnnexable, Boolean)
Perform an annex of target settlement into source settlement. If user set, verify they are the leader.
Declaration
public Result DoAnnex(User user, Settlement source, IAnnexable target, bool force)
Parameters
Returns
Implements
Extension Methods