DDraceNetwork Docs
CAutoMapper Class Reference

#include <auto_map.h>

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

Classes

struct  CConfiguration
 
struct  CIndexInfo
 
struct  CIndexRule
 
struct  CPosRule
 
struct  CRun
 

Public Member Functions

 CAutoMapper (CEditor *pEditor)
 
void Load (const char *pTileName)
 
void ProceedLocalized (class CLayerTiles *pLayer, int ConfigId, int Seed=0, int X=0, int Y=0, int Width=-1, int Height=-1)
 
void Proceed (class CLayerTiles *pLayer, int ConfigId, int Seed=0, int SeedOffsetX=0, int SeedOffsetY=0)
 
int ConfigNamesNum () const
 
const char * GetConfigName (int Index)
 
bool IsLoaded () const
 
- Public Member Functions inherited from CEditorComponent
virtual bool OnInput (const IInput::CEvent &Event) override
 
void InitSubComponents ()
 
void RegisterSubComponent (CEditorComponent &Component)
 
- Public Member Functions inherited from CEditorObject
virtual ~CEditorObject ()=default
 
virtual void OnInit (CEditor *pEditor)
 
virtual void OnUpdate ()
 
virtual bool OnInput (const IInput::CEvent &Event)
 
virtual void OnRender (CUIRect View)
 
virtual void OnHot ()
 
virtual void OnActive ()
 
virtual void OnReset ()
 
virtual void OnMapLoad ()
 
bool IsHot ()
 
void SetHot ()
 
void UnsetHot ()
 
bool IsActive ()
 
void SetActive ()
 
void SetInactive ()
 
CEditorEditor ()
 
const CEditorEditor () const
 
IInputInput ()
 
IClientClient ()
 
CConfigConfig ()
 
IConsoleConsole ()
 
IEngineEngine ()
 
IGraphicsGraphics ()
 
ISoundSound ()
 
ITextRenderTextRender ()
 
IStorageStorage ()
 
CUiUi ()
 
CRenderToolsRenderTools ()
 

Private Attributes

std::vector< CConfigurationm_vConfigs = {}
 
bool m_FileLoaded = false
 

Constructor & Destructor Documentation

◆ CAutoMapper()

CAutoMapper::CAutoMapper ( CEditor pEditor)
explicit

Member Function Documentation

◆ ConfigNamesNum()

int CAutoMapper::ConfigNamesNum ( ) const
inline

◆ GetConfigName()

const char * CAutoMapper::GetConfigName ( int  Index)

◆ IsLoaded()

bool CAutoMapper::IsLoaded ( ) const
inline

◆ Load()

void CAutoMapper::Load ( const char *  pTileName)

◆ Proceed()

void CAutoMapper::Proceed ( class CLayerTiles pLayer,
int  ConfigId,
int  Seed = 0,
int  SeedOffsetX = 0,
int  SeedOffsetY = 0 
)

◆ ProceedLocalized()

void CAutoMapper::ProceedLocalized ( class CLayerTiles pLayer,
int  ConfigId,
int  Seed = 0,
int  X = 0,
int  Y = 0,
int  Width = -1,
int  Height = -1 
)

Member Data Documentation

◆ m_FileLoaded

bool CAutoMapper::m_FileLoaded = false
private

◆ m_vConfigs

std::vector<CConfiguration> CAutoMapper::m_vConfigs = {}
private

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