Bootstrap completed, hello world in BSIPA logs confirmed
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using IPA;
|
||||
using IPALogger = IPA.Logging.Logger;
|
||||
|
||||
namespace Setlist
|
||||
{
|
||||
[Plugin(RuntimeOptions.SingleStartInit)]
|
||||
public class Plugin
|
||||
{
|
||||
internal static Plugin Instance { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// BSIPA logger (shows in BSIPA console / game logs when verbose).
|
||||
/// </summary>
|
||||
internal static IPALogger Log { get; private set; }
|
||||
|
||||
[Init]
|
||||
public Plugin(IPALogger logger)
|
||||
{
|
||||
Instance = this;
|
||||
Log = logger;
|
||||
}
|
||||
|
||||
[OnStart]
|
||||
public void OnApplicationStart()
|
||||
{
|
||||
Log.Info("Hello World");
|
||||
}
|
||||
|
||||
[OnExit]
|
||||
public void OnApplicationQuit()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user