LiamGaming-ConsoleLibrary icon

ConsoleLibrary

Lets other mods add dev-console commands. Passive registry, no mod scanning. Optional mini-markdown output.

Last updated 7 hours ago
Total downloads 0
Total rating 0 
Categories Tools Libraries
Dependency string LiamGaming-ConsoleLibrary-1.1.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305

README

Console Library

Lets other Lucky Shot mods add their own dev-console commands.

  • Passive: mods call ConsoleCommands.Register(...) themselves. No scanning.
  • Custom commands run as fallback (only on "Unknown command"). Built-ins win.
  • help() lists custom commands automatically.
  • Optional mini-markdown for pretty output: Results.Md("# Title\n- a: x").

For mod authors:

ConsoleCommands.Register("hello",
    args => new DeveloperConsoleCommandResult(true, "hi!"),
    "Says hi.", "hello()");

Requires BepInEx 5. Install: put LuckyShotConsoleLibrary.dll in BepInEx/plugins/.