Class RegistrarChatCommands
Inheritance
System.Object
RegistrarChatCommands
Assembly: Eco.Gameplay.dll
Syntax
[ChatCommandHandler]
public class RegistrarChatCommands : Object
Constructors
RegistrarChatCommands()
Declaration
public RegistrarChatCommands()
Methods
Add(User, String)
Declaration
[ChatSubCommand]
public static void Add(User user, string typeName = null)
Parameters
Type |
Name |
Description |
User |
user |
|
System.String |
typeName |
|
Clear(IChatClient, String, Boolean, Boolean)
Declaration
[ChatSubCommand]
public static void Clear(IChatClient client, string typeName = null, bool removeActive = true, bool removeInactive = false)
Parameters
Type |
Name |
Description |
IChatClient |
client |
|
System.String |
typeName |
|
System.Boolean |
removeActive |
|
System.Boolean |
removeInactive |
|
Edit(User, String)
Declaration
[ChatSubCommand]
public static void Edit(User user, string objectType = "")
Parameters
Type |
Name |
Description |
User |
user |
|
System.String |
objectType |
|
EditById(User, Int32)
Declaration
[ChatSubCommand]
public static void EditById(User user, int id = -1)
Parameters
Type |
Name |
Description |
User |
user |
|
System.Int32 |
id |
|
EditObj(User, String, String)
Declaration
[ChatSubCommand]
public static void EditObj(User user, string typeName = null, string partialObjectNameOrId = null)
Parameters
Type |
Name |
Description |
User |
user |
|
System.String |
typeName |
|
System.String |
partialObjectNameOrId |
|
List(IChatClient, String)
Declaration
[ChatSubCommand]
public static void List(IChatClient client, string typeName = null)
Parameters
Type |
Name |
Description |
IChatClient |
client |
|
System.String |
typeName |
|
Objects(IChatClient)
Declaration
[ChatCommand("Shows commands allowing to list, add, remove, and clear many things in the game (including laws, titles, elections, bank accounts, and many more). Ex: /objects remove laws, Law 1")]
public static void Objects(IChatClient client)
Parameters
Remove(IChatClient, String, String)
Declaration
[ChatSubCommand]
public static void Remove(IChatClient client, string typeName = null, string objectNameOrId = null)
Parameters
Type |
Name |
Description |
IChatClient |
client |
|
System.String |
typeName |
|
System.String |
objectNameOrId |
|
RemoveById(IChatClient, Int32)
Declaration
[ChatSubCommand]
public static void RemoveById(IChatClient client, int id = -1)
Parameters
Type |
Name |
Description |
IChatClient |
client |
|
System.Int32 |
id |
|
Extension Methods