Beispiel #1
0
        internal static void Save(string fileName, MovieTake take)
        {
            string    savePath = GetSavePath(fileName);
            XDocument doc      = SerializeTake(take);

            doc.Save(savePath);
        }
Beispiel #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);
        }
Beispiel #3
0
 internal static XDocument SerializeTake(MovieTake take)
 => new XDocument(new XElement("Take",
                               SerializeTracks(take.tracks),
                               SerializeEnvironment()));