22 lines
720 B
C#
22 lines
720 B
C#
// UNITY 6: All Unity API calls must run on the Main Thread!
|
|
// Use MelonCoroutines for asynchronous operations.
|
|
// Generated by gregExtractor v1.0 — https://dcmods.com
|
|
|
|
using HarmonyLib;
|
|
|
|
namespace SmokeMod.Patches.Economy;
|
|
|
|
[HarmonyPatch(typeof(Il2Cpp.ComputerShop), nameof(Il2Cpp.ComputerShop.GetNextAvailableSpawnPoint))]
|
|
public static class ComputerShop_GetNextAvailableSpawnPointPatch
|
|
{
|
|
// Example Prefix:
|
|
// private static void Prefix()
|
|
// {
|
|
// }
|
|
|
|
private static void Postfix(object? __instance)
|
|
{
|
|
// TODO: Enable gregCore event bus when NuGet package is available.
|
|
// gregGameApi.Publish("greg.economy.GetNextAvailableSpawnPoint", new { instance = __instance });
|
|
}
|
|
} |