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

Last change on this file since 288 was 232, checked in by alloc, 10 years ago

Fixes

File size: 543 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 ItemList.Instance.Init ();
12
13 PersistentData.PersistentContainer.Load ();
14 } catch (Exception e) {
15 Log.Out ("Error in StateManager.Awake: " + e);
16 }
17 }
18
19 public static void Shutdown ()
20 {
21 try {
22 Log.Out ("Server shutting down!");
23 PersistentData.PersistentContainer.Instance.Save ();
24 } catch (Exception e) {
25 Log.Out ("Error in StateManager.Shutdown: " + e);
26 }
27 }
28 }
29}
30
Note: See TracBrowser for help on using the repository browser.