Bazaar developer reference

CvLuaPlayer::lGetNumUnitsSuppliedByPopulation(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 6043
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lGetNumUnitsSuppliedByPopulation

Hooks

static bool BeforeCvLuaPlayer_lGetNumUnitsSuppliedByPopulation(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetNumUnitsSuppliedByPopulation(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetNumUnitsSuppliedByPopulation(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetNumUnitsSuppliedByPopulation>(host, &BeforeCvLuaPlayer_lGetNumUnitsSuppliedByPopulation);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetNumUnitsSuppliedByPopulation>(host, &AfterCvLuaPlayer_lGetNumUnitsSuppliedByPopulation);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetNumUnitsSuppliedByPopulation>(host, &ReplaceCvLuaPlayer_lGetNumUnitsSuppliedByPopulation);

Code

6042//int GetNumUnitsSuppliedByPopulation();6043int CvLuaPlayer::lGetNumUnitsSuppliedByPopulation(lua_State* L)6044{6045	return BasicLuaMethod(L, &CvPlayerAI::GetNumUnitsSuppliedByPopulation);6046}

Calls

Called by