lua/wrappers/game/lua_game.cpp
/**
	 * Removes a quest from the quest pool.
	 *
	 * @param string quest_id The id of the quest to remove from the quest pool.
	 * @returns boolean True if the quest was successfully removed.
	 */
Removes a quest from the quest pool.
@param string quest_id The id of the quest to remove from the quest pool.
@returns boolean True if the quest was successfully removed.
Removes a quest from the quest pool . @param string quest_id The id of the quest to remove from the quest pool . @returns boolean True if the quest was successfully removed .
int Game_remove_quest(lua_State *lua)
	{
		Game *game = castUData<Game>(lua, 1);
		if (game)
		{
			if (lua_isstr(lua, 2))
			{
				lua_pushboolean(lua, game->removeQuest(lua_tostring(lua, 2)));
				return 1;
			}
			Quest *quest = castUData<Quest>(lua, 2);
			if (quest)
			{
				lua_pushboolean(lua, game->removeQuest(quest->getQuestId()));
				return 1;
			}
			return LuaState::expectedArgs(lua, "remove_quest", 2, "string quest_id", "am.quest quest");
		}
		return LuaState::expectedContext(lua, "remove_quest", "am.game");
	}
int Game_remove_quest ( lua_State * lua ) { Game * game = castUData < Game > ( lua , 1 ) ; if ( game ) { if ( lua_isstr ( lua , 2 ) ) { lua_pushboolean ( lua , game -> removeQuest ( lua_tostring ( lua , 2 ) ) ) ; return 1 ; } Quest * quest = castUData < Quest > ( lua , 2 ) ; if ( quest ) { lua_pushboolean ( lua , game -> removeQuest ( quest -> getQuestId ( ) ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , 2 , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Removes a quest from the quest pool.
Removes a quest from the quest pool .