-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathRenderideMod.cs
More file actions
40 lines (32 loc) · 1.37 KB
/
Copy pathRenderideMod.cs
File metadata and controls
40 lines (32 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using HarmonyLib;
using ResoniteModLoader;
namespace RenderideMod;
/// <summary>
/// Mod entry point. Owns ResoniteModLoader metadata and the Harmony bootstrap;
/// all patch logic lives under <c>Patches/</c> and all IPC dispatch under <c>Ipc/</c>.
/// </summary>
public class RenderideMod : ResoniteMod
{
/// <summary>Single source of truth for the mod version, mirrored into <see cref="System.Reflection.AssemblyVersionAttribute"/>.</summary>
internal const string VERSION_CONSTANT = "0.1.0";
/// <summary>Stable Harmony id used for <see cref="Harmony.PatchAll()"/> and any future selective unpatch.</summary>
private const string HarmonyId = "dev.doublestyx.renderidemod";
/// <inheritdoc />
public override string Name => "RenderideMod";
/// <inheritdoc />
public override string Author => "DoubleStyx";
/// <inheritdoc />
public override string Version => VERSION_CONSTANT;
/// <inheritdoc />
public override string Link => "https://github.com/DoubleStyx/Renderide";
/// <summary>
/// Called by ResoniteModLoader once FrooxEngine has finished initialising.
/// Applies every <c>[HarmonyPatch]</c> declared in this assembly.
/// </summary>
public override void OnEngineInit()
{
var harmony = new Harmony(HarmonyId);
harmony.PatchAll();
Msg($"RenderideMod {VERSION_CONSTANT} initialised.");
}
}