Class ResoniteInspectorMonkey<TMonkey, TEvent>
- Namespace
- MonkeyLoader.Resonite.UI.Inspectors
- 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, IAuthorable, IDisplayable, IEventHandler<TEvent>, IPrioritizable where TMonkey : ResoniteInspectorMonkey<TMonkey, TEvent>, new() where TEvent : BuildInspectorEvent
Type Parameters
TMonkeyThe type of the actual patcher.
TEvent
- Inheritance
-
MonkeyBase<TMonkey>Monkey<TMonkey>ResoniteMonkey<TMonkey>ResoniteEventHandlerMonkey<TMonkey, TEvent>ResoniteInspectorMonkey<TMonkey, TEvent>
- Implements
-
IEventHandler<TEvent>
- 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
baseTypeTypeThe (open) generic base type to check for.
Exceptions
- ArgumentException
When the
baseTypeisn't generic.
Properties
BaseType
Gets the generic type definition of the base type.
public Type BaseType { get; }
Property Value
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
eventDataTEventAn object containing all the relevant information for the event.
Returns
- bool
trueif this event handler applies to the event; otherwise,false.