Class Constitution
Inheritance
System.Object
Constitution
Implements
ISuffixName
System.ComponentModel.INotifyPropertyChanged
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
Fields
ArticleDescriptionChanged
Declaration
public static readonly ThreadSafeAction<Constitution> ArticleDescriptionChanged
Field Value
Pos
Declaration
Field Value
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
DescribedWithTable
Declaration
public override bool DescribedWithTable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
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
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
RequiresSlot
Declaration
protected override bool RequiresSlot { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
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
Returns
Description()
Declaration
public override LocString Description()
Returns
Overrides
Destroyed()
Declaration
public override void Destroyed()
Overrides
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
Initialize()
Declaration
public override void Initialize()
Overrides
OnBeforeStateChangeInternal(ProposableState, CivicsUtils.StateChangeDetailFlags)
Declaration
public override void OnBeforeStateChangeInternal(ProposableState newState, CivicsUtils.StateChangeDetailFlags flags)
Parameters
Overrides
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
Overrides
Explicit Interface Implementations
ICachesValidity.IgnoreValidity
Declaration
bool ICachesValidity.IgnoreValidity { get; }
Returns
Type |
Description |
System.Boolean |
|
Implements
ISuffixName
System.ComponentModel.INotifyPropertyChanged
Extension Methods