Changeset 503 for TFP-WebServer/MapRendering
- Timestamp:
- Jan 27, 2025, 4:29:28 PM (3 days ago)
- Location:
- TFP-WebServer/MapRendering
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/MapRendering/ModInfo.xml
r487 r503 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=" 1.1.0.0" />7 <Version value="2.0.0.0" /> 8 8 <Website value="" /> 9 9 </xml> -
TFP-WebServer/MapRendering/src/ModApi.cs
r463 r503 27 27 } 28 28 29 private void GameStartDone () {29 private ModEvents.EModEventResult GameStartDone (ref ModEvents.SGameStartDoneData _data) { 30 30 if (!MapRenderer.Enabled) { 31 return ;31 return ModEvents.EModEventResult.Continue; 32 32 } 33 33 34 34 ModEvents.GameShutdown.RegisterHandler (GameShutdown); 35 35 ModEvents.CalcChunkColorsDone.RegisterHandler (CalcChunkColorsDone); 36 37 return ModEvents.EModEventResult.Continue; 36 38 } 37 39 38 private void GameShutdown () {40 private ModEvents.EModEventResult GameShutdown (ref ModEvents.SGameShutdownData _data) { 39 41 MapRenderer.Shutdown (); 42 43 return ModEvents.EModEventResult.Continue; 40 44 } 41 45 42 private void CalcChunkColorsDone (Chunk _chunk) { 43 MapRenderer.RenderSingleChunk (_chunk); 46 private ModEvents.EModEventResult CalcChunkColorsDone (ref ModEvents.SCalcChunkColorsDoneData _data) { 47 MapRenderer.RenderSingleChunk (_data.Chunk); 48 49 return ModEvents.EModEventResult.Continue; 44 50 } 45 51 }
Note:
See TracChangeset
for help on using the changeset viewer.