Bazaar developer reference

CvLuaGame::lGetUnitCreatedCount(lua_State *)

Defined in
Lua/CvLuaGame.cpp, line 1499
Class
CvLuaGame
Hook name
CivHooks::CvLuaGame_lGetUnitCreatedCount

Hooks

static bool BeforeCvLuaGame_lGetUnitCreatedCount(lua_State* L, int& result);static void AfterCvLuaGame_lGetUnitCreatedCount(lua_State* L, int& result);static int ReplaceCvLuaGame_lGetUnitCreatedCount(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaGame_lGetUnitCreatedCount>(host, &BeforeCvLuaGame_lGetUnitCreatedCount);CivRegisterAfter<CivHooks::CvLuaGame_lGetUnitCreatedCount>(host, &AfterCvLuaGame_lGetUnitCreatedCount);CivRegisterReplace<CivHooks::CvLuaGame_lGetUnitCreatedCount>(host, &ReplaceCvLuaGame_lGetUnitCreatedCount);

Code

1498//int getUnitCreatedCount(UnitTypes eIndex);1499int CvLuaGame::lGetUnitCreatedCount(lua_State* L)1500{1501	return BasicLuaMethod(L, &CvGame::getUnitCreatedCount);1502}

Calls

Called by