Changeset 367 for binary-improvements/MapRendering/API.cs
- Timestamp:
- Aug 11, 2021, 6:22:03 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/API.cs
r351 r367 4 4 namespace AllocsFixes { 5 5 public class API : IModApi { 6 private Web webInstance; 7 6 8 public void InitMod () { 7 9 ModEvents.GameStartDone.RegisterHandler (GameStartDone); … … 12 14 private void GameStartDone () { 13 15 // ReSharper disable once ObjectCreationAsStatement 14 new Web ();16 webInstance = new Web (); 15 17 LogBuffer.Init (); 16 18 … … 21 23 22 24 private void GameShutdown () { 25 webInstance.Shutdown (); 23 26 MapRendering.MapRendering.Shutdown (); 24 27 }
Note:
See TracChangeset
for help on using the changeset viewer.