Пример #1
0
 public static bool TrySaving( Map MapToSave, Stream MapStream, MapFormats Format )
 {
     if ( AvailableConverters.ContainsKey( Format ) ) {
         return AvailableConverters[Format].Save( MapToSave, MapStream );
     }
     throw new FormatException();
 }
Пример #2
0
 private string DefineFormat(string type)
 {
     return(MapFormats.GetValueOrDefault(type));
 }
Пример #3
0
 public static string GetFileExtension( MapFormats format )
 {
     return AvailableConverters[format].FileExtension;
 }