Ejemplo n.º 1
0
 public MKAFileDataBuilder(string ApplicationName, string Description = "NO INFORMATION")
 {
     d = new MKAFile()
     {
         ApplicationName = ApplicationName,
         Description     = Description,
         Objects         = new Dictionary <string, MKAObjectData>()
     };
 }
Ejemplo n.º 2
0
        public static void SerializeToStream(MKAFile MKAData, Stream stream, MKAFileVersion version = MKAFileVersion.Latest)
        {
            switch (version)
            {
            case MKAFileVersion.Latest:
            case MKAFileVersion.V0_1Beta:
                var fc = Formats.v0_1Beta.CompatibilityHost.ConvertFromSharedClass(MKAData);
                Formats.v0_1Beta.Converter.CreateStreamed(fc, stream);
                break;

            default:
                throw new Exception("Unknown Error");
            }
        }
Ejemplo n.º 3
0
 public MKAFileDataBuilder(MKAFile mkafile)
 {
     d = mkafile;
 }