CWX-mods/Live/CWX_GrassCutter/GrassCutterPatch.cs

23 lines
537 B
C#
Raw Normal View History

2023-08-03 10:01:46 +01:00
using Aki.Reflection.Patching;
using EFT;
using System.Reflection;
namespace CWX_GrassCutter
{
public class GrassCutterPatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return typeof(GameWorld).GetMethod("OnGameStarted", BindingFlags.Public | BindingFlags.Instance);
}
[PatchPostfix]
private static void PatchPostFix()
{
GrassCutterScript grassCutter = new GrassCutterScript();
grassCutter.Start();
}
}
}