コード例 #1
0
        public void Save(string filePath)
        {
            List <byte> data = new List <byte>();

            uint version = 5;

            data.AddRange(BitConverter.GetBytes(version));

            SaveWithSize(data, SaveTrainerInfo(version));
            SaveWithSize(data, SaveInventory(version));
            SaveWithSize(data, SavePCRows(version));
            SaveWithSize(data, mailbox.GetFinalData());
            SaveWithSize(data, SaveCompletedEvents());
            SaveWithSize(data, SavePokerusStrains());

            File.WriteAllBytes(filePath, data.ToArray());
        }