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