using System; using IllusionPlugin; using UnityEngine; using Harmony; using System.Reflection; namespace ExtraCommands { public class Plugin : IllusionPlugin.IEnhancedPlugin { public static HarmonyInstance harmony { get; protected set; } public string[] Filter { get; } = new string[] { "RobocraftX", "Gamecraft", "GamecraftPreview" }; public string Name { get; } = "ExtraCommands"; public string Version { get; } = "v0.0.1"; public string HarmonyID { get; } = "org.git.exmods.extracommands.extracommands"; public void OnApplicationQuit() { harmony.UnpatchAll(HarmonyID); Debug.Log("ExtraCommands shutdown & unpatch complete"); } public void OnApplicationStart() { if (harmony == null) { harmony = HarmonyInstance.Create(HarmonyID); harmony.PatchAll(Assembly.GetExecutingAssembly()); } Debug.Log("ExtraCommands start & patch complete"); } public void OnFixedUpdate() { //throw new NotImplementedException(); } public void OnLateUpdate() { //throw new NotImplementedException(); } public void OnLevelWasInitialized(int level) { //throw new NotImplementedException(); } public void OnLevelWasLoaded(int level) { //throw new NotImplementedException(); } public void OnUpdate() { //throw new NotImplementedException(); } } }