source: binary-improvements/7dtd-server-fixes/src/StateManager.cs@ 309

Last change on this file since 309 was 306, checked in by alloc, 7 years ago

Fixes update A16.2

File size: 511 bytes
Line 
1using System;
2using System.Reflection;
3
4namespace AllocsFixes
5{
6 public class StateManager
7 {
8 public static void Awake ()
9 {
10 try {
11 PersistentData.PersistentContainer.Load ();
12 } catch (Exception e) {
13 Log.Out ("Error in StateManager.Awake: " + e);
14 }
15 }
16
17 public static void Shutdown ()
18 {
19 try {
20 Log.Out ("Server shutting down!");
21 PersistentData.PersistentContainer.Instance.Save ();
22 } catch (Exception e) {
23 Log.Out ("Error in StateManager.Shutdown: " + e);
24 }
25 }
26 }
27}
28
Note: See TracBrowser for help on using the repository browser.