Example #1
0
 public MKAFileDataBuilder(string ApplicationName, string Description = "NO INFORMATION")
 {
     d = new MKAFile()
     {
         ApplicationName = ApplicationName,
         Description     = Description,
         Objects         = new Dictionary <string, MKAObjectData>()
     };
 }
Example #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");
            }
        }
Example #3
0
 public MKAFileDataBuilder(MKAFile mkafile)
 {
     d = mkafile;
 }