Bazaar developer reference

CvLuaPlayer::lChangeNumResourceTotal(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 7482
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lChangeNumResourceTotal

Hooks

static bool BeforeCvLuaPlayer_lChangeNumResourceTotal(lua_State* L, int& result);static void AfterCvLuaPlayer_lChangeNumResourceTotal(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lChangeNumResourceTotal(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lChangeNumResourceTotal>(host, &BeforeCvLuaPlayer_lChangeNumResourceTotal);CivRegisterAfter<CivHooks::CvLuaPlayer_lChangeNumResourceTotal>(host, &AfterCvLuaPlayer_lChangeNumResourceTotal);CivRegisterReplace<CivHooks::CvLuaPlayer_lChangeNumResourceTotal>(host, &ReplaceCvLuaPlayer_lChangeNumResourceTotal);

Code

7481//void changeNumResourceTotal(ResourceTypes  iIndex, int iChange);7482int CvLuaPlayer::lChangeNumResourceTotal(lua_State* L)7483{7484	return BasicLuaMethod(L, &CvPlayerAI::changeNumResourceTotal);7485}

Calls

Called by