CurrentSession available directly from TorchBase

SteamService is now properly injected for clients, and reports errors
Obsolete tags on the manager properties in TorchBase
This commit is contained in:
Westin Miller
2017-08-21 21:38:25 -07:00
parent 91ad78e6a2
commit a4b1b9bb96
5 changed files with 48 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ using VRage.Steam;
using Torch.API;
using VRage;
using VRage.FileSystem;
using VRage.GameServices;
using VRageRender;
using VRageRender.ExternalApp;
@@ -53,7 +54,7 @@ namespace Torch.Client
_startup.DetectSharpDxLeaksBeforeRun();
var steamService = new SteamService(Game.IsDedicated, APP_ID);
MyServiceManager.Instance.AddService(steamService);
MyServiceManager.Instance.AddService<IMyGameService>(steamService);
_renderer = null;
SpaceEngineersGame.SetupPerGameSettings();
// I'm sorry, but it's what Keen does in SpaceEngineers.MyProgram