2022-05-14 19:53:00 +01:00
|
|
|
|
using Aki.Reflection.Patching;
|
|
|
|
|
using EFT;
|
|
|
|
|
using System.Reflection;
|
2022-10-19 17:27:45 +01:00
|
|
|
|
using CWX_HalloweenEvent.Changes;
|
2022-05-14 19:53:00 +01:00
|
|
|
|
|
2022-10-19 17:27:45 +01:00
|
|
|
|
namespace CWX_HalloweenEvent.Patches
|
2022-05-14 19:53:00 +01:00
|
|
|
|
{
|
2022-10-19 17:27:45 +01:00
|
|
|
|
public class RaidStartPatch : ModulePatch
|
2022-05-14 19:53:00 +01:00
|
|
|
|
{
|
|
|
|
|
protected override MethodBase GetTargetMethod()
|
|
|
|
|
{
|
2022-05-21 17:48:06 +01:00
|
|
|
|
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()
|
|
|
|
|
{
|
2022-10-19 17:27:45 +01:00
|
|
|
|
EventWeather eventWeather = new EventWeather();
|
|
|
|
|
eventWeather.Enable();
|
2022-05-14 19:53:00 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|