summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.AssemblyRewriters/IInstructionRewriter.cs
blob: b230f227bcd70b7e17072563ef87a19fd83e427d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using Mono.Cecil;
using Mono.Cecil.Cil;

namespace StardewModdingAPI.AssemblyRewriters
{
    /// <summary>Rewrites a CIL instruction for compatibility.</summary>
    public interface IInstructionRewriter : IInstructionFinder
    {
        /*********
        ** Methods
        *********/
        /// <summary>Rewrite a CIL instruction for compatibility.</summary>
        /// <param name="module">The module being rewritten.</param>
        /// <param name="cil">The CIL rewriter.</param>
        /// <param name="instruction">The instruction to rewrite.</param>
        /// <param name="assemblyMap">Metadata for mapping assemblies to the current platform.</param>
        void Rewrite(ModuleDefinition module, ILProcessor cil, Instruction instruction, PlatformAssemblyMap assemblyMap);
    }
}