Bazaar developer reference

CvDllNetInitInfo::GetDebugString()

Defined in
CvDllNetInitInfo.cpp, line 108
Class
CvDllNetInitInfo
Hook name
CivHooks::CvDllNetInitInfo_GetDebugString

Hooks

static bool BeforeCvDllNetInitInfo_GetDebugString(CvDllNetInitInfo* self, const char*& result);static void AfterCvDllNetInitInfo_GetDebugString(CvDllNetInitInfo* self, const char*& result);static const char* ReplaceCvDllNetInitInfo_GetDebugString(const char* (*original)(CvDllNetInitInfo*), CvDllNetInitInfo* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllNetInitInfo_GetDebugString::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllNetInitInfo_GetDebugString);host->RegisterHook(host->pluginIndex, CivHooks::CvDllNetInitInfo_GetDebugString::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllNetInitInfo_GetDebugString);host->RegisterHook(host->pluginIndex, CivHooks::CvDllNetInitInfo_GetDebugString::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllNetInitInfo_GetDebugString);

Code

108const char* CvDllNetInitInfo::GetDebugString()109{110	sprintf(m_szDebugString, "NetInitInfo : m_szLoadFileName=\"%s\", "\111	        "m_szMapScriptName=\"%s\", "\112	        "m_bWBMapNoPlayers=\"%s\", "\113	        "m_eWorldSize=%d, "\114	        "m_eClimate=%d "\115	        "m_eSeaLevel=%d "\116	        "m_eEra=%d "\117	        "m_eCalendar=%d "\118	        "m_iGameTurn=%d "\119					"m_bGameStarted=%i "\120	        "m_eGameSpeed=%d "\121	        "m_eTurnTimer=%d "\122	        "m_szGameName=\"%s\" "\123	        "m_uiSyncRandSeed=%d "\124	        "m_uiMapRandSeed=%d"125	        , CvPreGame::loadFileName().c_str()126	        , CvPreGame::mapScriptName().c_str()127	        , CvPreGame::mapNoPlayers() ? "true" : "false"128	        , static_cast<int>(CvPreGame::worldSize())129	        , static_cast<int>(CvPreGame::climate())130	        , static_cast<int>(CvPreGame::seaLevel())131	        , static_cast<int>(CvPreGame::era())132	        , static_cast<int>(CvPreGame::calendar())133	        , CvPreGame::gameTurn()134					, CvPreGame::gameStarted()135	        , static_cast<int>(CvPreGame::gameSpeed())136	        , static_cast<int>(CvPreGame::turnTimer())137	        , CvPreGame::gameName().c_str()138	        , CvPreGame::syncRandomSeed()139	        , CvPreGame::mapRandomSeed()140	       );141142	return m_szDebugString;143}

Calls