Class LawUtil
Inheritance
System.Object
LawUtil
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
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
Returns
GetSectionContainingAction(Law, LegalAction)
Declaration
public static LawSection GetSectionContainingAction(this Law law, LegalAction action)
Parameters
Returns