Table of Contents

Interface ISelectionService

Namespace
AcDream.Plugin.Abstractions
Assembly
AcDream.Plugin.Abstractions.dll

Read/write access to the client's single selected object -- the target highlighted in the world and used by the client's own targeted actions.

public interface ISelectionService

Properties

PreviousObjectId

The object that was selected immediately before the current one, or null if there is no such earlier selection.

uint? PreviousObjectId { get; }

Property Value

uint?

SelectedObjectId

The currently selected object, or null when nothing is selected.

uint? SelectedObjectId { get; }

Property Value

uint?

Methods

Clear()

Clears the selection. Returns false when nothing was selected.

bool Clear()

Returns

bool

Select(uint)

Selects an object. Passing zero clears the selection instead. Returns false when that object was already the selected one, so nothing changed.

bool Select(uint objectId)

Parameters

objectId uint

Returns

bool

Events

Changed

Raised whenever the selection changes, including when it is cleared.

event Action<SelectionChangedEvent> Changed

Event Type

Action<SelectionChangedEvent>