Class DemographicManager
Inheritance
System.Object
DemographicManager
Assembly: Eco.Gameplay.dll
Syntax
[ChatCommandHandler]
public class DemographicManager : Singleton<DemographicManager>, IRegistrarManager<Demographic, SpecialDemographics>, IRegistrarManager, IHasClientControlledContainers, IController, IViewController, IHasUniversalID
Constructors
DemographicManager()
Declaration
public DemographicManager()
Fields
Init
First initialized and all demographics have their usersets cached.
Declaration
public static Initializer Init
Field Value
UserIdToRecord
Declaration
public ThreadSafeDictionary<int, DemographicRecord> UserIdToRecord
Field Value
Properties
Abandoned
Declaration
public static Demographic Abandoned { get; }
Property Value
Active
Declaration
public static Demographic Active { get; }
Property Value
ControllerID
Declaration
public ref int ControllerID { get; }
Property Value
Type |
Description |
System.Int32 |
|
Everyone
Declaration
public static Demographic Everyone { get; }
Property Value
LongTerm
Declaration
public static Demographic LongTerm { get; }
Property Value
Registrar
Declaration
public Registrar<Demographic> Registrar { get; }
Property Value
SpecialEntries
Declaration
public Demographic[] SpecialEntries { get; set; }
Property Value
Methods
ActiveDraftAndProposedDemographics(Settlement)
Declaration
public IEnumerable<Demographic> ActiveDraftAndProposedDemographics(Settlement settlement)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Demographic> |
|
AssignedDemographics(User)
Declaration
public IEnumerable<Demographic> AssignedDemographics(User user)
Parameters
Type |
Name |
Description |
User |
user |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Demographic> |
|
DoDemographicUpdate(Demographic, Boolean)
Declaration
public Result DoDemographicUpdate(Demographic limitToDemographic = null, bool suppressChangeNotice = false)
Parameters
Type |
Name |
Description |
Demographic |
limitToDemographic |
|
System.Boolean |
suppressChangeNotice |
|
Returns
Get(SpecialDemographics)
Declaration
public Demographic Get(SpecialDemographics specialType)
Parameters
Returns
Initialize()
Declaration
InitSpecialEntry(Demographic)
Declaration
public void InitSpecialEntry(Demographic demo)
Parameters
UpdateAbandonedDemographic()
Declaration
public void UpdateAbandonedDemographic()
UpdateActiveDemographic()
Declaration
public void UpdateActiveDemographic()
UpdateDemographicList(IEnumerable<Demographic>, Boolean)
Declaration
public Result UpdateDemographicList(IEnumerable<Demographic> demographicsList, bool suppressChangeNotice = false)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<Demographic> |
demographicsList |
|
System.Boolean |
suppressChangeNotice |
|
Returns
UpdateLongTermDemographic()
Declaration
public void UpdateLongTermDemographic()
Events
DemographicsUpdated
Declaration
public static event Action DemographicsUpdated
Event Type
Type |
Description |
System.Action |
|
Implements
Extension Methods