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:
parent
8580139544
commit
07751654b7
11 changed files with 290 additions and 76 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue