mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-08-05 10:10:12 +08:00
24 lines
813 B
C#
24 lines
813 B
C#
using HarmonyLib;
|
|
using UXAssist.Common.ModCompat;
|
|
|
|
namespace UXAssist.ModsCompat;
|
|
|
|
class PlanetVeinUtilization
|
|
{
|
|
public const string PlanetVeinUtilizationGuid = "testpostpleaseignore.dsp.planet_vein_utilization";
|
|
|
|
public static bool Run(Harmony harmony)
|
|
{
|
|
if (!ModCompatHelper.TryGetLoadedPluginInfo(PlanetVeinUtilizationGuid, out var pluginInfo)) return false;
|
|
if (!ModCompatHelper.TryGetPluginType(pluginInfo, "PlanetVeinUtilization.PlanetVeinUtilization", out var classType)) return false;
|
|
harmony.Patch(AccessTools.Method(classType, "Awake"),
|
|
new HarmonyMethod(typeof(PlanetVeinUtilization).GetMethod("PatchPlanetVeinUtilizationAwake")));
|
|
return true;
|
|
}
|
|
|
|
public static bool PatchPlanetVeinUtilizationAwake()
|
|
{
|
|
return false;
|
|
}
|
|
}
|