-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlugin.cs
35 lines (31 loc) · 1.13 KB
/
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 BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using System.Reflection;
using Nautilus.Handlers;
namespace JukeboxSpotify
{
[BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
[BepInDependency("com.snmodding.nautilus")]
public class Plugin : BaseUnityPlugin
{
public new static ManualLogSource Logger { get; private set; }
public static JukeboxConfig config { get; set; }
private static Assembly Assembly { get; } = Assembly.GetExecutingAssembly();
private void Awake()
{
// set project-scoped logger instance
Logger = base.Logger;
// Initialize custom prefabs
//InitializePrefabs();
config = OptionsPanelHandler.RegisterModOptions<JukeboxConfig>();
// register harmony patches, if there are any
Harmony.CreateAndPatchAll(Assembly, $"{PluginInfo.PLUGIN_GUID}");
Logger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded!");
}
//private void InitializePrefabs()
//{
// YeetKnifePrefab.Register();
//}
}
}