GCMC/GCMC/GCMCPlugin.cs
NorbiPeti 3e3fd0c767 Cleanup, added INI file and parser lib (merged)
Updated plugin and removed commands that don't really belong here
Using ILMerge to merge the parser into the DLL
2020-05-19 01:16:40 +02:00

47 lines
No EOL
1 KiB
C#

using System.Reflection;
using HarmonyLib;
using IllusionPlugin;
using UnityEngine;
namespace GCMC
{
public class GCMCPlugin : IPlugin
{
public string Name { get; } = "GCMC";
public string Version { get; } = "v0.0.1";
public static Harmony harmony { get; protected set; }
public const string HarmonyID = "io.github.norbipeti.GCMC";
public void OnApplicationStart()
{
if (harmony == null)
{
harmony = new Harmony(HarmonyID);
harmony.PatchAll(Assembly.GetExecutingAssembly());
}
Debug.Log("GCMC loaded");
}
public void OnApplicationQuit()
{
harmony?.UnpatchAll(HarmonyID);
}
public void OnLevelWasLoaded(int level)
{
}
public void OnLevelWasInitialized(int level)
{
}
public void OnUpdate()
{
}
public void OnFixedUpdate()
{
}
}
}