lua/wrappers/game/lua_map.cpp
/**
	 * Sets the map's full name. This is used when displaying the map to the user.
	 *
	 * @param string full_name The map's new full name.
	 * @returns am.map This
	 */
Sets the map's full name. This is used when displaying the map to the user.
@param string full_name The map's new full name.
Sets the map ' s full name . This is used when displaying the map to the user . @param string full_name The map ' s new full name .
int Map_full_name(lua_State *lua)
	{
		Map *map = castUData<Map>(lua, 1);
		if (map)
		{
			if (lua_gettop(lua) == 1)
			{
				lua_pushstring(lua, map->getFullName().c_str());
				return 1;
			}
			else if (lua_isstr(lua, 2))
			{
				map->setFullName(lua_tostring(lua, 2));
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "full_name", "string full_name");
		}
		return LuaState::expectedContext(lua, "full_name", "am.map");
	}
int Map_full_name ( lua_State * lua ) { Map * map = castUData < Map > ( lua , 1 ) ; if ( map ) { if ( lua_gettop ( lua ) == 1 ) { lua_pushstring ( lua , map -> getFullName ( ) . c_str ( ) ) ; return 1 ; } else if ( lua_isstr ( lua , 2 ) ) { map -> setFullName ( lua_tostring ( lua , 2 ) ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Sets the map's full name.
Sets the map ' s full name .