Files
gregExtractor/generated-template/SmokeMod/Patches/Economy/ComputerShop_BuyNewItemPatch.cs
T

22 lines
672 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.BuyNewItem))]
public static class ComputerShop_BuyNewItemPatch
{
// 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.BuyNewItem", new { instance = __instance });
}
}