ll
This commit is contained in:
35
BoneSync/Patching/PoolPatches.cs
Normal file
35
BoneSync/Patching/PoolPatches.cs
Normal 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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user