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
Methods
SetMode(GridMode)
Sets the current GridBuilding mode. No-op if the mode is unchanged.
void SetMode(GridMode mode)
Parameters
modeGridModeThe new mode to set.
Events
ModeChanged
Fired whenever the primary GridBuilding mode changes.
event EventHandler<ModeChangedEvent>? ModeChanged