Class SelectionHandler
The selection handler is responsible for handling the selection of objects, walls, roofs and stairs in the game world through pixel-perfect selection with the mouse using a RenderTarget that assigns a unique color to each object. For modders, this class holds various events that can be subscribed to in order to be notified when the selected object changes.
public class SelectionHandler
- Inheritance
-
SelectionHandler
- Inherited Members
- Extension Methods
Events
SelectedObjectChanged
An event that is invoked when the selected object changes. The first parameter is the previously selected object, and the second parameter is the newly selected object.
public static event Action<MapObject, MapObject> SelectedObjectChanged
Event Type
SelectedRoofChanged
An event that is invoked when the selected roof changes. The first parameter is the previously selected roof, and the second parameter is the newly selected roof.
public static event Action<Roof, Roof> SelectedRoofChanged
Event Type
SelectedStairsChanged
An event that is invoked when the selected stairs change. The first parameter is the previously selected stairs, and the second parameter is the newly selected stairs.
public static event Action<Stairs, Stairs> SelectedStairsChanged
Event Type
SelectedWallChanged
An event that is invoked when the selected wall changes. The first parameter is the previously selected wall, and the second parameter is the newly selected wall.
public static event Action<WallLike, WallLike> SelectedWallChanged