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

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

Major refactoring/cleanup

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