This commit is contained in:
2025-02-25 20:58:30 +02:00
parent b16c90f4e2
commit c1c879c80c
159 changed files with 298 additions and 172 deletions

View File

@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HarmonyLib;
using MelonLoader;
using StressLevelZero;
using StressLevelZero.Pool;
using UnityEngine;
namespace BoneSync.Patching
{
[HarmonyPatch(typeof(Pool))]
internal class PoolPatches
{
[HarmonyPatch(nameof(Pool.Spawn))]
[HarmonyPostfix]
private static void SpawnPatch(Pool __instance, ref GameObject __result)
{
MelonLogger.Msg("Spawned object: " + __result.name);
}
[HarmonyPatch(nameof(Pool.FlagPooleeForRespawn))]
[HarmonyPostfix]
private static void FlagPooleeForRespawnPatch(Pool __instance, ref GameObject p)
{
MelonLogger.Msg("Flagged object for respawn: " + p.name);
}
}
}