public static void Init(string launchParameters, CoreWindow window, SwapChainBackgroundPanel swapChainBackgroundPanel) { if (state != EngineState.UnInitialized) { game = XamlGame <RGSSGame> .Create(launchParameters, window, swapChainBackgroundPanel); game.IsFixedTimeStep = true; game.GameControler = (GameControler.CreateControler(game)); } else { throw new Exception("RGSSEngine has already been initialized"); } }
public static GameControler CreateControler(RGSSGame game) { _gameControler = new GameControler(game); return(_gameControler); }