-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEntryPoint.cs
49 lines (36 loc) · 1.13 KB
/
EntryPoint.cs
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
41
42
43
44
45
46
47
48
using Hikaria.BoosterTweaker.Detours;
using Hikaria.Core.Utilities;
using TheArchive.Core;
using TheArchive.Core.Attributes;
using TheArchive.Core.Localization;
namespace Hikaria.BoosterTweaker;
[ArchiveDependency(Core.PluginInfo.GUID)]
[ArchiveModule(PluginInfo.GUID, PluginInfo.NAME, PluginInfo.VERSION)]
public class EntryPoint : IArchiveModule
{
public void Init()
{
Instance = this;
EasyDetour.CreateAndApply<PersistentInventoryManager__UpdateBoosterImplants__NativeDetour>(out _);
Logs.LogMessage("OK");
}
public void OnExit()
{
}
public void OnLateUpdate()
{
}
public void OnSceneWasLoaded(int buildIndex, string sceneName)
{
}
public bool ApplyHarmonyPatches => false;
public bool UsesLegacyPatches => false;
public ArchiveLegacyPatcher Patcher { get; set; }
public static EntryPoint Instance { get; private set; }
public string ModuleGroup => "Booster Tweaker";
public Dictionary<Language, string> ModuleGroupLanguages => new()
{
{ Language.Chinese, "强化剂调节" },
{ Language.English, "Booster Tweaker" }
};
}