Bazaar developer reference

CvLuaPlayer::lSpecialistYield(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 2211
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lSpecialistYield

Hooks

static bool BeforeCvLuaPlayer_lSpecialistYield(lua_State* L, int& result);static void AfterCvLuaPlayer_lSpecialistYield(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lSpecialistYield(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lSpecialistYield>(host, &BeforeCvLuaPlayer_lSpecialistYield);CivRegisterAfter<CivHooks::CvLuaPlayer_lSpecialistYield>(host, &AfterCvLuaPlayer_lSpecialistYield);CivRegisterReplace<CivHooks::CvLuaPlayer_lSpecialistYield>(host, &ReplaceCvLuaPlayer_lSpecialistYield);

Code

2210//int specialistYield(SpecialistTypes  eSpecialist, YieldTypes  eYield);2211int CvLuaPlayer::lSpecialistYield(lua_State* L)2212{2213	return BasicLuaMethod(L, &CvPlayerAI::specialistYield);2214}

Calls

Called by