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

Controller for the OSD More...

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

Public Member Functions

void ToggleLighting ()
 Toggles the LightSystem MeshRenderer to show/hide the shadow mask More...
 
void SetModifyRadiusValue ()
 Called when the ModifyRadiusSlider changes - Sets the modifying radius More...
 
void ToggleVisibility (int index)
 Called when a visibility toggle is clicked - Toggles the visibility of that specific layer More...
 
void LayerSelected (int index)
 Called when a LayerToggle is clicked - Sets the options for the BlockList dropdown and sets the selected layer(s) More...
 
void SetSelectedLayers ()
 Sets the current selected layer(s) and sets the current selected block More...
 
void SetSelectedBlock ()
 Sets the current selected block More...
 
void ToggleBuild ()
 Called by the ModdifyToggles - Toggles properties for building or destroying blocks More...
 
void SaveBlockData ()
 
void SetSelectedBlockText (int x, int y)
 Sets the text of the current selected block position More...
 
void SetNumChunksText (int numChunks)
 Sets the text of the current number of loaded chunks More...
 
void SetNumBlocksText (int numBlocks)
 Sets the text of the total number of blocks in the world More...
 
void SetFPSText (int fps)
 Sets the current frames-per-second of the game More...
 

Properties

float UpdateRate [get, set]
 Controls the rate at which the OSD updates the dynamic Text objects More...
 
- Properties inherited from TerrainEngine2D.MonoBehaviourSingleton< OSDController >
static T Instance [get]
 

Additional Inherited Members

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

Detailed Description

Controller for the OSD

Member Function Documentation

◆ LayerSelected()

void TerrainEngine2D.OSDController.LayerSelected ( int  index)

Called when a LayerToggle is clicked - Sets the options for the BlockList dropdown and sets the selected layer(s)

Parameters
indexIndex of the selected layer

◆ SaveBlockData()

void TerrainEngine2D.OSDController.SaveBlockData ( )

◆ SetFPSText()

void TerrainEngine2D.OSDController.SetFPSText ( int  fps)

Sets the current frames-per-second of the game

Parameters
fpsCurrent Frames-Per-Second (FPS)

◆ SetModifyRadiusValue()

void TerrainEngine2D.OSDController.SetModifyRadiusValue ( )

Called when the ModifyRadiusSlider changes - Sets the modifying radius

◆ SetNumBlocksText()

void TerrainEngine2D.OSDController.SetNumBlocksText ( int  numBlocks)

Sets the text of the total number of blocks in the world

Parameters
numBlocksTotal number of blocks

◆ SetNumChunksText()

void TerrainEngine2D.OSDController.SetNumChunksText ( int  numChunks)

Sets the text of the current number of loaded chunks

Parameters
numChunksNumber of chunks

◆ SetSelectedBlock()

void TerrainEngine2D.OSDController.SetSelectedBlock ( )

Sets the current selected block

◆ SetSelectedBlockText()

void TerrainEngine2D.OSDController.SetSelectedBlockText ( int  x,
int  y 
)

Sets the text of the current selected block position

Parameters
xX coordinate
yY coordinate

◆ SetSelectedLayers()

void TerrainEngine2D.OSDController.SetSelectedLayers ( )

Sets the current selected layer(s) and sets the current selected block

◆ ToggleBuild()

void TerrainEngine2D.OSDController.ToggleBuild ( )

Called by the ModdifyToggles - Toggles properties for building or destroying blocks

◆ ToggleLighting()

void TerrainEngine2D.OSDController.ToggleLighting ( )

Toggles the LightSystem MeshRenderer to show/hide the shadow mask

◆ ToggleVisibility()

void TerrainEngine2D.OSDController.ToggleVisibility ( int  index)

Called when a visibility toggle is clicked - Toggles the visibility of that specific layer

Parameters
indexThe index of the selected layer

Property Documentation

◆ UpdateRate

float TerrainEngine2D.OSDController.UpdateRate
getset

Controls the rate at which the OSD updates the dynamic Text objects


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