/// <summary> /// Writes out all of the .XML files. /// </summary> public void Write() { if (!Directory.Exists(Utils.OutputDataFileFolder)) { Directory.CreateDirectory(Utils.OutputDataFileFolder); } // Must be written first so other Write() methods can leverage calculated values. Constants.Write(); GAME_MASTERS.Write(GameMasters, GameMasterStatsCalculator); Moves.Write(PokeMoves.Values, GameMasterStatsCalculator); MoveSets.Write(Pokemon.Values, Forms, PokeMoves, ManualDataSettings, GameMasterStatsCalculator); PokeStats.Write(Pokemon.Values, ManualDataSettings, GameMasterStatsCalculator); RaidBoss.Write(ManualDataSettings, GameMasterStatsCalculator); Encounter.Write(ManualDataSettings, GameMasterStatsCalculator); Friendship.Write(Friendships, GameMasterStatsCalculator); // Must be written last so other Write() methods can update. Settings.Write(ManualDataSettings, GameMasterStatsCalculator); }