Exemplo n.º 1
0
//------------------------------------------------------------------------------
//int getFreeSpecialist(PlayerTypes eIndex);
int CvLuaArea::lGetFreeSpecialist(lua_State* L)
{
	CvArea* pkArea = GetInstance(L);
	const PlayerTypes eIndex = (PlayerTypes)lua_tointeger(L, 2);

	const int iResult = pkArea->getFreeSpecialist(eIndex);
	lua_pushinteger(L, iResult);
	return 1;
}