Table of Contents

Class PlacementActionBarState

Namespace
MoonBark.GridPlacement.Core.State
Assembly
MoonBark.GridPlacement.Core.dll

Pure C# state helper for placement action bar selection. Contains only slot ids and selection rules (no engine or UI types).

public sealed class PlacementActionBarState
Inheritance
PlacementActionBarState
Inherited Members

Constructors

PlacementActionBarState(bool)

public PlacementActionBarState(bool allowMultiSelect)

Parameters

allowMultiSelect bool

Properties

SelectedSlotIds

Currently selected slot ids in deterministic order of selection.

public IReadOnlyList<string> SelectedSlotIds { get; }

Property Value

IReadOnlyList<string>

Methods

SetSlots(IEnumerable<string>)

Sets the available slots and prunes selection for any removed ids.

public void SetSlots(IEnumerable<string> slotIds)

Parameters

slotIds IEnumerable<string>

ToggleSlot(string)

Toggles selection for a slot id based on current mode (single vs multi-select). Unknown ids are ignored.

public void ToggleSlot(string slotId)

Parameters

slotId string