Show / Hide Table of Contents

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 Source

CustomCommands

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>
| Improve this Doc View Source

Instance

The singleton instance of this manager.
Declaration
public static CommandManager Instance { get; }
Property Value
Type Description
CommandManager

Methods

| Improve this Doc View Source

AddConsoleCommand(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
| Improve this Doc View Source

Init()

Initialize console commands that come with Jotunn.
Declaration
public void Init()

Extension Methods

PrefabExtension.FixReferences(Object)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾