Changeset 463 for TFP-WebServer/MapRendering/src/ModApi.cs
- Timestamp:
- Aug 17, 2023, 4:57:23 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/MapRendering/src/ModApi.cs
r425 r463 6 6 [UsedImplicitly] 7 7 public class ModApi : IModApi { 8 private const string mapTilesBaseUrl = "/map/"; 9 8 10 public void InitMod (Mod _modInstance) { 9 11 ModEvents.GameStartDone.RegisterHandler (GameStartDone); … … 14 16 } 15 17 16 _web.RegisterPathHandler ( "/map/", new StaticHandler (18 _web.RegisterPathHandler (mapTilesBaseUrl, new StaticHandler ( 17 19 $"{GameIO.GetSaveGameDir ()}/map", 18 20 MapRenderer.GetTileCache (), … … 20 22 "web.map") 21 23 ); 24 25 _web.OpenApiHelpers.RegisterCustomSpec (GetType ().Assembly, "MapTileHandler", mapTilesBaseUrl); 22 26 }; 23 27 }
Note:
See TracChangeset
for help on using the changeset viewer.