Table of Contents

Class ConfiguredEarlyMonkey<TMonkey, TConfigSection>

Namespace
MonkeyLoader.Patching
Assembly
MonkeyLoader.dll

Represents the base class for pre-patchers that modify a game's assemblies in memory before they get loaded, while using a TConfigSection ConfigSection.
Game assemblies and their types must not be directly referenced from these.

public abstract class ConfiguredEarlyMonkey<TMonkey, TConfigSection> : EarlyMonkey<TMonkey>, IEarlyMonkey, IConfiguredMonkey<TConfigSection>, IConfiguredMonkey, IMonkey, IRun, IShutdown, IComparable<IMonkey>, INestedIdentifiable<Mod>, INestedIdentifiable, IIdentifiable, IAuthorable where TMonkey : ConfiguredEarlyMonkey<TMonkey, TConfigSection>, new() where TConfigSection : ConfigSection, new()

Type Parameters

TMonkey

The type of the actual patcher.

TConfigSection

The type of the config section to load.

Inheritance
MonkeyBase<TMonkey>
EarlyMonkey<TMonkey>
ConfiguredEarlyMonkey<TMonkey, TConfigSection>
Implements
IConfiguredMonkey<TConfigSection>
Inherited Members
Extension Methods

Constructors

ConfiguredEarlyMonkey()

Allows creating only a single TMonkey instance.

protected ConfiguredEarlyMonkey()

Properties

ConfigSection

Gets the loaded config section for this pre-patcher after it has been prepared.

public static TConfigSection ConfigSection { get; }

Property Value

TConfigSection

Methods

Prepare()

Lets the pre-patcher make any necessary preparations before processing starts.
Return true to indicate that patching can go ahead.

protected override bool Prepare()

Returns

bool

Whether patching can go ahead.

Remarks

By default: Loads this pre-patcher's TConfigSection ConfigSection and returns true.