Skip to content

Commit

Permalink
Create FactionManagerPatches.cs (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettluskey committed Jun 11, 2023
1 parent bfd13b6 commit 69c8944
Showing 1 changed file with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using HarmonyLib;
using TaleWorlds.CampaignSystem;

namespace GameInterface.Services.FactionManagerService.Patches
{
/// <summary>
/// Disables all functionality for <see cref="FactionManager"/>
/// </summary>
[HarmonyPatch(typeof(FactionManager))]
internal class FactionManagerPatches
{
[HarmonyPatch("AddStance")]
[HarmonyPrefix]
private static bool AddStancePrefix()
{
return false;
}

[HarmonyPatch("RemoveStance")]
[HarmonyPrefix]
private static bool RemoveStancePrefix()
{
return false;
}

[HarmonyPatch("SetStance")]
[HarmonyPrefix]
private static bool SetStancePrefix()
{
return false;
}
}
}

0 comments on commit 69c8944

Please sign in to comment.