public static bool TrySaving( Map MapToSave, Stream MapStream, MapFormats Format ) { if ( AvailableConverters.ContainsKey( Format ) ) { return AvailableConverters[Format].Save( MapToSave, MapStream ); } throw new FormatException(); }
private string DefineFormat(string type) { return(MapFormats.GetValueOrDefault(type)); }
public static string GetFileExtension( MapFormats format ) { return AvailableConverters[format].FileExtension; }