lua/wrappers/game/lua_game.cpp
/**
	 * Returns a quest with the given quest id, nil if the quest could not be found.
	 *
	 * @param string quest_id The id of the quest to look up.
	 * @returns am.quest The found quest, or nil.
	 */
Returns a quest with the given quest id, nil if the quest could not be found.
@param string quest_id The id of the quest to look up.
@returns am.quest The found quest, or nil.
Returns a quest with the given quest id nil if the quest could not be found . @param string quest_id The id of the quest to look up . @returns am . quest The found quest or nil .
int Game_quest(lua_State *lua)
	{
		Game *game = castUData<Game>(lua, 1);
		if (game)
		{
			if (lua_isstr(lua, 2))
			{
				Quest *quest = game->getQuest(lua_tostring(lua, 2));
				if (quest)
				{
					wrapRefObject<Quest>(lua, quest);
					return 1;
				}
				lua_pushnil(lua);
				return 1;
			}
			return LuaState::expectedArgs(lua, "quest", "string quest_id");
		}
		return LuaState::expectedContext(lua, "quest", "am.game"); 
	}
int Game_quest ( lua_State * lua ) { Game * game = castUData < Game > ( lua , 1 ) ; if ( game ) { if ( lua_isstr ( lua , 2 ) ) { Quest * quest = game -> getQuest ( lua_tostring ( lua , 2 ) ) ; if ( quest ) { wrapRefObject < Quest > ( lua , quest ) ; return 1 ; } lua_pushnil ( lua ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Returns a quest with the given quest id, nil if the quest could not be found.
Returns a quest with the given quest id nil if the quest could not be found .