public void Configure(KanGameEngine engine, KanEngineContextBuilder builder) { builder.SetServiceProvider(new MonogameServiceProvider(this)); builder.Services.AddService <Game>(this); builder.Services.AddService(GraphicsDeviceManager); builder.Services.AddService(new KanContentManager(builder.Services)); _configuration.Configure(engine, builder); // Forward configuration to final implementation }
private void Configure(IKanGameConfiguration configuration) { var contextBuilder = new KanEngineContextBuilder(); contextBuilder.SetControllerSwitchAction(ChangeController); configuration?.Configure(this, contextBuilder); Context = contextBuilder.Build(); }