2022-05-14 19:53:00 +01:00
|
|
|
|
using System.Reflection;
|
|
|
|
|
using Aki.Reflection.Patching;
|
|
|
|
|
using EFT;
|
2022-12-25 15:41:36 +00:00
|
|
|
|
using UnityEngine;
|
2022-05-14 19:53:00 +01:00
|
|
|
|
|
2022-10-19 17:27:45 +01:00
|
|
|
|
namespace CWX_WeatherPatcher
|
2022-05-14 19:53:00 +01:00
|
|
|
|
{
|
2022-05-25 13:36:03 +01:00
|
|
|
|
public class GameWorldPatch : 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
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[PatchPostfix]
|
|
|
|
|
private static void PatchPostFix()
|
|
|
|
|
{
|
2022-12-25 15:41:36 +00:00
|
|
|
|
Debug.LogError("logging for gameworld patch");
|
2022-10-19 17:27:45 +01:00
|
|
|
|
WeatherPatcher.Fix();
|
2022-05-14 19:53:00 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|