This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
beatsaber-scoretracker/Mod/Plugin.cs
2024-08-06 23:57:47 +01:00

33 lines
668 B
C#

using IPA;
using ScoreTracker.Common;
using IPALogger = IPA.Logging.Logger;
namespace ScoreTracker
{
[Plugin(RuntimeOptions.SingleStartInit)]
public class Plugin
{
internal static Plugin Instance { get; private set; }
[Init]
public Plugin(IPALogger logger)
{
Instance = this;
Logger.Log = logger; // Setup the logger
}
[OnStart]
public void OnApplicationStart()
{
Logger.Log.Info("OnApplicationStart");
}
[OnExit]
public void OnApplicationQuit()
{
Logger.Log.Info("OnApplicationQuit");
}
}
}