saveMapData
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This converts a set of elements in the element tree into XML. This is a format that can then be loaded as a map file. Each element represents a single XML node.
Syntax
saveMapData ( )Code Examples
server
Saving your resource's data to anmap file(untested)
local mapFile = xmlCreateFile("saved.map", "map")
if mapFile then saveMapData(mapFile, resourceRoot) xmlSaveFile(mapFile) xmlUnloadFile(mapFile)end