fix(core): Moves map definitions and cleans up loading maps, regions, and tiles (#431)

- [X] Moves map definitions to a `map-definitions.json` file.
- [X] Creates a TileMatrixLoader.
- [X] Moves tile matrix and multi data configurations closer to their classes.
This commit is contained in:
Kamron Batman 2021-01-25 11:05:52 -08:00 • committed by GitHub
parent 8580139544
commit 07751654b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 290 additions and 76 deletions

View file

@ -471,8 +471,10 @@ namespace Server
VerifySerialization();
MapLoader.LoadMaps();
AssemblyHandler.Invoke("Configure");
TileMatrixLoader.LoadTileMatrix();
RegionLoader.LoadRegions();
World.Load();
@ -480,11 +482,6 @@ namespace Server
timerThread.Start();
foreach (var m in Map.AllMaps)
{
m.Tiles.Force();
}
TcpServer.Start();
EventSink.InvokeServerStarted();
RunEventLoop();