EvEmu
0.8.4
11 September 2021
|
#include "PlanetDataMgr.h"
Public Member Functions | |
~PlanetDataMgr () | |
![]() | |
Singleton () | |
Primary constructor. More... | |
Private Attributes | |
PlanetDB | m_db |
std::unordered_multimap < uint32, uint32 > | m_planetData |
PlanetDataMgr.cpp | |
Specific Class for managing planet and pi data : Allan
| |
PlanetDataMgr () | |
int | Initialize () |
void | GetPlanetData (uint32 planetID, std::vector< uint16 > &typeIDs) |
const char * | GetCommandName (int8 commandID) |
void | _Populate () |
Additional Inherited Members | |
![]() | |
static PlanetDataMgr & | get () |
![]() | |
static std::shared_ptr < PlanetDataMgr > | mInstance |
Definition at line 18 of file PlanetDataMgr.h.
PlanetDataMgr::PlanetDataMgr | ( | ) |
Definition at line 32 of file PlanetDataMgr.cpp.
|
inline |
Definition at line 23 of file PlanetDataMgr.h.
|
protected |
Definition at line 43 of file PlanetDataMgr.cpp.
References DBResultRow::GetInt(), PlanetDB::GetPlanetData(), DBQueryResult::GetRow(), GetTimeMSeconds(), m_db, m_planetData, SafeDelete(), and sLog.
Referenced by Initialize(), and PIDataMgr::Initialize().
const char * PlanetDataMgr::GetCommandName | ( | int8 | commandID | ) |
Definition at line 68 of file PlanetDataMgr.cpp.
References PI::Command::AddExtractorHead, PI::Command::CreateLink, PI::Command::CreatePin, PI::Command::CreateRoute, PI::Command::InstallProgram, Calendar::Flag::Invalid, PI::Command::KillExtractorHead, PI::Command::MoveExtractorHead, PI::Command::PrioritizeRoute, PI::Command::RemoveLink, PI::Command::RemovePin, PI::Command::RemoveRoute, PI::Command::SetLinkLevel, PI::Command::SetSchematic, and PI::Command::UpgradeCommandCenter.
Definition at line 61 of file PlanetDataMgr.cpp.
References m_planetData.
int PlanetDataMgr::Initialize | ( | ) |
Definition at line 36 of file PlanetDataMgr.cpp.
References _Populate(), and sLog.
|
private |
Definition at line 36 of file PlanetDataMgr.h.
Referenced by _Populate(), and PIDataMgr::_Populate().
Definition at line 38 of file PlanetDataMgr.h.
Referenced by _Populate(), and GetPlanetData().