source: binary-improvements2/MapRendering/src/ModApi.cs@ 400

Last change on this file since 400 was 391, checked in by alloc, 2 years ago

Major refactoring/cleanup

File size: 453 bytes
Line 
1using JetBrains.Annotations;
2
3namespace MapRendering {
4 [UsedImplicitly]
5 public class ModApi : IModApi {
6 public void InitMod (Mod _modInstance) {
7 ModEvents.GameShutdown.RegisterHandler (GameShutdown);
8 ModEvents.CalcChunkColorsDone.RegisterHandler (CalcChunkColorsDone);
9 }
10
11 private void GameShutdown () {
12 MapRenderer.Shutdown ();
13 }
14
15 private void CalcChunkColorsDone (Chunk _chunk) {
16 MapRenderer.RenderSingleChunk (_chunk);
17 }
18 }
19}
Note: See TracBrowser for help on using the repository browser.