Table of Contents

Interface IModeService

Namespace
MoonBark.GridPlacement.Core.Services.Mode
Assembly
MoonBark.GridPlacement.Core.dll

Core service interface for managing the current GridBuilding mode. Uses the MoonBark.GridPlacement.Core.Services.Mode enum as the single source of truth.

public interface IModeService

Properties

Current

Gets the current GridBuilding mode.

GridMode Current { get; }

Property Value

GridMode

Methods

SetMode(GridMode)

Sets the current GridBuilding mode. No-op if the mode is unchanged.

void SetMode(GridMode mode)

Parameters

mode GridMode

The new mode to set.

Events

ModeChanged

Fired whenever the primary GridBuilding mode changes.

event EventHandler<ModeChangedEvent>? ModeChanged

Event Type

EventHandler<ModeChangedEvent>