예제 #1
0
 public static void AnimalDayUpdate(ref FarmAnimal __instance, ref GameLocation environtment)
 {
     try
     {
         HarmonyPatchExecutors.AnimalDayUpdateExecutor(ref __instance, ref environtment);
     }
     catch (Exception e)
     {
         ModEntry.ModMonitor.Log($"Failed in { nameof(AnimalDayUpdate) }:\n{ e }", LogLevel.Error);
     }
 }
예제 #2
0
 public static void WarpFarmer(ref string locationName, ref int tileX, ref int tileY, ref int facingDirectionAfterWarp, ref bool isStructure)
 {
     try
     {
         HarmonyPatchExecutors.WarpFarmerExecutor(ref locationName, ref tileX, ref tileY,
                                                  ref facingDirectionAfterWarp, ref isStructure);
     }
     catch (Exception e)
     {
         ModEntry.ModMonitor.Log($"Failed in { nameof(WarpFarmer) }:\n{ e }", LogLevel.Error);
     }
 }
예제 #3
0
        public static bool AnimalHouseToolAction(ref AnimalHouse __instance, ref Tool t, ref int tileX, ref int tileY)
        {
            try
            {
                return(HarmonyPatchExecutors.AnimalHouseToolActionExecutor(ref __instance, ref t, ref tileX, ref tileY));
            }
            catch (Exception e)
            {
                ModEntry.ModMonitor.Log($"Failed in { nameof(AnimalHouseToolAction) }:\n{ e }", LogLevel.Error);

                return(true);
            }
        }
예제 #4
0
        public static bool AnimalBehaviors(ref bool __result, ref FarmAnimal __instance, ref GameTime time, ref GameLocation location)
        {
            try
            {
                return(HarmonyPatchExecutors.AnimalBehaviorsExecutor(ref __result, ref __instance, ref time, ref location));
            }
            catch (Exception e)
            {
                ModEntry.ModMonitor.Log($"Failed in { nameof(AnimalBehaviors) }:\n{ e }", LogLevel.Error);

                return(true);
            }
        }