mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-08-06 07:00:23 +08:00
34 lines
923 B
C#
34 lines
923 B
C#
namespace UXAssist.Common.ModFeatures;
|
|
|
|
/// <summary>
|
|
/// Interface implemented by instance mod features registered with <see cref="ModFeatureRegistry"/>.
|
|
/// All lifecycle methods are invoked by the registry in the order described below.
|
|
/// </summary>
|
|
public interface IModFeature
|
|
{
|
|
/// <summary>
|
|
/// Called once when the mod is initialized.
|
|
/// </summary>
|
|
void Init();
|
|
|
|
/// <summary>
|
|
/// Called once after initialization, when the mod should begin active behavior.
|
|
/// </summary>
|
|
void Start();
|
|
|
|
/// <summary>
|
|
/// Called once when the mod is being shut down or re-initialized.
|
|
/// </summary>
|
|
void Uninit();
|
|
|
|
/// <summary>
|
|
/// Called every frame for input handling. Should be lightweight.
|
|
/// </summary>
|
|
void OnInputUpdate();
|
|
|
|
/// <summary>
|
|
/// Called every frame for general updates. Should be lightweight.
|
|
/// </summary>
|
|
void OnUpdate();
|
|
}
|