using Aki.Reflection.Patching; using System; using System.Reflection; namespace ClodanClientUtils { /* * Abstract class that can be extended to hook up to the Raid startup event after everything has been loaded */ public abstract class BaseRaidStartupPatch : ModulePatch { protected static Type _targetType; protected static MethodBase _method; public BaseRaidStartupPatch() : base() { _targetType = ReflectionUtils.FindFirstEftType("GameWorld"); _method = ReflectionUtils.FindFirstTypeMethod(_targetType, "OnGameStarted"); } protected override MethodBase GetTargetMethod() { return _method; } } }