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

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

Binary improvements

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