Bazaar developer reference

CvLuaGame::lGetNumArchaeologySites(lua_State *)

Defined in
Lua/CvLuaGame.cpp, line 3140
Class
CvLuaGame
Hook name
CivHooks::CvLuaGame_lGetNumArchaeologySites

Hooks

static bool BeforeCvLuaGame_lGetNumArchaeologySites(lua_State* L, int& result);static void AfterCvLuaGame_lGetNumArchaeologySites(lua_State* L, int& result);static int ReplaceCvLuaGame_lGetNumArchaeologySites(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaGame_lGetNumArchaeologySites>(host, &BeforeCvLuaGame_lGetNumArchaeologySites);CivRegisterAfter<CivHooks::CvLuaGame_lGetNumArchaeologySites>(host, &AfterCvLuaGame_lGetNumArchaeologySites);CivRegisterReplace<CivHooks::CvLuaGame_lGetNumArchaeologySites>(host, &ReplaceCvLuaGame_lGetNumArchaeologySites);

Code

3140int CvLuaGame::lGetNumArchaeologySites(lua_State* L)3141{3142	lua_pushinteger(L, GC.getGame().GetNumArchaeologySites());3143	return 1;3144}

Calls

Called by