Class CivicsExtensions
Inheritance
System.Object
CivicsExtensions
Namespace: Eco.Gameplay.Civics
Assembly: Eco.Gameplay.dll
Syntax
public static class CivicsExtensions : Object
Methods
IsBrowserVisible(Election)
Declaration
public static bool IsBrowserVisible(this Election election)
Parameters
Type | Name | Description |
---|---|---|
Election | election |
Returns
Type | Description |
---|---|
System.Boolean |
SetDefaults(ElectionProcess)
Values of the provided election process will be replaced with defaults from the config.
Declaration
public static void SetDefaults(this ElectionProcess election)
Parameters
Type | Name | Description |
---|---|---|
ElectionProcess | election |
TrySetValueFromConfig(ElectionProcess, PropertyInfo)
Looks for a property with the same name and replaces its value with the one from the config.
Declaration
public static void TrySetValueFromConfig(this ElectionProcess election, PropertyInfo configProperty)
Parameters
Type | Name | Description |
---|---|---|
ElectionProcess | election | |
System.Reflection.PropertyInfo | configProperty |