ValensHasThePower/Patches.cs

22 lines
495 B
C#

using Aki.Reflection.Patching;
using EFT;
using System.Reflection;
namespace ValensHasThePower
{
public class PatchThePower : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
var result = typeof(GameWorld).GetMethod("OnGameStarted", BindingFlags.Public | BindingFlags.Instance);
return result;
}
[PatchPostfix]
private static void PatchPostFix()
{
PowerOn.Start();
}
}
}