Class CmdManager
- Namespace
- RichHudFramework.UI
- Assembly
- RichHudClient.dll
Singleton Session Component responsible for managing chat command registration, parsing incoming chat messages, and executing matching commands.
[MySessionComponentDescriptor(MyUpdateOrder.NoUpdate, 0)]
public sealed class CmdManager : MySessionComponentBase, IMyUserInputComponent
- Inheritance
-
CmdManager
- Implements
-
IMyUserInputComponent
- Inherited Members
-
UpdatedBeforeInit()UpdateOnPause
Properties
CommandGroups
A read-only list of all currently registered command groups.
public static IReadOnlyList<ICommandGroup> CommandGroups { get; }
Property Value
Methods
GetOrCreateGroup(string, CmdGroupInitializer)
Retrieves an existing ICommandGroup by its prefix, or creates and registers a new one if it does not exist.
public static ICommandGroup GetOrCreateGroup(string prefix, CmdGroupInitializer groupInitializer = null)
Parameters
prefixstringThe command prefix (e.g., "/mycmd"). Case-insensitive.
groupInitializerCmdGroupInitializerOptional set of commands to register immediately if creating a new group.
Returns
- ICommandGroup
The requested ICommandGroup.