Skip to content

Instantly share code, notes, and snippets.

@M3ales
Created July 21, 2018 00:52
Show Gist options
  • Save M3ales/d6a7e01ce1ebf7f9f9d864fd7d53ff07 to your computer and use it in GitHub Desktop.
Save M3ales/d6a7e01ce1ebf7f9f9d864fd7d53ff07 to your computer and use it in GitHub Desktop.
My thoughts
using System.Reflection;
using System;
namespace Bookcase.Patches {
/// <summary>
/// This interface is used to mark a class as a loadable patch by Bookcase's patch loader.
/// </summary>
internal interface IGamePatch {
/// <summary>
/// Gets the type that this patch is targeting. You can just use typeof.
/// </summary>
/// <returns>The type this patch is attempting to modify.</returns>
Type TargetType { get; };
/// <summary>
/// Gets the target method to patch.
/// </summary>
/// <returns>The method to apply the patches to.</returns>
MethodInfo TargetMethod { get; };
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment