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

Attempts to 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 bool TrySave(
	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.

Return Value

Whether or not the map save completed successfully.

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.

See Also