forked from CWX/CWX-mods
23 lines
571 B
C#
23 lines
571 B
C#
using Aki.Reflection.Patching;
|
|
using EFT;
|
|
using System.Reflection;
|
|
using CWX_HalloweenEvent.Changes;
|
|
|
|
namespace CWX_HalloweenEvent.Patches
|
|
{
|
|
public class RaidStartPatch : ModulePatch
|
|
{
|
|
protected override MethodBase GetTargetMethod()
|
|
{
|
|
return typeof(GameWorld).GetMethod("OnGameStarted", BindingFlags.Public | BindingFlags.Instance);
|
|
}
|
|
|
|
[PatchPostfix]
|
|
public static void PatchPostFix()
|
|
{
|
|
EventWeather eventWeather = new EventWeather();
|
|
eventWeather.Enable();
|
|
}
|
|
}
|
|
}
|