Show / Hide Table of Contents

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
Implements
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
Namespace: Eco.Gameplay.Settlements.Annexation
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
Type Description
ThreadSafeAction<Settlement, IAnnexable>

AnnexLock

Declaration
public object AnnexLock
Field Value
Type Description
System.Object

CachedAnnexRecords

Declaration
public ThreadSafeDictionary<(IAnnexable, IAnnexable), AnnexationRecord> CachedAnnexRecords
Field Value
Type Description
ThreadSafeDictionary<System.ValueTuple<IAnnexable, IAnnexable>, AnnexationRecord>

Properties

AllowAdminsAnnexWithoutRequirements

Declaration
public bool AllowAdminsAnnexWithoutRequirements { get; set; }
Property Value
Type Description
System.Boolean

Subscriptions

Declaration
public ref ThreadSafeSubscriptions Subscriptions { get; }
Property Value
Type Description
ThreadSafeSubscriptions

Methods

AnnexAndNotify(User, Settlement, IAnnexable, Boolean)

Declaration
public void AnnexAndNotify(User user, Settlement source, IAnnexable target, bool force)
Parameters
Type Name Description
User user
Settlement source
IAnnexable target
System.Boolean force

Describe()

Declaration
public LocString Describe()
Returns
Type Description
LocString

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
Type Name Description
User user
Settlement source
IAnnexable target
System.Boolean force
Returns
Type Description
Result

Implements

IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾