Bazaar developer reference

CvPlayer::debugDump(const FAutoVariableBase &) const

Defined in
CvPlayer.cpp, line 27874
Class
CvPlayer
Hook name
CivHooks::CvPlayer_debugDump

Hooks

static bool BeforeCvPlayer_debugDump(const CvPlayer* self, const FAutoVariableBase& arg0, std::string& result);static void AfterCvPlayer_debugDump(const CvPlayer* self, const FAutoVariableBase& arg0, std::string& result);static std::string ReplaceCvPlayer_debugDump(std::string (*original)(const CvPlayer*, const FAutoVariableBase&), const CvPlayer* self, const FAutoVariableBase& arg0);CivRegisterBefore<CivHooks::CvPlayer_debugDump>(host, &BeforeCvPlayer_debugDump);CivRegisterAfter<CivHooks::CvPlayer_debugDump>(host, &AfterCvPlayer_debugDump);CivRegisterReplace<CivHooks::CvPlayer_debugDump>(host, &ReplaceCvPlayer_debugDump);

Code

27874std::string CvPlayer::debugDump(const FAutoVariableBase&) const27875{27876	std::string result = "Game Turn : ";27877	char gameTurnBuffer[8] = {0};27878	int gameTurn = GC.getGame().getGameTurn();27879	sprintf_s(gameTurnBuffer, "%d\0", gameTurn);27880	result += gameTurnBuffer;27881	return result;27882}

Calls

Called by