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

Last change on this file since 334 was 325, checked in by alloc, 6 years ago

Code style cleanup (mostly whitespace changes, enforcing braces, using cleanup)

File size: 483 bytes
RevLine 
[142]1using System;
[325]2using AllocsFixes.PersistentData;
[142]3
[325]4namespace AllocsFixes {
5 public class StateManager {
6 public static void Awake () {
[142]7 try {
[325]8 PersistentContainer.Load ();
[142]9 } catch (Exception e) {
10 Log.Out ("Error in StateManager.Awake: " + e);
11 }
12 }
13
[325]14 public static void Shutdown () {
[142]15 try {
[145]16 Log.Out ("Server shutting down!");
[325]17 PersistentContainer.Instance.Save ();
[142]18 } catch (Exception e) {
19 Log.Out ("Error in StateManager.Shutdown: " + e);
20 }
21 }
22 }
[325]23}
Note: See TracBrowser for help on using the repository browser.