Changeset 503 for TFP-WebServer/MapRendering/src/ModApi.cs
- Timestamp:
- Jan 27, 2025, 4:29:28 PM (3 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.