Show / Hide Table of Contents

Class CivicsCommands

Inheritance
System.Object
CivicsCommands
Namespace: Eco.Gameplay.Civics
Assembly: Eco.Gameplay.dll
Syntax
[ChatCommandHandler]
public static class CivicsCommands : Object

Methods

BlacklistDemographic(IChatClient, Demographic, Boolean, User)

Declaration
[ChatSubCommand]
public static void BlacklistDemographic(IChatClient client, Demographic demo, bool set = true, User user = null)
Parameters
Type Name Description
IChatClient client
Demographic demo
System.Boolean set
User user

ChangeDemographic(IChatClient, Boolean, Demographic, Boolean, User)

Declaration
public static void ChangeDemographic(IChatClient client, bool whitelist, Demographic demo, bool set = true, User user = null)
Parameters
Type Name Description
IChatClient client
System.Boolean whitelist
Demographic demo
System.Boolean set
User user

Civics(IChatClient)

Declaration
[ChatCommand("Performs a variety of government operations.")]
public static void Civics(IChatClient chatClient)
Parameters
Type Name Description
IChatClient chatClient

Debug(User, Boolean)

Declaration
[ChatSubCommand]
public static void Debug(User user, bool allUsers = true)
Parameters
Type Name Description
User user
System.Boolean allUsers

Elections(IChatClient)

Declaration
[ChatSubCommand("Civics", "List running elections.")]
public static void Elections(IChatClient client)
Parameters
Type Name Description
IChatClient client

ListDems(IChatClient)

Declaration
[ChatSubCommand]
public static void ListDems(IChatClient chatClient)
Parameters
Type Name Description
IChatClient chatClient

MakeAbandoned(IChatClient, User)

Declaration
[ChatSubCommand]
public static void MakeAbandoned(IChatClient client, User user = null)
Parameters
Type Name Description
IChatClient client
User user

MakeActive(IChatClient, User)

Declaration
[ChatSubCommand]
public static void MakeActive(IChatClient client, User user = null)
Parameters
Type Name Description
IChatClient client
User user

MakeElectedTitle(IChatClient)

Declaration
[ChatSubCommand]
public static void MakeElectedTitle(IChatClient client)
Parameters
Type Name Description
IChatClient client

MyDems(User, User)

Declaration
[ChatSubCommand]
public static void MyDems(User user, User otherUser = null)
Parameters
Type Name Description
User user
User otherUser

ShowGovernment(IChatClient)

Declaration
[ChatSubCommand]
public static void ShowGovernment(IChatClient chatClient)
Parameters
Type Name Description
IChatClient chatClient

ShowTick(IChatClient)

Declaration
[ChatSubCommand]
public static void ShowTick(IChatClient chatClient)
Parameters
Type Name Description
IChatClient chatClient

SpawnGov(IChatClient, Boolean)

Declaration
[ChatSubCommand]
public static void SpawnGov(IChatClient client, bool requireElections = true)
Parameters
Type Name Description
IChatClient client
System.Boolean requireElections

SpawnGov(IChatClient, Nullable<Vector3i>, Boolean, Int32, Boolean, String)

Spawn a Government. It is possible to override the capitol object (used in settlements)

Declaration
public static List<WorldObject> SpawnGov(IChatClient client, Nullable<Vector3i> spawnPos, bool requireElections = true, int tier = 1, bool showMessages = false, string capitolName = "CapitolObject")
Parameters
Type Name Description
IChatClient client
System.Nullable<Vector3i> spawnPos
System.Boolean requireElections
System.Int32 tier
System.Boolean showMessages
System.String capitolName
Returns
Type Description
System.Collections.Generic.List<WorldObject>

SpawnZoningOffice(User, Int32, Int32)

Declaration
[ChatSubCommand]
public static void SpawnZoningOffice(User user, int maps = 3, int districtCount = 100)
Parameters
Type Name Description
User user
System.Int32 maps
System.Int32 districtCount

TickNow(IChatClient)

Declaration
[ChatSubCommand]
public static void TickNow(IChatClient chatClient)
Parameters
Type Name Description
IChatClient chatClient

UpdateDems(IChatClient)

Declaration
[ChatSubCommand]
public static void UpdateDems(IChatClient chatClient)
Parameters
Type Name Description
IChatClient chatClient

WhitelistDemographic(IChatClient, Demographic, Boolean, User)

Declaration
[ChatSubCommand]
public static void WhitelistDemographic(IChatClient client, Demographic demo, bool set = true, User user = null)
Parameters
Type Name Description
IChatClient client
Demographic demo
System.Boolean set
User user
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾