Changeset 325 for binary-improvements/7dtd-server-fixes/src/StateManager.cs
- Timestamp:
- Sep 4, 2018, 1:00:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/StateManager.cs
r306 r325 1 1 using System; 2 using System.Reflection;2 using AllocsFixes.PersistentData; 3 3 4 namespace AllocsFixes 5 { 6 public class StateManager 7 { 8 public static void Awake () 9 { 4 namespace AllocsFixes { 5 public class StateManager { 6 public static void Awake () { 10 7 try { 11 Persistent Data.PersistentContainer.Load ();8 PersistentContainer.Load (); 12 9 } catch (Exception e) { 13 10 Log.Out ("Error in StateManager.Awake: " + e); … … 15 12 } 16 13 17 public static void Shutdown () 18 { 14 public static void Shutdown () { 19 15 try { 20 16 Log.Out ("Server shutting down!"); 21 Persistent Data.PersistentContainer.Instance.Save ();17 PersistentContainer.Instance.Save (); 22 18 } catch (Exception e) { 23 19 Log.Out ("Error in StateManager.Shutdown: " + e); … … 26 22 } 27 23 } 28
Note:
See TracChangeset
for help on using the changeset viewer.