Show / Hide Table of Contents

Class ConstitutionManager

Inheritance
System.Object
ConstitutionManager
Implements
IController
IViewController
IHasUniversalID
Namespace: Eco.Gameplay.Civics
Assembly: Eco.Gameplay.dll
Syntax
public class ConstitutionManager : Singleton<ConstitutionManager>, IController, IViewController, IHasUniversalID

Constructors

ConstitutionManager()

Declaration
public ConstitutionManager()

Fields

ConstitutionChangedEvent

Declaration
public static ThreadSafeAction<Constitution> ConstitutionChangedEvent
Field Value
Type Description
ThreadSafeAction<Constitution>

ConstitutionPassedEvent

Declaration
public static ThreadSafeAction<Constitution, Settlement> ConstitutionPassedEvent
Field Value
Type Description
ThreadSafeAction<Constitution, Settlement>

Properties

ControllerID

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

SettlementToCurrentArticles

All the active articles, from both the constitution and any amendments that modify that list. Will contain invalid articles too.

Declaration
public ControllerDictionary<Settlement, List<CivicArticle>> SettlementToCurrentArticles { get; set; }
Property Value
Type Description
ControllerDictionary<Settlement, System.Collections.Generic.List<CivicArticle>>

Methods

CurrentValidArticles(Settlement)

Declaration
public IEnumerable<CivicArticle> CurrentValidArticles(Settlement settlement)
Parameters
Type Name Description
Settlement settlement
Returns
Type Description
System.Collections.Generic.IEnumerable<CivicArticle>

Initialize()

Declaration
public void Initialize()

SetConstitution(Constitution, Settlement)

Set the constitution for a given settlement

Declaration
public void SetConstitution(Constitution constitution, Settlement settlement = null)
Parameters
Type Name Description
Constitution constitution
Settlement settlement

UpdateConstitution(Settlement)

Declaration
public void UpdateConstitution(Settlement settlement)
Parameters
Type Name Description
Settlement settlement

Implements

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