Table of Contents

Class ResoniteInspectorMonkey<TMonkey, TEvent>

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(n open) generic base type.

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

Type Parameters

TMonkey

The type of the actual patcher.

TEvent
Inheritance
MonkeyBase<TMonkey>
Monkey<TMonkey>
ResoniteInspectorMonkey<TMonkey, TEvent>
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(Type)

Allows creating only a single TMonkey instance of this custom inspector segment that gets added to FrooxEngine.WorkerInspectors for a given (open) generic base type.

protected ResoniteInspectorMonkey(Type baseType)

Parameters

baseType Type

The (open) generic base type to check for.

Exceptions

ArgumentException

When the baseType isn't generic.

Properties

BaseType

Gets the generic type definition of the base type.

public Type BaseType { get; }

Property Value

Type

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 derives from the base type.