lua/wrappers/game/lua_quest.cpp
/**
	 * Sets the quest description.
	 *
	 * @param string description The new quest description.
	 * @returns am.quest This
	 */
Sets the quest description.
@param string description The new quest description.
Sets the quest description . @param string description The new quest description .
int Quest_description(lua_State *lua)
	{
		Quest *quest = castUData<Quest>(lua, 1);
		if (quest)
		{
			if (lua_gettop(lua) == 1)
			{
				lua_pushstring(lua, quest->getDescription());
				return 1;
			}
			else if (lua_isstr(lua, 2))
			{
				quest->setDescription(lua_tostring(lua, 2));
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "description", "string description");
		}
		return LuaState::expectedContext(lua, "description", "am.quest");
	}
int Quest_description ( lua_State * lua ) { Quest * quest = castUData < Quest > ( lua , 1 ) ; if ( quest ) { if ( lua_gettop ( lua ) == 1 ) { lua_pushstring ( lua , quest -> getDescription ( ) ) ; return 1 ; } else if ( lua_isstr ( lua , 2 ) ) { quest -> setDescription ( lua_tostring ( lua , 2 ) ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Sets the quest description.
Sets the quest description .