Class GridModeExtensions
- Namespace
- MoonBark.GridPlacement.Core.Types
- Assembly
- MoonBark.GridPlacement.Core.dll
Extension methods for working with GridMode values.
public static class GridModeExtensions
- Inheritance
-
GridModeExtensions
- Inherited Members
Methods
IsActiveMode(GridMode)
Returns whether the mode is active (not Off).
public static bool IsActiveMode(this GridMode mode)
Parameters
modeGridModeThe mode to evaluate.
Returns
- bool
trueif the mode is active; otherwisefalse.
IsToolMode(GridMode)
Returns whether the mode represents an active tool mode (e.g. place, move, remove).
public static bool IsToolMode(this GridMode mode)
Parameters
modeGridModeThe mode to evaluate.
Returns
- bool
trueif the mode is a tool mode; otherwisefalse.
ToDisplayString(GridMode)
Converts the mode to a display-friendly string.
public static string ToDisplayString(this GridMode mode)
Parameters
modeGridModeThe mode to convert.
Returns
- string
A display string for the mode.
ToStringValue(GridMode)
Converts the mode to a lowercase string for UI compatibility.
public static string ToStringValue(this GridMode mode)
Parameters
modeGridModeThe mode to convert.
Returns
- string
A lowercase string for the mode.