Rev | Line | |
---|
[182] | 1 | using AllocsFixes.NetConnections.Servers.Telnet;
|
---|
| 2 | using AllocsFixes.NetConnections.Servers.Web;
|
---|
[142] | 3 | using System;
|
---|
[182] | 4 | using System.Reflection;
|
---|
[142] | 5 |
|
---|
| 6 | namespace AllocsFixes
|
---|
| 7 | {
|
---|
| 8 | public class StateManager
|
---|
| 9 | {
|
---|
| 10 | public static void Awake (GameManager manager)
|
---|
| 11 | {
|
---|
| 12 | try {
|
---|
[182] | 13 | Log.Out ("[7dtd-server-fixes by Alloc] Version: " + Assembly.GetExecutingAssembly ().GetName ().Version);
|
---|
[197] | 14 | new Web ();
|
---|
| 15 | new Telnet ();
|
---|
[182] | 16 |
|
---|
[197] | 17 | ItemList.Instance.Init ();
|
---|
[142] | 18 | CommandExtensions.InitCommandExtensions (manager);
|
---|
[182] | 19 |
|
---|
[142] | 20 | PersistentData.PersistentContainer.Load ();
|
---|
| 21 | } catch (Exception e) {
|
---|
| 22 | Log.Out ("Error in StateManager.Awake: " + e);
|
---|
| 23 | }
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | public static void Shutdown (GameManager manager)
|
---|
| 27 | {
|
---|
| 28 | try {
|
---|
[145] | 29 | Log.Out ("Server shutting down!");
|
---|
[142] | 30 | PersistentData.PersistentContainer.Instance.Save ();
|
---|
| 31 | } catch (Exception e) {
|
---|
| 32 | Log.Out ("Error in StateManager.Shutdown: " + e);
|
---|
| 33 | }
|
---|
| 34 | }
|
---|
| 35 | }
|
---|
| 36 | }
|
---|
| 37 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.