Changeset 500 for TFP-WebServer/WebServer/src/ModApi.cs
- Timestamp:
- Jul 29, 2024, 4:48:56 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/WebServer/src/ModApi.cs
r404 r500 12 12 public void InitMod (Mod _modInstance) { 13 13 ModEvents.GameStartDone.RegisterHandler (GameStartDone); 14 ModEvents. GameShutdown.RegisterHandler (GameShutdown);14 ModEvents.WorldShuttingDown.RegisterHandler (WorldShuttingDown); 15 15 modInstance = _modInstance; 16 16 … … 31 31 } 32 32 33 private void GameShutdown () {34 webInstance?. Shutdown();33 private void WorldShuttingDown () { 34 webInstance?.Disconnect (); 35 35 } 36 36 }
Note:
See TracChangeset
for help on using the changeset viewer.