Table of Contents

Class SelectionHandler

Namespace
TinyLife.Utilities
Assembly
Tiny Life.dll

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

Action<MapObject, MapObject>

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

Action<Roof, Roof>

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

Action<Stairs, Stairs>

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

Event Type

Action<WallLike, WallLike>