Terrain Engine 2D  1.10
A 2D Block Engine
TerrainEngine2D.WorldInputHandler Class Reference

Example** Handles input for the World Modifier More...

Inheritance diagram for TerrainEngine2D.WorldInputHandler:
TerrainEngine2D.MonoBehaviourSingleton< WorldInputHandler >

Public Member Functions

void SetSelectedLayer (byte layer)
 Set the current selected layer More...
 
bool AddSelectedLayer (byte layer)
 Add a layer to the list of selected layers More...
 
void ClearSelectedLayers ()
 Clears all the selected layers More...
 

Properties

bool IsBuilding [get, set]
 Whether terrain will be built on click If this is false, terrain will be destroyed on click More...
 
byte SelectedBlock [get, set]
 Current selected block of the current selected layer (used when building) More...
 
List< byte > SelectedLayers [get]
 The current selected BlockLayers More...
 
int MaxModifyRadius [get]
 The maximum size of the world modifying radius More...
 
int ModifyRadius [get, set]
 The radius for modifying blocks More...
 
int XGridPosition [get]
 X position of the cursor in grid coordinates More...
 
int YGridPosition [get]
 Y position of the cursor in grid coordinates More...
 
- Properties inherited from TerrainEngine2D.MonoBehaviourSingleton< WorldInputHandler >
static T Instance [get]
 

Additional Inherited Members

- Protected Member Functions inherited from TerrainEngine2D.MonoBehaviourSingleton< WorldInputHandler >
virtual void Awake ()
 

Detailed Description

Example** Handles input for the World Modifier

Member Function Documentation

◆ AddSelectedLayer()

bool TerrainEngine2D.WorldInputHandler.AddSelectedLayer ( byte  layer)

Add a layer to the list of selected layers

Parameters
layerIndex of the layer to be added
Returns
Returns true if the layer was successfully added

◆ ClearSelectedLayers()

void TerrainEngine2D.WorldInputHandler.ClearSelectedLayers ( )

Clears all the selected layers

◆ SetSelectedLayer()

void TerrainEngine2D.WorldInputHandler.SetSelectedLayer ( byte  layer)

Set the current selected layer

Parameters
layerIndex of the selected layer

Property Documentation

◆ IsBuilding

bool TerrainEngine2D.WorldInputHandler.IsBuilding
getset

Whether terrain will be built on click If this is false, terrain will be destroyed on click

◆ MaxModifyRadius

int TerrainEngine2D.WorldInputHandler.MaxModifyRadius
get

The maximum size of the world modifying radius

◆ ModifyRadius

int TerrainEngine2D.WorldInputHandler.ModifyRadius
getset

The radius for modifying blocks

◆ SelectedBlock

byte TerrainEngine2D.WorldInputHandler.SelectedBlock
getset

Current selected block of the current selected layer (used when building)

◆ SelectedLayers

List<byte> TerrainEngine2D.WorldInputHandler.SelectedLayers
get

The current selected BlockLayers

◆ XGridPosition

int TerrainEngine2D.WorldInputHandler.XGridPosition
get

X position of the cursor in grid coordinates

◆ YGridPosition

int TerrainEngine2D.WorldInputHandler.YGridPosition
get

Y position of the cursor in grid coordinates


The documentation for this class was generated from the following file: