From 9dfb40d7bf8492ba1329a08771d19942b264be32 Mon Sep 17 00:00:00 2001
From: XtraCube <72575280+XtraCube@users.noreply.github.com>
Date: Wed, 24 Sep 2025 07:12:34 -0400
Subject: [PATCH] add new role stubs
---
MiraAPI/Patches/Stubs/RoleBehaviourStubs.cs | 73 +++++++++++++++++++++
1 file changed, 73 insertions(+)
diff --git a/MiraAPI/Patches/Stubs/RoleBehaviourStubs.cs b/MiraAPI/Patches/Stubs/RoleBehaviourStubs.cs
index fe04962..356bf68 100644
--- a/MiraAPI/Patches/Stubs/RoleBehaviourStubs.cs
+++ b/MiraAPI/Patches/Stubs/RoleBehaviourStubs.cs
@@ -1,5 +1,6 @@
using System.Runtime.CompilerServices;
using HarmonyLib;
+using Hazel;
using Il2CppSystem.Text;
namespace MiraAPI.Patches.Stubs;
@@ -229,4 +230,76 @@ public static class RoleBehaviourStubs
{
// nothing needed
}
+
+ ///
+ /// Stub method for RoleBehaviour.UseSecondaryAbility.
+ ///
+ /// The RoleBehaviour object.
+ [HarmonyReversePatch]
+ [HarmonyPatch(typeof(RoleBehaviour), nameof(RoleBehaviour.UseSecondaryAbility))]
+ [MethodImpl(MethodImplOptions.NoInlining)]
+ public static void UseSecondaryAbility(RoleBehaviour instance)
+ {
+ // nothing needed
+ }
+
+ ///
+ /// Stub method for RoleBehaviour.OnRoleSet.
+ ///
+ /// The RoleBehaviour object.
+ [HarmonyReversePatch]
+ [HarmonyPatch(typeof(RoleBehaviour), nameof(RoleBehaviour.OnRoleSet))]
+ [MethodImpl(MethodImplOptions.NoInlining)]
+ public static void OnRoleSet(RoleBehaviour instance)
+ {
+ // nothing needed
+ }
+
+ ///
+ /// Stub method for RoleBehaviour.InitializeMeetingAbilityButton.
+ ///
+ /// The RoleBehaviour object.
+ [HarmonyReversePatch]
+ [HarmonyPatch(typeof(RoleBehaviour), nameof(RoleBehaviour.InitializeMeetingAbilityButton))]
+ [MethodImpl(MethodImplOptions.NoInlining)]
+ public static void InitializeMeetingAbilityButton(RoleBehaviour instance)
+ {
+ // nothing needed
+ }
+
+ ///
+ /// Stub method for RoleBehaviour.FindClosestBody.
+ ///
+ /// The RoleBehaviour object.
+ [HarmonyReversePatch]
+ [HarmonyPatch(typeof(RoleBehaviour), nameof(RoleBehaviour.FindClosestBody))]
+ [MethodImpl(MethodImplOptions.NoInlining)]
+ public static DeadBody FindClosestBody(RoleBehaviour instance)
+ {
+ return null!;
+ }
+
+ ///
+ /// Stub method for RoleBehaviour.HandleRoleRpc.
+ ///
+ /// The RoleBehaviour object.
+ [HarmonyReversePatch]
+ [HarmonyPatch(typeof(RoleBehaviour), nameof(RoleBehaviour.HandleRoleRpc))]
+ [MethodImpl(MethodImplOptions.NoInlining)]
+ public static void HandleRoleRpc(RoleBehaviour instance, byte callId, MessageReader reader)
+ {
+ // nothing needed
+ }
+
+ ///
+ /// Stub method for RoleBehaviour.KillAnimSpecialSetup.
+ ///
+ /// The RoleBehaviour object.
+ [HarmonyReversePatch]
+ [HarmonyPatch(typeof(RoleBehaviour), nameof(RoleBehaviour.KillAnimSpecialSetup))]
+ [MethodImpl(MethodImplOptions.NoInlining)]
+ public static void KillAnimSpecialSetup(RoleBehaviour instance, DeadBody deadBody, PlayerControl killer, PlayerControl victim)
+ {
+ // nothing needed
+ }
}