Guest User

Untitled

a guest
Jul 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. using System.Reflection;
  2. using System;
  3.  
  4. namespace Bookcase.Patches {
  5.  
  6. /// <summary>
  7. /// This interface is used to mark a class as a loadable patch by Bookcase's patch loader.
  8. /// </summary>
  9. internal interface IGamePatch {
  10.  
  11. /// <summary>
  12. /// Gets the type that this patch is targeting. You can just use typeof.
  13. /// </summary>
  14. /// <returns>The type this patch is attempting to modify.</returns>
  15. Type TargetType { get; };
  16.  
  17. /// <summary>
  18. /// Gets the target method to patch.
  19. /// </summary>
  20. /// <returns>The method to apply the patches to.</returns>
  21. MethodInfo TargetMethod { get; };
  22. }
  23. }
Add Comment
Please, Sign In to add comment