Bazaar developer reference

CvLuaPlayer::lIsCityNameValid(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 1252
Class
CvLuaPlayer
Not a hook point
member without a separate declaration

Code

1252int CvLuaPlayer::lIsCityNameValid(lua_State* L)1253{1254	CvPlayerAI* pkPlayer = GetInstance(L);12551256	CvString strName = lua_tostring(L, 2);1257	const bool bTestDestroyed = luaL_optint(L, 3, 0);1258	1259	const bool bResult = pkPlayer->isCityNameValid(strName, bTestDestroyed);1260	lua_pushboolean(L, bResult);1261	return 1;1262}

Calls

Called by