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

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

Fixes

File size: 543 bytes
RevLine 
[142]1using System;
[182]2using System.Reflection;
[142]3
4namespace AllocsFixes
5{
6 public class StateManager
7 {
[230]8 public static void Awake ()
[142]9 {
10 try {
[197]11 ItemList.Instance.Init ();
[182]12
[142]13 PersistentData.PersistentContainer.Load ();
14 } catch (Exception e) {
15 Log.Out ("Error in StateManager.Awake: " + e);
16 }
17 }
18
[230]19 public static void Shutdown ()
[142]20 {
21 try {
[145]22 Log.Out ("Server shutting down!");
[142]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.