forked from kinsi55/PurpleSabers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlugin.cs
35 lines (31 loc) · 910 Bytes
/
Plugin.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
using HarmonyLib;
using IPA;
using IPA.Config;
using IPA.Config.Stores;
using SiraUtil.Zenject;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using UnityEngine;
using UnityEngine.SceneManagement;
using IPALogger = IPA.Logging.Logger;
namespace PurpleSabers {
[Plugin(RuntimeOptions.SingleStartInit)]
public class Plugin {
internal static Plugin Instance;
internal static IPALogger Log;
[Init]
public Plugin(IPALogger logger, IPA.Config.Config conf, Zenjector zenjector) {
Instance = this;
Log = logger;
Config.Instance = conf.Generated<Config>();
zenjector.Install<Installers.GameInstaller>(Location.StandardPlayer);
}
[OnEnable]
public void OnEnable() {
BeatSaberMarkupLanguage.GameplaySetup.GameplaySetup.instance.AddTab("PurpleSabers", "PurpleSabers.UI.GameSetup.bsml", Config.Instance);
}
}
}