CWX-mods/Live/CWX_WeatherPatcher/CustomGlobalFogPatch.cs
2022-08-19 17:27:56 +01:00

20 lines
530 B
C#

using Aki.Reflection.Patching;
using System.Reflection;
namespace CWX_WeatherPatcher
{
class CustomGlobalFogPatch : ModulePatch // MAKES CHANGES TO CUSTOMGLOBALFOG
{
protected override MethodBase GetTargetMethod()
{
return typeof(CustomGlobalFog).GetMethod("Start", BindingFlags.NonPublic | BindingFlags.Instance);
}
[PatchPostfix]
private static void PostFixPatch(ref CustomGlobalFog __instance)
{
__instance.FuncStart = 0f;
}
}
}