lua/wrappers/game/lua_quest.cpp
/**
	 * @static
	 * Returns the found quest from the quest pool.
	 * 
	 * @param string quest_id The quest id of the quest to look up.
	 * @returns am.quest The found quest or nil.
	 */
@static
Returns the found quest from the quest pool.

@param string quest_id The quest id of the quest to look up.
@returns am.quest The found quest or nil.
@static Returns the found quest from the quest pool . @param string quest_id The quest id of the quest to look up . @returns am . quest The found quest or nil .
int Quest_find(lua_State *lua)
	{
		if (lua_isstr(lua, 1))
		{
			Quest *quest = dynamic_cast<Quest *>(Engine::getGame()->getQuest(lua_tostring(lua, 1)));
			if (quest)
			{
				wrapRefObject<Quest>(lua, quest);
				return 1;
			}
			lua_pushnil(lua);
			return 1;
		}
		return LuaState::expectedArgs(lua, "@find", "string quest_id");
	}
int Quest_find ( lua_State * lua ) { if ( lua_isstr ( lua , 1 ) ) { Quest * quest = dynamic_cast < Quest * > ( Engine :: getGame ( ) -> getQuest ( lua_tostring ( lua , 1 ) ) ) ; if ( quest ) { wrapRefObject < Quest > ( lua , quest ) ; return 1 ; } lua_pushnil ( lua ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; }
@static
 Returns the found quest from the quest pool.
@static Returns the found quest from the quest pool .