Show / Hide Table of Contents

Class LawUtil

Inheritance
System.Object
LawUtil
Namespace: Eco.Gameplay.Civics.Laws
Assembly: Eco.Gameplay.dll
Syntax
public static class LawUtil : Object

Methods

AnyTriggerSpecifies(LawSection, Type, String, Object)

Declaration
public static bool AnyTriggerSpecifies(this LawSection section, Type triggerType, string propertyName, object obj)
Parameters
Type Name Description
LawSection section
System.Type triggerType
System.String propertyName
System.Object obj
Returns
Type Description
System.Boolean

AnyTriggerSpecifies(LawSection, Type, String, Type)

Declaration
public static bool AnyTriggerSpecifies(this LawSection section, Type triggerType, string propertyName, Type typeToMatch)
Parameters
Type Name Description
LawSection section
System.Type triggerType
System.String propertyName
System.Type typeToMatch
Returns
Type Description
System.Boolean

CountActiveLawsAtPosition(Vector2i)

Counts the active laws of all settlements at this position.

Declaration
public static int CountActiveLawsAtPosition(Vector2i pos)
Parameters
Type Name Description
Vector2i pos
Returns
Type Description
System.Int32

DescribeActiveLawsAtPosition(Vector2i)

Create a list of all the laws at the given position.

Declaration
public static LocString DescribeActiveLawsAtPosition(Vector2i pos)
Parameters
Type Name Description
Vector2i pos
Returns
Type Description
LocString

GetSectionContainingAction(Law, LegalAction)

Declaration
public static LawSection GetSectionContainingAction(this Law law, LegalAction action)
Parameters
Type Name Description
Law law
LegalAction action
Returns
Type Description
LawSection
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾