Пример #1
0
        internal static void Save(string fileName, MovieTake take)
        {
            string    savePath = GetSavePath(fileName);
            XDocument doc      = SerializeTake(take);

            doc.Save(savePath);
        }
Пример #2
0
        internal static MovieTake DeserializeTake(XDocument doc)
        {
            XElement elem = doc.Element("Take");

            DeserializeEnvironment(elem);

            MovieTake take = new MovieTake();

            take.tracks = DeserializeTracks(elem);

            return(take);
        }
Пример #3
0
 internal static XDocument SerializeTake(MovieTake take)
 => new XDocument(new XElement("Take",
                               SerializeTracks(take.tracks),
                               SerializeEnvironment()));