DDNet documentation
Loading...
Searching...
No Matches
CLayerSelector Class Reference

#include <layer_selector.h>

Inheritance diagram for CLayerSelector:
[legend]
Collaboration diagram for CLayerSelector:
[legend]

Public Member Functions

void OnInit (CEditor *pEditor) override
bool SelectByTile ()
void UpdateHoveredTiles ()
Public Member Functions inherited from CEditorComponent
virtual void OnReset ()
virtual void OnMapLoad ()
virtual bool OnInput (const IInput::CEvent &Event)
virtual void OnUpdate ()
void InitSubComponents ()
void RegisterSubComponent (CEditorComponent &Component)
Public Member Functions inherited from CEditorObject
virtual ~CEditorObject ()=default
CEditor * Editor ()
const CEditor * Editor () const
CEditorMap * Map ()
const CEditorMap * Map () const
IInput * Input ()
const IInput * Input () const
IClient * Client ()
const IClient * Client () const
CConfig * Config ()
const CConfig * Config () const
IEngine * Engine ()
const IEngine * Engine () const
IGraphics * Graphics ()
const IGraphics * Graphics () const
ISound * Sound ()
const ISound * Sound () const
ITextRender * TextRender ()
const ITextRender * TextRender () const
IStorage * Storage ()
const IStorage * Storage () const
CUi * Ui ()
const CUi * Ui () const
CRenderMap * RenderMap ()
const CRenderMap * RenderMap () const

Private Attributes

int m_SelectionOffset
std::vector< CHoverTile > m_vHoverTiles

Member Function Documentation

◆ OnInit()

void CLayerSelector::OnInit ( CEditor * pEditor)
overridevirtual

Initialize the component and interface pointers. Needs to be the first function that is called. The default implementation also resets the component.

Reimplemented from CEditorComponent.

◆ SelectByTile()

bool CLayerSelector::SelectByTile ( )

◆ UpdateHoveredTiles()

void CLayerSelector::UpdateHoveredTiles ( )

Member Data Documentation

◆ m_SelectionOffset

int CLayerSelector::m_SelectionOffset
private

◆ m_vHoverTiles

std::vector<CHoverTile> CLayerSelector::m_vHoverTiles
private

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