Table of Contents

Class DetourConfig

Namespace
MonoMod.RuntimeDetour
Assembly
MonoMod.RuntimeDetour.dll
A configuration for detours, which allows for the ordering of detours relative to each other.
public class DetourConfig
Inheritance
DetourConfig

Remarks

See the detailed documentation on detour order calculation for specifics on how this affects relative ordering.

Constructors

DetourConfig(string, int?, IEnumerable<string>?, IEnumerable<string>?)
Constructs a DetourConfig with a specific ID, and any of the ordering options.

Properties

After
Gets the detour IDs to run after this detour.
Before
Gets the detour IDs to run before this detour.
Id
Gets the ID of the detours represented by this config. Typically, this will be the name of the mod which creates this detour.
Priority
Gets the priority of the detours represented by this config, if present.

Methods

AddAfter(IEnumerable<string>)
Creates a new DetourConfig which is identical to this one, but with after added to After.
AddAfter(params string[])
Creates a new DetourConfig which is identical to this one, but with after added to After.
AddBefore(IEnumerable<string>)
Creates a new DetourConfig which is identical to this one, but with before added to Before.
AddBefore(params string[])
Creates a new DetourConfig which is identical to this one, but with before added to Before.
WithAfter(IEnumerable<string>)
Creates a new DetourConfig which is identical to this one, but with After equal to after.
WithAfter(params string[])
Creates a new DetourConfig which is identical to this one, but with After equal to after.
WithBefore(IEnumerable<string>)
Creates a new DetourConfig which is identical to this one, but with Before equal to before.
WithBefore(params string[])
Creates a new DetourConfig which is identical to this one, but with Before equal to before.
WithPriority(int?)
Creates a new DetourConfig which is identical to this one, but with Priority equal to priority.