Show / Hide Table of Contents

Class IfThenBlock

Inheritance
System.Object
IfThenBlock
Implements
System.ComponentModel.INotifyPropertyChanged
IValidity
IHasClientControlledContainers
IController
IViewController
IHasUniversalID
Namespace: Eco.Gameplay.Civics
Assembly: Eco.Gameplay.dll
Syntax
public class IfThenBlock : Object, INotifyPropertyChanged, IValidity, IHasClientControlledContainers, IController, IViewController, IHasUniversalID

Constructors

IfThenBlock()

Declaration
public IfThenBlock()

IfThenBlock(LegalAction)

Declaration
public IfThenBlock(LegalAction action)
Parameters
Type Name Description
LegalAction action

Properties

ControllerID

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

ElseChosen

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

If

Declaration
public SetOfConditions If { get; set; }
Property Value
Type Description
SetOfConditions

Then

Declaration
public ControllerList<LegalAction> Then { get; set; }
Property Value
Type Description
ControllerList<LegalAction>

Methods

DescribeFull(Boolean)

Declaration
public LocString DescribeFull(bool isElse)
Parameters
Type Name Description
System.Boolean isElse
Returns
Type Description
LocString

TryPerform(Law, GameAction, AccountChangeSet, LawSection, Int32, LocStringBuilder)

Declaration
public PostResult TryPerform(Law law, GameAction action, AccountChangeSet acc, LawSection section, int index, LocStringBuilder sbDebug)
Parameters
Type Name Description
Law law
GameAction action
AccountChangeSet acc
LawSection section
System.Int32 index
LocStringBuilder sbDebug
Returns
Type Description
PostResult

Events

PropertyChanged

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

Implements

System.ComponentModel.INotifyPropertyChanged
IValidity
IHasClientControlledContainers
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
☀
☾