Esempio n. 1
0
        public void Write()
        {
            using (var writer = new BinaryWriter(File.OpenWrite("test.wdt")))
            {
                // MVER
                writer.Write(MVER.GetChunkHeaderBytes());
                writer.Write(MVER.GetChunkBytes());

                // MPHD
                writer.Write(MPHD.GetChunkHeaderBytes());
                writer.Write(MPHD.GetChunkBytes());

                // MAIN
                writer.Write(MAIN.GetChunkHeaderBytes());
                writer.Write(MAIN.GetChunkBytes());

                // MWMO
                writer.Write(MWMO.GetChunkHeaderBytes());
                writer.Write(MWMO.GetChunkBytes());

                // MODF
                writer.Write(MODF.GetChunkHeaderBytes());
                writer.Write(MODF.GetChunkBytes());
            }
        }