Show / Hide Table of Contents

Class SettlementCachedData

Tracks various properties of settlements needed for different things, and keeps them updated.

Inheritance
System.Object
SettlementCachedData
Implements
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
IController
IViewController
IHasUniversalID
Namespace: Eco.Gameplay.Settlements
Assembly: Eco.Gameplay.dll
Syntax
public class SettlementCachedData : Object, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IController, IViewController, IHasUniversalID

Constructors

SettlementCachedData()

Declaration
public SettlementCachedData()

Fields

ChangedEvent

Declaration
public ThreadSafeAction ChangedEvent
Field Value
Type Description
ThreadSafeAction

ClaimedPlots

Declaration
public HashSet<PlotPos> ClaimedPlots
Field Value
Type Description
System.Collections.Generic.HashSet<PlotPos>

CultureChanged

Declaration
public static ThreadSafeAction<Settlement> CultureChanged
Field Value
Type Description
ThreadSafeAction<Settlement>

InfluencedPlots

Declaration
public HashSet<PlotPos> InfluencedPlots
Field Value
Type Description
System.Collections.Generic.HashSet<PlotPos>

SettlementCachedDataChanged

Declaration
public static ThreadSafeAction<Settlement> SettlementCachedDataChanged
Field Value
Type Description
ThreadSafeAction<Settlement>

Properties

AnnexationRecords

Records of annexation where this settlement is the source or target.

Declaration
public IEnumerable<AnnexationRecord> AnnexationRecords { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<AnnexationRecord>

ControllerID

Declaration
public ref int ControllerID { get; }
Property Value
Type Description
System.Int32

CultureDescription

Cached sum of all culture values on all deeds of the settlement

Declaration
public LocString CultureDescription { get; set; }
Property Value
Type Description
LocString

CultureRecursiveTotal

Declaration
public float CultureRecursiveTotal { get; set; }
Property Value
Type Description
System.Single

CultureTotal

Declaration
public float CultureTotal { get; set; }
Property Value
Type Description
System.Single

Deeds

Cached list of deeds associated with this settlement

Declaration
public ControllerHashSet<Deed> Deeds { get; set; }
Property Value
Type Description
ControllerHashSet<Deed>

Subscriptions

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

Methods

AnnexationRecordsUpdated()

Called by annexation builder when the enumerable may have changed.

Declaration
public void AnnexationRecordsUpdated()

Destroy()

Declaration
public void Destroy()

Initialize(Int32)

Declaration
public void Initialize(int settlementID)
Parameters
Type Name Description
System.Int32 settlementID

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions
IController
IViewController
IHasUniversalID

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
☀
☾