Class DriveReceiverMenuItemsGenerationEvent
- Namespace
- MonkeyLoader.Resonite.UI.Inspectors
- Assembly
- MonkeyLoader.Resonite.Integration.dll
Represents a dispatchable base class for all FrooxEngine.FieldDriveReceiver<T> and FrooxEngine.ReferenceDriveReceiver<T> FrooxEngine.ContextMenu items generation events.
[DispatchableBaseEvent]
[SubscribableBaseEvent]
public abstract class DriveReceiverMenuItemsGenerationEvent : ContextMenuItemsGenerationEvent, ITargetSyncMemberEvent
- Inheritance
-
DriveReceiverMenuItemsGenerationEvent
- Implements
- Derived
- Inherited Members
Constructors
DriveReceiverMenuItemsGenerationEvent(ContextMenu)
Creates a new FrooxEngine.ContextMenu items generation event with the given
contextMenu and its active FrooxEngine.User.
protected DriveReceiverMenuItemsGenerationEvent(ContextMenu contextMenu)
Parameters
contextMenuContextMenuThe FrooxEngine.ContextMenu being summoned.
Exceptions
- ArgumentNullException
When the
contextMenuis null.- ArgumentException
When the
contextMenu's active FrooxEngine.User is null.
Properties
Slot
Gets the Target's parent FrooxEngine.Slot.
public Slot? Slot { get; }
Property Value
- Slot
Remarks
This may be null if Target's parent is a FrooxEngine.UserComponent.
SlotCore
Internal implementation of Slot.
protected abstract Slot? SlotCore { get; }
Property Value
- Slot
Target
Gets the FrooxEngine.ISyncMember that the summoning
FrooxEngine.FieldDriveReceiver<T> or FrooxEngine.ReferenceDriveReceiver<T> targets.
This will be an FrooxEngine.IField<T> for FrooxEngine.FieldDriveReceiver<T>s,
and an FrooxEngine.ISyncRef<T> for FrooxEngine.ReferenceDriveReceiver<T>s.
public ISyncMember Target { get; }
Property Value
- ISyncMember
TargetCore
Internal implementation of Target.
protected abstract ISyncMember TargetCore { get; }
Property Value
- ISyncMember
User
Gets the Target's Slot's ActiveUser, or its parent FrooxEngine.User if it belongs to a FrooxEngine.UserComponent.
public User? User { get; }
Property Value
- User
Remarks
When the Target's parent is a FrooxEngine.Component
and its Slot does not have an ActiveUser,
this will be null.
UserCore
Internal implementation of User.
protected abstract User? UserCore { get; }
Property Value
- User