コード例 #1
0
ファイル: Save.cs プロジェクト: outoforbitdev/gsws
        public void Save(string directory)
        {
            Directory.CreateDirectory(directory);
            Bodies.SerializeXml(directory + "bodies.xml");
            Planets.SerializeXml(directory + "planets.xml");
            Governments.SerializeXml(directory + "governments.xml");
            Characters.SerializeXml(directory + "characters.xml");
            Fleets.SerializeXml(directory + "fleets.xml");
            Map.SerializeXml(directory + "map.xml");
            Militaries.SerializeXml(directory + "militaries.xml");

            new Serializer <Date>().Serialize(directory + "date.xml", Date);

            new Serializer <Player>().Serialize(directory + "player.xml", Player);
        }