Game.Tools.SelectionType
Assembly: Assembly-CSharp
Namespace: Game.Tools
Type: public enum
Base: System.Enum
Summary:
Represents the kinds of selection modes used by in-game tools (e.g., UI or editor tools) to indicate what is currently selected or what the tool operates on. Typical values include no selection, selection of service districts, or selection of map tiles. Useful for tool logic, input handling, and drawing selection overlays.
Fields
-
None
Represents no active selection. Underlying value = 0. Use this when the tool should not be selecting anything. -
ServiceDistrict
Indicates a selection focused on service districts (city service areas/zones). Underlying value = 1. Tools can use this to highlight or edit district boundaries or properties. -
MapTiles
Indicates a selection focused on map tiles (individual terrain or map grid cells). Underlying value = 2. Tools can use this to operate on or visualize per-tile data.
Properties
- This enum defines no properties. (Enums inherit standard members from System.Enum, such as ToString(), HasFlag(), etc.)
Constructors
- Enums have no explicit constructors in C#. The default value for this enum is
SelectionType.None
(0).
Methods
- This enum defines no custom methods. Standard System.Enum methods are available (ToString(), GetNames(), GetValues(), etc.).
Usage Example
using Game.Tools;
public class MySelectionTool
{
private SelectionType currentSelection = SelectionType.None;
public void SetSelection(SelectionType selection)
{
currentSelection = selection;
UpdateSelectionVisuals();
}
private void UpdateSelectionVisuals()
{
switch (currentSelection)
{
case SelectionType.None:
// Hide selection overlays
break;
case SelectionType.ServiceDistrict:
// Draw district boundaries/highlights
break;
case SelectionType.MapTiles:
// Highlight selected map tiles
break;
}
}
}