Bazaar developer reference

CvCity::debugDump(const FAutoVariableBase &) const

Defined in
CvCity.cpp, line 17099
Class
CvCity
Hook name
CivHooks::CvCity_debugDump

Hooks

static bool BeforeCvCity_debugDump(const CvCity* self, const FAutoVariableBase& arg0, std::string& result);static void AfterCvCity_debugDump(const CvCity* self, const FAutoVariableBase& arg0, std::string& result);static std::string ReplaceCvCity_debugDump(std::string (*original)(const CvCity*, const FAutoVariableBase&), const CvCity* self, const FAutoVariableBase& arg0);CivRegisterBefore<CivHooks::CvCity_debugDump>(host, &BeforeCvCity_debugDump);CivRegisterAfter<CivHooks::CvCity_debugDump>(host, &AfterCvCity_debugDump);CivRegisterReplace<CivHooks::CvCity_debugDump>(host, &ReplaceCvCity_debugDump);

Code

17099std::string CvCity::debugDump(const FAutoVariableBase& /*var*/) const17100{17101	std::string result = "Game Turn : ";17102	char gameTurnBuffer[8] = {0};17103	int gameTurn = GC.getGame().getGameTurn();17104	sprintf_s(gameTurnBuffer, "%d\0", gameTurn);17105	result += gameTurnBuffer;17106	return result;17107}

Calls

Called by