internal static void Save(string fileName, MovieTake take) { string savePath = GetSavePath(fileName); XDocument doc = SerializeTake(take); doc.Save(savePath); }
internal static MovieTake DeserializeTake(XDocument doc) { XElement elem = doc.Element("Take"); DeserializeEnvironment(elem); MovieTake take = new MovieTake(); take.tracks = DeserializeTracks(elem); return(take); }
internal static XDocument SerializeTake(MovieTake take) => new XDocument(new XElement("Take", SerializeTracks(take.tracks), SerializeEnvironment()));