[This is preliminary documentation and is subject to change.]

Save the map, under the specified file name using the specified format.

Namespace: fCraft.MapConversion
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.5 (0.6.3.5)

Syntax

   
 C# 
public static void Save(
	Map mapToSave,
	string fileName,
	MapFormat mapFormat
)

Parameters

mapToSave
Map
Map file to be saved.
fileName
String
The name of the file to save to.
mapFormat
MapFormat
The format to use when saving the map.

Exceptions

ExceptionCondition
System..::..ArgumentNullException mapToSave or fileName are null.
System..::..ArgumentException mapFormat is set to MapFormat.Unknown.
fCraft.MapConversion..::..NoMapConverterFoundException No exporter could be found for the given format.
System..::..Exception Other kinds of exceptions may be thrown by the map exporter.

See Also