Line | |
---|
1 | using JetBrains.Annotations;
|
---|
2 |
|
---|
3 | namespace 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.