Show / Hide Table of Contents

Class Constitution

Inheritance
System.Object
SimpleEntry
SimpleProposable
Constitution
Implements
ILinkableParameterized<SimpleEntry.NamingOptions>
IProposable
IHostedObject
IHasTeleportOption
ILinkableParameterized<System.Boolean>
ILinkable
ICustomValidity
IValidity
ISuffixName
ISingleEditingUser
IPlayerUseTracking
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
ISettlementAssociated
IRPCAuthChecks
IHasClientControlledContainers
IDescribable
IHasSubRegistrarEntries
ICachesValidity
IController
IViewController
IHasUniversalID
INamed
IHasID
IReInitializable
IHasReferenceableSerializableID
IHasSerializableID
System.ComponentModel.INotifyPropertyChanged
Inherited Members
SimpleProposable.requiresHost
SimpleProposable.SetRequiresHost(Boolean)
SimpleProposable.Valid()
SimpleProposable.DisableHostedObject()
SimpleProposable.AssignHostObject(WorldObject)
SimpleProposable.CanBeAssignedTo(IOrphanAssignment)
SimpleProposable.InitializeDraftProposable()
SimpleProposable.GetPairsOfOldAndNewRevisions(IProposable)
SimpleProposable.ApplyUpdatedProposable(IProposable)
SimpleProposable.OnCreate()
SimpleProposable.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
SimpleProposable.SetState(ProposableState)
SimpleProposable.UsingPlayers
SimpleProposable.State
SimpleProposable.HostID
SimpleProposable.HostObject
SimpleProposable.TargetToReplace
SimpleProposable.ScanPeriodically
SimpleProposable.LastValidTime
SimpleProposable.Submitted
SimpleProposable.RevisionParent
SimpleProposable.Election
SimpleProposable.RemovedBy
SimpleProposable.RemovalElection
SimpleProposable.Settlement
SimpleProposable.CurrentEditingUser
SimpleProposable.IsActive
SimpleProposable.WasRemoved
SimpleProposable.IHostedObject.HostingSettlement
SimpleProposable.IHostedObject.CanBeEdited
SimpleProposable.IHostedObject.ExpirationWarningsIssued
SimpleEntry.PostLoad()
SimpleEntry.CreatorText(Player)
SimpleEntry.ToString()
SimpleEntry.SaveInRegistrar()
SimpleEntry.UILinkContent()
SimpleEntry.UILinkContent(Boolean)
SimpleEntry.UILinkContent(SimpleEntry.NamingOptions)
SimpleEntry.ReInitialize()
SimpleEntry.MarkDirty()
SimpleEntry.UserDescription
SimpleEntry.Creator
SimpleEntry.NameSuffix
SimpleEntry.CreationTime
SimpleEntry.CachedValidity
SimpleEntry.IsDestroyed
SimpleEntry.OnValidityChanged
SimpleEntry.Initialized
SimpleEntry.MarkedUpName
SimpleEntry.Id
SimpleEntry.IconName
SimpleEntry.Registrar
SimpleEntry.WorldTimeSinceCreation
SimpleEntry.CanBeDeleted
SimpleEntry.TextName
SimpleEntry.Scannable
SimpleEntry.Style
SimpleEntry.ControllerID
SimpleEntry.TrueResult
SimpleEntry.Subscriptions
SimpleEntry.PropertyChanged
Namespace: Eco.Gameplay.Civics
Assembly: Eco.Gameplay.dll
Syntax
public class Constitution : SimpleProposable, ILinkableParameterized<SimpleEntry.NamingOptions>, IProposable, IHostedObject, IHasTeleportOption, ILinkableParameterized<bool>, ILinkable, ICustomValidity, IValidity, ISuffixName, ISingleEditingUser, IPlayerUseTracking, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, ISettlementAssociated, IRPCAuthChecks, IHasClientControlledContainers, IDescribable, IHasSubRegistrarEntries, ICachesValidity, IController, IViewController, IHasUniversalID, INamed, IHasID, IReInitializable, IHasReferenceableSerializableID, IHasSerializableID, INotifyPropertyChanged

Constructors

Constitution()

Declaration
public Constitution()

Fields

ArticleDescriptionChanged

Declaration
public static readonly ThreadSafeAction<Constitution> ArticleDescriptionChanged
Field Value
Type Description
ThreadSafeAction<Constitution>

Pos

Declaration
public Vector3i Pos
Field Value
Type Description
Vector3i

RequiresHostBacking

Declaration
public bool RequiresHostBacking
Field Value
Type Description
System.Boolean

Properties

AllArticles

Declaration
public List<CivicArticle> AllArticles { get; }
Property Value
Type Description
System.Collections.Generic.List<CivicArticle>

AmendedArticles

Declaration
public IEnumerable<CivicArticle> AmendedArticles { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<CivicArticle>

Articles

Declaration
public ControllerList<CivicArticle> Articles { get; set; }
Property Value
Type Description
ControllerList<CivicArticle>

DescribedWithTable

Declaration
public override bool DescribedWithTable { get; }
Property Value
Type Description
System.Boolean
Overrides
SimpleProposable.DescribedWithTable

Founded

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

Name

Declaration
public override string Name { get; set; }
Property Value
Type Description
System.String
Overrides
SimpleEntry.Name

OverthrowValue

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

RequiresHost

Declaration
public override bool RequiresHost { get; }
Property Value
Type Description
System.Boolean
Overrides
SimpleProposable.RequiresHost

RequiresSlot

Declaration
protected override bool RequiresSlot { get; }
Property Value
Type Description
System.Boolean
Overrides
SimpleProposable.RequiresSlot

RoomValue

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

SubRegistrarEntries

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

Methods

AddArticle(Player)

Declaration
public void AddArticle(Player player)
Parameters
Type Name Description
Player player

ClearAllArticles()

Declaration
public void ClearAllArticles()

CreateDebugConstitution(Settlement)

Declaration
public static Constitution CreateDebugConstitution(Settlement settlement)
Parameters
Type Name Description
Settlement settlement
Returns
Type Description
Constitution

Description()

Declaration
public override LocString Description()
Returns
Type Description
LocString
Overrides
SimpleEntry.Description()

Destroyed()

Declaration
public override void Destroyed()
Overrides
SimpleProposable.Destroyed()

InitDefaultConstitution(ElectionProcess, IAlias)

Fill the constitution with all powers allowed by elections of the given process, by the given proposers.

Declaration
public void InitDefaultConstitution(ElectionProcess defaultProcess = null, IAlias defaultProposers = null)
Parameters
Type Name Description
ElectionProcess defaultProcess
IAlias defaultProposers

Initialize()

Declaration
public override void Initialize()
Overrides
SimpleProposable.Initialize()

OnBeforeStateChangeInternal(ProposableState, CivicsUtils.StateChangeDetailFlags)

Declaration
public override void OnBeforeStateChangeInternal(ProposableState newState, CivicsUtils.StateChangeDetailFlags flags)
Parameters
Type Name Description
ProposableState newState
CivicsUtils.StateChangeDetailFlags flags
Overrides
SimpleProposable.OnBeforeStateChangeInternal(ProposableState, CivicsUtils.StateChangeDetailFlags)

OnRenamed(String)

Update Constitution articles name when Constitution gets renamed

Declaration
public void OnRenamed(string oldName)
Parameters
Type Name Description
System.String oldName

OnStateChangedInternal(ProposableState, CivicsUtils.StateChangeDetailFlags)

Declaration
public override void OnStateChangedInternal(ProposableState oldState, CivicsUtils.StateChangeDetailFlags flags)
Parameters
Type Name Description
ProposableState oldState
CivicsUtils.StateChangeDetailFlags flags
Overrides
SimpleProposable.OnStateChangedInternal(ProposableState, CivicsUtils.StateChangeDetailFlags)

Explicit Interface Implementations

ICachesValidity.IgnoreValidity

Declaration
bool ICachesValidity.IgnoreValidity { get; }
Returns
Type Description
System.Boolean

Implements

ILinkableParameterized<T>
IProposable
IHostedObject
IHasTeleportOption
ILinkableParameterized<T>
ILinkable
ICustomValidity
IValidity
ISuffixName
ISingleEditingUser
IPlayerUseTracking
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions
ISettlementAssociated
IRPCAuthChecks
IHasClientControlledContainers
IDescribable
IHasSubRegistrarEntries
ICachesValidity
IController
IViewController
IHasUniversalID
INamed
IHasID
IReInitializable
IHasReferenceableSerializableID
IHasSerializableID
System.ComponentModel.INotifyPropertyChanged

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
CivicsTooltipLibrary.ConstitutionDescription(Constitution)
ILinkableTooltipLibrary.SimpleProposableLinkClicked(SimpleProposable)
MiscTooltipLibrary.SimpleEntryTooltip(SimpleEntry, User)
MiscTooltipLibrary.SimpleEntryTitle(SimpleEntry)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾