Changeset 463 for TFP-WebServer/MapRendering
- Timestamp:
- Aug 17, 2023, 4:57:23 PM (15 months ago)
- Location:
- TFP-WebServer/MapRendering
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/MapRendering/MapRendering.csproj
r453 r463 112 112 </ProjectReference> 113 113 </ItemGroup> 114 <ItemGroup> 115 <EmbeddedResource Include="src\Api\Map.openapi.yaml" /> 116 <EmbeddedResource Include="src\MapTileHandler.openapi.yaml" /> 117 </ItemGroup> 114 118 </Project> -
TFP-WebServer/MapRendering/ModInfo.xml
r453 r463 5 5 <Description value="Render the game map to image map tiles as it is uncovered" /> 6 6 <Author value="The Fun Pimps LLC" /> 7 <Version value="21.1. 9.0" />7 <Version value="21.1.16.0" /> 8 8 <Website value="" /> 9 9 </xml> -
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.