SMAPI/ModLoader/MonoMod/RuntimeDetour/IDetour.cs

16 lines
348 B
C#

using System;
using System.Reflection;
namespace MonoMod.RuntimeDetour {
public interface IDetour : IDisposable {
bool IsValid { get; }
void Apply();
void Undo();
void Free();
MethodBase GenerateTrampoline(MethodBase signature = null);
T GenerateTrampoline<T>() where T : Delegate;
}
}