Changeset 324 for binary-improvements/MapRendering/API.cs
- Timestamp:
- Sep 3, 2018, 7:11:10 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/API.cs
r299 r324 3 3 namespace MapRendering 4 4 { 5 public class API : ModApiAbstract{6 7 public override void GameAwake () {5 public class API : IModApi { 6 private void GameAwake () { 7 // ReSharper disable once ObjectCreationAsStatement 8 8 new AllocsFixes.NetConnections.Servers.Web.Web (); 9 9 AllocsFixes.NetConnections.Servers.Web.LogBuffer.Instance.GetType (); 10 10 } 11 11 12 p ublic override void GameStartDone () {12 private void GameStartDone () { 13 13 if (AllocsFixes.NetConnections.Servers.Web.Handlers.ItemIconHandler.Instance != null) { 14 14 AllocsFixes.NetConnections.Servers.Web.Handlers.ItemIconHandler.Instance.LoadIcons (); … … 16 16 } 17 17 18 p ublic override void GameShutdown () {18 private void GameShutdown () { 19 19 AllocsFixes.MapRendering.MapRendering.Shutdown (); 20 20 } 21 21 22 p ublic override void CalcChunkColorsDone (Chunk _chunk) {22 private void CalcChunkColorsDone (Chunk _chunk) { 23 23 AllocsFixes.MapRendering.MapRendering.RenderSingleChunk (_chunk); 24 24 } 25 25 26 public void InitMod () { 27 ModEvents.GameAwake.RegisterHandler (GameAwake); 28 ModEvents.GameStartDone.RegisterHandler (GameStartDone); 29 ModEvents.GameShutdown.RegisterHandler (GameShutdown); 30 ModEvents.CalcChunkColorsDone.RegisterHandler (CalcChunkColorsDone); 31 } 26 32 } 27 33 }
Note:
See TracChangeset
for help on using the changeset viewer.