Example #1
0
        static void Main(string[] args)
        {
            var harmony = HarmonyInstance.Create("io.mission.harmonytest");

            harmony.PatchAll(Assembly.GetExecutingAssembly());
            HarmonyTestClass test = new HarmonyTestClass();

            Console.WriteLine("HarmonyTestIntProperty = " + test.HarmonyTestIntProperty);
            Console.WriteLine("HarmonyTestBoolProperty = " + test.HarmonyTestBoolProperty);
        }
Example #2
0
 public static void Postfix(HarmonyTestClass __instance)
 {
     System.Console.WriteLine("patched HarmonyTestBoolProperty");
 }