EvoEsports / EvoSC-sharp

Next generation server controller for Trackmania written in C# using .NET 8.
https://evosc.io
GNU General Public License v3.0
21 stars 13 forks source link

Get current map from the map service #92

Closed snixtho closed 1 year ago

snixtho commented 1 year ago

Currently to get the map that is currently running on the server must be done by first calling the GetCurrentMapInfo XMLRPC method. And then get the map info from the database before building an IMap instance. This is cumbersome and probably creates lots of duplicate code.

A better idea is to implement this in the MapService service, it should return an IMap instance representing the map.

In addition, if the map doesn't exist, it can be a good idea to add the map to the database as well.