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
System.ComponentModel.INotifyPropertyChanged
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
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
Description()
Declaration
public virtual LocString Description()
Returns
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
Returns
Type |
Description |
System.Boolean |
|
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods