Class CommandManager
Manager for handling custom console and chat commands.
Inheritance
System.Object
CommandManager
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Jotunn.Managers
Assembly: Jotunn.dll
Syntax
public class CommandManager : IManager
Properties
| Improve this Doc View SourceCustomCommands
A list of all the custom console commands that have been added to the game through this manager,
either by Jotunn or by mods using Jotunn.
Declaration
public ReadOnlyCollection<ConsoleCommand> CustomCommands { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<ConsoleCommand> |
Instance
The singleton instance of this manager.
Declaration
public static CommandManager Instance { get; }
Property Value
Type | Description |
---|---|
CommandManager |
Methods
| Improve this Doc View SourceAddConsoleCommand(ConsoleCommand)
Adds a new console command to Valheim.
Declaration
public void AddConsoleCommand(ConsoleCommand cmd)
Parameters
Type | Name | Description |
---|---|---|
ConsoleCommand | cmd | The console command to add |
Init()
Initialize console commands that come with Jotunn.
Declaration
public void Init()