Created
July 21, 2018 00:52
-
-
Save M3ales/d6a7e01ce1ebf7f9f9d864fd7d53ff07 to your computer and use it in GitHub Desktop.
My thoughts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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