Map.DumpLuaMap
Map.DumpLuaMap(path, floor, writeAsFloor)
函數功能
輸出地圖文件到本地路徑中(可以當做地圖編輯器)。
參數說明
返回值
返回0失敗,1成功。
參考實例
local LUAMAPID = %地圖類型_LUAMAP%;
function dumpMapFile(index, path, floorID, writeAsFloor)
local ret = Map.DumpLuaMap(path, floorID, writeAsFloor);
if (ret == 0) then
NLG.SystemMessage(index,"地圖"..LUAMAPID..","..floorID.."輸出至文件失敗!");
else
NLG.SystemMessage(index,"地圖"..LUAMAPID..","..floorID.."已經輸出至文件:["..path..LUAMAPID.."_"..floorID.."]");
end
return;
end
HourGlass