24 lines
691 B
C#
24 lines
691 B
C#
|
using Aki.Reflection.Patching;
|
|||
|
using System;
|
|||
|
using System.Reflection;
|
|||
|
|
|||
|
namespace ClodanClientUtils
|
|||
|
{
|
|||
|
/*
|
|||
|
* Abstract class that can be extended to hook up to the Raid finish event
|
|||
|
*/
|
|||
|
public abstract class BaseRaidFinishedPatch : ModulePatch
|
|||
|
{
|
|||
|
protected static Type _targetType;
|
|||
|
protected static MethodBase _method;
|
|||
|
public BaseRaidFinishedPatch() : base()
|
|||
|
{
|
|||
|
_targetType = ReflectionUtils.FindFirstEftType("LocalGame");
|
|||
|
_method = ReflectionUtils.FindFirstTypeMethod(_targetType, "method_12");
|
|||
|
}
|
|||
|
protected override MethodBase GetTargetMethod()
|
|||
|
{
|
|||
|
return _method;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|