private static void Initialize() { Application.EnableVisualStyles(); Application.Run(new Config.Play()); if (Enabled) { switch (GlobalContext.Module.GameType) { case API.Utilities.GameType.kOblivion: GlobalContext.Controller = new OblivionController(); break; case API.Utilities.GameType.kSkyrim: GlobalContext.Controller = new SkyrimController(); break; } if (instance == null) { instance = new World(); } if (inputManager == null) { inputManager = new IO.InputManager(); } } }
private static void Initialize() { Application.EnableVisualStyles(); Application.Run(new Play()); if (Enabled) { switch (GlobalContext.Module.GameType) { case GameType.kOblivion: GlobalContext.Controller = new OblivionController(); break; case GameType.kSkyrim: GlobalContext.Controller = new SkyrimController(); break; } if (instance == null) instance = new World(); if (inputManager == null) inputManager = new InputManager(); } }