Line | |
---|
1 | using System;
|
---|
2 | using System.Reflection;
|
---|
3 |
|
---|
4 | namespace 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.