forked from CWX/CWX-mods
22 lines
546 B
C#
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();
|
|
}
|
|
}
|
|
} |