A Unity runtime inspection plugin for fun
Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
|
- using System;
- using IllusionPlugin;
- using UnityEngine;
- using HarmonyLib;
- using System.Reflection;
-
- namespace Dissonance
- {
- public class DissonancePlugin : IllusionPlugin.IEnhancedPlugin
- {
- public static Harmony harmony { get; protected set; }
-
- public string[] Filter { get; } = new string[] { "Gamecraft" };
-
- public string Name { get; } = "Dissonance";
-
- public string Version { get; } = "B";
-
- public string HarmonyID { get; } = "org.git.exmods.modtainers.dissonance";
-
- public void OnApplicationQuit()
- {
- harmony.UnpatchAll(HarmonyID); // likely unnecessary
- Debug.Log(Name + " shutdown complete");
- }
-
- public void OnApplicationStart()
- {
- if (harmony == null)
- {
- harmony = new Harmony(HarmonyID);
- harmony.PatchAll(Assembly.GetExecutingAssembly());
- }
- Debug.Log(Name + " 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();
- }
- }
- }
|