summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.AssemblyRewriters/IInstructionFinder.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/StardewModdingAPI.AssemblyRewriters/IInstructionFinder.cs')
-rw-r--r--src/StardewModdingAPI.AssemblyRewriters/IInstructionFinder.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/StardewModdingAPI.AssemblyRewriters/IInstructionFinder.cs b/src/StardewModdingAPI.AssemblyRewriters/IInstructionFinder.cs
new file mode 100644
index 00000000..47a4247b
--- /dev/null
+++ b/src/StardewModdingAPI.AssemblyRewriters/IInstructionFinder.cs
@@ -0,0 +1,13 @@
+using Mono.Cecil.Cil;
+
+namespace StardewModdingAPI.AssemblyRewriters
+{
+ /// <summary>Finds CIL instructions considered incompatible.</summary>
+ public interface IInstructionFinder
+ {
+ /// <summary>Get whether a CIL instruction matches.</summary>
+ /// <param name="instruction">The IL instruction.</param>
+ /// <param name="platformChanged">Whether the mod was compiled on a different platform.</param>
+ bool IsMatch(Instruction instruction, bool platformChanged);
+ }
+}