CWX-mods/Live/CWX_WeatherPatcher/GameWorldPatch.cs
2022-12-25 15:41:36 +00:00

22 lines
546 B
C#

using System.Reflection;
using Aki.Reflection.Patching;
using EFT;
using UnityEngine;
namespace CWX_WeatherPatcher
{
public class GameWorldPatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return typeof(GameWorld).GetMethod("OnGameStarted", BindingFlags.Public | BindingFlags.Instance);
}
[PatchPostfix]
private static void PatchPostFix()
{
Debug.LogError("logging for gameworld patch");
WeatherPatcher.Fix();
}
}
}