Show / Hide Table of Contents

Class CivicArticleCondition

Defines a type of civic action, which can be used to determine government rules in a constitution via CivicArticles

Inheritance
System.Object
CivicArticleCondition
Implements
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IValidity
IDescribable
Namespace: Eco.Gameplay.Civics.Constitutional
Assembly: Eco.Gameplay.dll
Syntax
public abstract class CivicArticleCondition : Object, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IValidity, IDescribable

Constructors

CivicArticleCondition()

Declaration
protected CivicArticleCondition()

Properties

ActionPrefix

Declaration
public virtual LocString ActionPrefix { get; }
Property Value
Type Description
LocString

AppliesToType

Declaration
public virtual Type AppliesToType { get; }
Property Value
Type Description
System.Type

ControllerID

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

Methods

Applies(Type)

Declaration
public bool Applies(Type type)
Parameters
Type Name Description
System.Type type
Returns
Type Description
System.Boolean

DescribeAction(Type)

Declaration
public virtual LocString DescribeAction(Type type)
Parameters
Type Name Description
System.Type type
Returns
Type Description
LocString

Description()

Declaration
public virtual LocString Description()
Returns
Type Description
LocString

PassesCondition(User, CivicAction)

Returns true if this civic condition matches the given action (either because it applies to the type of civic action, or its acting on a container of the given type of civic types.)

Declaration
public virtual bool PassesCondition(User user, CivicAction action)
Parameters
Type Name Description
User user
CivicAction action
Returns
Type Description
System.Boolean

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IValidity
IDescribable

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