public CedrusGame(IocBuilder builder) { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; builder.LogRegistrations(); builder.RegisterModules(Assembly.GetExecutingAssembly(), type => type.FullName.EndsWith("Module")); builder.RegisterSingleton(c => graphics.GraphicsDevice); builder.RegisterSingleton(c => new GameSettings(Window)); builder.RegisterSingleton(c => Content); EnumerateAssemblies(assembly => builder.RegisterSingletonSubclassesOf(assembly, typeof(CommonAssetBuilder))); container = builder.Build(); gameTimeline = container.Resolve <GameTimeline>(); Appender = container.Resolve <IAppender>()[GetType()]; }