CWX-mods/Live/CWX_WeatherPatcher/GameWorldPatch.cs

20 lines
468 B
C#
Raw Normal View History

2022-05-14 19:53:00 +01:00
using System.Reflection;
using Aki.Reflection.Patching;
using EFT;
namespace CWX_WeatherPatcher
2022-05-14 19:53:00 +01:00
{
public class GameWorldPatch : 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
}
[PatchPostfix]
private static void PatchPostFix()
{
WeatherPatcher.Fix();
2022-05-14 19:53:00 +01:00
}
}
}