DDraceNetwork Docs
CEditorMap Class Reference

#include <editor.h>

Collaboration diagram for CEditorMap:
[legend]

Classes

class  CMapInfo
 

Public Member Functions

 CEditorMap ()
 
 ~CEditorMap ()
 
void OnModify ()
 
std::shared_ptr< CEnvelopeNewEnvelope (CEnvelope::EType Type)
 
void DeleteEnvelope (int Index)
 
void SwapEnvelopes (int Index0, int Index1)
 
template<typename F >
void VisitEnvelopeReferences (F &&Visitor)
 
std::shared_ptr< CLayerGroupNewGroup ()
 
int SwapGroups (int Index0, int Index1)
 
void DeleteGroup (int Index)
 
void ModifyImageIndex (FIndexModifyFunction pfnFunc)
 
void ModifyEnvelopeIndex (FIndexModifyFunction pfnFunc)
 
void ModifySoundIndex (FIndexModifyFunction pfnFunc)
 
void Clean ()
 
void CreateDefault (IGraphics::CTextureHandle EntitiesTexture)
 
bool Save (const char *pFilename, const std::function< void(const char *pErrorMessage)> &ErrorHandler)
 
bool PerformPreSaveSanityChecks (const std::function< void(const char *pErrorMessage)> &ErrorHandler)
 
bool Load (const char *pFilename, int StorageType, const std::function< void(const char *pErrorMessage)> &ErrorHandler)
 
void PerformSanityChecks (const std::function< void(const char *pErrorMessage)> &ErrorHandler)
 
void MakeTeleLayer (const std::shared_ptr< CLayer > &pLayer)
 
void MakeSpeedupLayer (const std::shared_ptr< CLayer > &pLayer)
 
void MakeFrontLayer (const std::shared_ptr< CLayer > &pLayer)
 
void MakeSwitchLayer (const std::shared_ptr< CLayer > &pLayer)
 
void MakeTuneLayer (const std::shared_ptr< CLayer > &pLayer)
 

Public Attributes

CEditorm_pEditor
 
bool m_Modified
 
bool m_ModifiedAuto
 
float m_LastModifiedTime
 
float m_LastSaveTime
 
float m_LastAutosaveUpdateTime
 
std::vector< std::shared_ptr< CLayerGroup > > m_vpGroups
 
std::vector< std::shared_ptr< CEditorImage > > m_vpImages
 
std::vector< std::shared_ptr< CEnvelope > > m_vpEnvelopes
 
std::vector< std::shared_ptr< CEditorSound > > m_vpSounds
 
CMapInfo m_MapInfo
 
CMapInfo m_MapInfoTmp
 
std::vector< CEditorMapSettingm_vSettings
 
std::shared_ptr< class CLayerGamem_pGameLayer
 
std::shared_ptr< CLayerGroupm_pGameGroup
 
std::shared_ptr< class CLayerTelem_pTeleLayer
 
std::shared_ptr< class CLayerSpeedupm_pSpeedupLayer
 
std::shared_ptr< class CLayerFrontm_pFrontLayer
 
std::shared_ptr< class CLayerSwitchm_pSwitchLayer
 
std::shared_ptr< class CLayerTunem_pTuneLayer
 

Private Member Functions

void MakeGameGroup (std::shared_ptr< CLayerGroup > pGroup)
 
void MakeGameLayer (const std::shared_ptr< CLayer > &pLayer)
 

Constructor & Destructor Documentation

◆ CEditorMap()

CEditorMap::CEditorMap ( )
inline

◆ ~CEditorMap()

CEditorMap::~CEditorMap ( )
inline

Member Function Documentation

◆ Clean()

void CEditorMap::Clean ( )

◆ CreateDefault()

void CEditorMap::CreateDefault ( IGraphics::CTextureHandle  EntitiesTexture)

◆ DeleteEnvelope()

void CEditorMap::DeleteEnvelope ( int  Index)

◆ DeleteGroup()

void CEditorMap::DeleteGroup ( int  Index)
inline

◆ Load()

bool CEditorMap::Load ( const char *  pFilename,
int  StorageType,
const std::function< void(const char *pErrorMessage)> &  ErrorHandler 
)

◆ MakeFrontLayer()

void CEditorMap::MakeFrontLayer ( const std::shared_ptr< CLayer > &  pLayer)

◆ MakeGameGroup()

void CEditorMap::MakeGameGroup ( std::shared_ptr< CLayerGroup pGroup)
private

◆ MakeGameLayer()

void CEditorMap::MakeGameLayer ( const std::shared_ptr< CLayer > &  pLayer)
private

◆ MakeSpeedupLayer()

void CEditorMap::MakeSpeedupLayer ( const std::shared_ptr< CLayer > &  pLayer)

◆ MakeSwitchLayer()

void CEditorMap::MakeSwitchLayer ( const std::shared_ptr< CLayer > &  pLayer)

◆ MakeTeleLayer()

void CEditorMap::MakeTeleLayer ( const std::shared_ptr< CLayer > &  pLayer)

◆ MakeTuneLayer()

void CEditorMap::MakeTuneLayer ( const std::shared_ptr< CLayer > &  pLayer)

◆ ModifyEnvelopeIndex()

void CEditorMap::ModifyEnvelopeIndex ( FIndexModifyFunction  pfnFunc)
inline

◆ ModifyImageIndex()

void CEditorMap::ModifyImageIndex ( FIndexModifyFunction  pfnFunc)
inline

◆ ModifySoundIndex()

void CEditorMap::ModifySoundIndex ( FIndexModifyFunction  pfnFunc)
inline

◆ NewEnvelope()

std::shared_ptr< CEnvelope > CEditorMap::NewEnvelope ( CEnvelope::EType  Type)
inline

◆ NewGroup()

std::shared_ptr< CLayerGroup > CEditorMap::NewGroup ( )
inline

◆ OnModify()

void CEditorMap::OnModify ( )

◆ PerformPreSaveSanityChecks()

bool CEditorMap::PerformPreSaveSanityChecks ( const std::function< void(const char *pErrorMessage)> &  ErrorHandler)

◆ PerformSanityChecks()

void CEditorMap::PerformSanityChecks ( const std::function< void(const char *pErrorMessage)> &  ErrorHandler)

◆ Save()

bool CEditorMap::Save ( const char *  pFilename,
const std::function< void(const char *pErrorMessage)> &  ErrorHandler 
)

◆ SwapEnvelopes()

void CEditorMap::SwapEnvelopes ( int  Index0,
int  Index1 
)

◆ SwapGroups()

int CEditorMap::SwapGroups ( int  Index0,
int  Index1 
)
inline

◆ VisitEnvelopeReferences()

template<typename F >
void CEditorMap::VisitEnvelopeReferences ( F &&  Visitor)

Member Data Documentation

◆ m_LastAutosaveUpdateTime

float CEditorMap::m_LastAutosaveUpdateTime

◆ m_LastModifiedTime

float CEditorMap::m_LastModifiedTime

◆ m_LastSaveTime

float CEditorMap::m_LastSaveTime

◆ m_MapInfo

CMapInfo CEditorMap::m_MapInfo

◆ m_MapInfoTmp

CMapInfo CEditorMap::m_MapInfoTmp

◆ m_Modified

bool CEditorMap::m_Modified

◆ m_ModifiedAuto

bool CEditorMap::m_ModifiedAuto

◆ m_pEditor

CEditor* CEditorMap::m_pEditor

◆ m_pFrontLayer

std::shared_ptr<class CLayerFront> CEditorMap::m_pFrontLayer

◆ m_pGameGroup

std::shared_ptr<CLayerGroup> CEditorMap::m_pGameGroup

◆ m_pGameLayer

std::shared_ptr<class CLayerGame> CEditorMap::m_pGameLayer

◆ m_pSpeedupLayer

std::shared_ptr<class CLayerSpeedup> CEditorMap::m_pSpeedupLayer

◆ m_pSwitchLayer

std::shared_ptr<class CLayerSwitch> CEditorMap::m_pSwitchLayer

◆ m_pTeleLayer

std::shared_ptr<class CLayerTele> CEditorMap::m_pTeleLayer

◆ m_pTuneLayer

std::shared_ptr<class CLayerTune> CEditorMap::m_pTuneLayer

◆ m_vpEnvelopes

std::vector<std::shared_ptr<CEnvelope> > CEditorMap::m_vpEnvelopes

◆ m_vpGroups

std::vector<std::shared_ptr<CLayerGroup> > CEditorMap::m_vpGroups

◆ m_vpImages

std::vector<std::shared_ptr<CEditorImage> > CEditorMap::m_vpImages

◆ m_vpSounds

std::vector<std::shared_ptr<CEditorSound> > CEditorMap::m_vpSounds

◆ m_vSettings

std::vector<CEditorMapSetting> CEditorMap::m_vSettings

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