Table of Contents

Class ResoniteInspectorMonkey<TMonkey, TEvent, TWorker>

Namespace
MonkeyLoader.Resonite.UI
Assembly
MonkeyLoader.Resonite.Integration.dll

Represents the base class for patchers that run after Resonite's assemblies have been loaded and that hook into the game's lifecycle.
Specifically, to act as an event handler for BuildInspectorEvents for FrooxEngine.Workers of a specific (base) type.

public abstract class ResoniteInspectorMonkey<TMonkey, TEvent, TWorker> : ResoniteEventHandlerMonkey<TMonkey, TEvent>, IResoniteMonkey, IMonkey, IRun, IShutdown, IComparable<IMonkey>, INestedIdentifiable<Mod>, INestedIdentifiable, IIdentifiable, IEventHandler<TEvent>, IPrioritizable where TMonkey : ResoniteInspectorMonkey<TMonkey, TEvent, TWorker>, new() where TEvent : BuildInspectorEvent where TWorker : Worker

Type Parameters

TMonkey

The type of the actual patcher.

TEvent
TWorker
Inheritance
MonkeyBase<TMonkey>
Monkey<TMonkey>
ResoniteInspectorMonkey<TMonkey, TEvent, TWorker>
Implements
Derived
Inherited Members
Extension Methods

Remarks

Game assemblies and their types can be directly referenced from these.
Contains useful overridable methods that are hooked to different points in the game's lifecycle.

Constructors

ResoniteInspectorMonkey()

Allows creating only a single TMonkey instance.

protected ResoniteInspectorMonkey()

Methods

AppliesTo(TEvent)

Determines whether the given event should be handled by this event handler based on its data.

protected override bool AppliesTo(TEvent eventData)

Parameters

eventData TEvent

An object containing all the relevant information for the event.

Returns

bool

true if this event handler applies to the event; otherwise, false.

Remarks

Ensures that the worker given in the event is a TWorker.