-
Notifications
You must be signed in to change notification settings - Fork 0
Utility Classes
绿豆汤 edited this page May 11, 2026
·
1 revision
KernelExtensions provides a set of static utility classes for use by extension developers in their code.
- Path:
KernelExtensions.Utility.ActionHelper - Method:
ExecuteActionFile(OS os, string actionFilePath, string extensionRoot) - Purpose: Loads and executes an action file, unifying the action execution logic between
CustomTrialExeand the VM attack system.
- Path:
KernelExtensions.Utility.MusicPathResolver - Method:
ResolveMusicPath(string musicPath, string extensionRoot) - Purpose: Resolves a music string from configuration into a path recognised by
MusicManager.transitionToSong. Supports plain filenames, extension directories, DLC music, and vanilla music.
- Path:
KernelExtensions.Utility.SoundHelper - Method:
PlaySound(OS os, string soundPath, float volume, float pitch, float pan) - Purpose: Plays a WAV sound effect file from within the extension directory.
- Path:
KernelExtensions.Utility.FlowColorUtils - Methods:
GetFlowingRainbowColor(float position, float baseTime),HslToRgbSimple(double h, double s, double l) - Purpose: Provides time‑based flowing rainbow colour calculations, used for the main menu watermark and other dynamic rainbow colour needs.
KernelExtensions Wiki · GitHub Repository · Licensed under MIT