Files
BoneSync/BoneSync/Patching/PoolPatches.cs
2025-02-27 16:26:04 +02:00

42 lines
1.1 KiB
C#

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);
}
[HarmonyPatch(nameof(Pool.InstantiatePoolee))]
[HarmonyPostfix]
private static void InstantiatePooleePatch(Pool __instance, ref Poolee __result)
{
MelonLogger.Msg("Instantiated object: " + __result.name);
}
}*/
}