Class SettlementCachedData
Tracks various properties of settlements needed for different things, and keeps them updated.
Inheritance
System.Object
SettlementCachedData
Implements
System.ComponentModel.INotifyPropertyChanged
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
ClaimedPlots
Declaration
public HashSet<PlotPos> ClaimedPlots
Field Value
Type |
Description |
System.Collections.Generic.HashSet<PlotPos> |
|
CultureChanged
Declaration
public static ThreadSafeAction<Settlement> CultureChanged
Field Value
InfluencedPlots
Declaration
public HashSet<PlotPos> InfluencedPlots
Field Value
Type |
Description |
System.Collections.Generic.HashSet<PlotPos> |
|
SettlementCachedDataChanged
Declaration
public static ThreadSafeAction<Settlement> SettlementCachedDataChanged
Field Value
Properties
AnnexationRecords
Records of annexation where this settlement is the source or target.
Declaration
public IEnumerable<AnnexationRecord> AnnexationRecords { get; }
Property Value
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
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
Subscriptions
Declaration
public ref ThreadSafeSubscriptions Subscriptions { get; }
Property Value
Methods
AnnexationRecordsUpdated()
Called by annexation builder when the enumerable may have changed.
Declaration
public void AnnexationRecordsUpdated()
Destroy()
Declaration
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
Extension Methods