Rev | Line | |
---|
[391] | 1 | using JetBrains.Annotations;
|
---|
[224] | 2 |
|
---|
[391] | 3 | namespace 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.