using System.IO; namespace Server.Tests.Terrain; /// /// Boots a test host on generated data instead of client files, so every machine and CI see the same world. /// public static class SyntheticWorld { /// Where the generated data files are written: the test host's output, overwritten every run. public static string DataDirectory => Path.Combine(Core.BaseDirectory, "SyntheticData"); /// /// Writes and loads the generated tiledata.mul from , which becomes the only data /// directory, and seeds the multi footprints. Run before anything reads . /// public static void LoadData() { Directory.CreateDirectory(DataDirectory); SyntheticTileData.WriteTo(DataDirectory); SyntheticTileData.LoadInto(DataDirectory); TestMultis.Seed(); } /// Stamps the prefab scenes. Run once Felucca and Trammel are registered. public static void StampTerrain() => Prefabs.StampAll(); }