Example #1
0
        /// <summary>
        /// Serializes the given dynamic value which requires to be an array or dictionary of BYAML compatible values
        /// and stores it in the specified stream.
        /// </summary>
        public static void SaveN(Stream stream, BymlFileData file)
        {
            ByamlFile byamlFile = new ByamlFile(file.SupportPaths, file.byteOrder, file.Version);

            byamlFile.Write(stream, file.RootNode);
        }