/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { WriteLine("[SHELL INITIALIZED AT " + System.DateTime.Now.ToLongTimeString() + " " + System.DateTime.Now.ToShortDateString() + "]"); WriteLine("Blackhole's eVent horizoN Framework"); WriteLine("Version: " + FrameworkVersion); SaveLoadModule.InitializeAppFolders(); LooseCamera = true; AutoCamera = new Camera("Default Shell Autocamera"); Mute = false; GlobalVolume = 0.6f; SaveLoadModule.ApplicableSaveType = "FullySerializedBinary"; SaveLoadModule.PullOrInitPersistentState(); ScriptProcessor.AllowScriptExit = true; PubGD = GraphicsDevice; ResetFlags(); DoNextShifter = false; base.Initialize(); }
/// <summary> /// UnloadContent will be called once per game and is the place to unload /// game-specific content. /// </summary> protected override void UnloadContent() { WriteLine("Client closing..."); WriteLine("[SHELL EXITING AT " + System.DateTime.Now.ToLongTimeString() + " " + System.DateTime.Now.ToShortDateString() + "]"); SaveLoadModule.WriteFinals(); }