23 lines
571 B
C#
Raw Normal View History

2022-05-14 19:53:00 +01:00
using Aki.Reflection.Patching;
using EFT;
using System.Reflection;
using CWX_HalloweenEvent.Changes;
2022-05-14 19:53:00 +01:00
namespace CWX_HalloweenEvent.Patches
2022-05-14 19:53:00 +01:00
{
public class RaidStartPatch : ModulePatch
2022-05-14 19:53:00 +01:00
{
protected override MethodBase GetTargetMethod()
{
return typeof(GameWorld).GetMethod("OnGameStarted", BindingFlags.Public | BindingFlags.Instance);
2022-05-14 19:53:00 +01:00
}
2022-06-11 22:25:07 +01:00
2022-05-14 19:53:00 +01:00
[PatchPostfix]
public static void PatchPostFix()
{
EventWeather eventWeather = new EventWeather();
eventWeather.Enable();
2022-05-14 19:53:00 +01:00
}
}
}