Ejemplo n.º 1
0
        internal static void fix()
        {
            Hijack.hijack(typeof(Game1).GetMethod(nameof(Game1.performTenMinuteClockUpdate), BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance),
                          typeof(NewGame1).GetMethod(nameof(NewGame1.performTenMinuteClockUpdate), BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance));
            Hijack.hijack(typeof(FarmAnimal).GetMethod(nameof(FarmAnimal.updateWhenCurrentLocation), BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance),
                          typeof(NewFarmAnimal).GetMethod(nameof(NewFarmAnimal.updateWhenCurrentLocation), BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance));

            Hijack.hijack(typeof(BlueprintsMenu).GetMethod(nameof(BlueprintsMenu.receiveLeftClick), BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance),
                          typeof(NewBlueprintsMenu).GetMethod(nameof(NewBlueprintsMenu.receiveLeftClick), BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance));
            // This is causing problems, and doesn't appear to be used?

            /*Hijack.hijack(typeof(   CataloguePage).GetMethod("receiveLeftClick", BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance),
             *            typeof(NewCataloguePage).GetMethod("receiveLeftClick", BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance));
             */
        }
Ejemplo n.º 2
0
 internal static void hijack()
 {
     Hijack.hijack(typeof(Utility).GetMethod("pickFarmEvent", BindingFlags.Static | BindingFlags.Public),
                   typeof(NewUtility).GetMethod("pickFarmEvent", BindingFlags.Static | BindingFlags.Public));
 }
Ejemplo n.º 3
0
 internal static void hijack()
 {
     Hijack.hijack(typeof(MeleeWeapon).GetMethod("drawDuringUse", BindingFlags.Static | BindingFlags.Public),
                   typeof(NewMeleeWeapon).GetMethod("drawDuringUse", BindingFlags.Static | BindingFlags.Public));
 }