public TryToRetrieveDialoguePatch(IMonitor monitor, IHarmonyWrapper wrapper, IDialogueLogic dialogueLogic, IWrapperFactory factory) : base(monitor, wrapper) { HarmonyWrapper.Patch( AccessTools.Method(typeof(NPC), "tryToRetrieveDialogue"), new HarmonyMethod(typeof(TryToRetrieveDialoguePatch), "Prefix"), new HarmonyMethod(typeof(TryToRetrieveDialoguePatch), "Postfix")); _dialogueLogic = dialogueLogic; _wrapperFactory = factory; }
protected HarmonyPatch(IMonitor logger, IHarmonyWrapper harmonyWrapper) { HarmonyWrapper = harmonyWrapper; HarmonyWrapper.Create(_baseId + PatchName); Logger = logger; }