Esempio n. 1
0
        public static GuppyLoader ConfigureMonoGame(this GuppyLoader loader, GraphicsDeviceManager graphics, ContentManager content, GameWindow window)
        {
            loader.Services.RegisterSingleton <GraphicsDeviceManager>(graphics);
            loader.Services.RegisterSingleton <ContentManager>(content);
            loader.Services.RegisterSingleton <GameWindow>(window);
            loader.Services.RegisterSingleton <GraphicsDevice>(graphics.GraphicsDevice);
            loader.RegisterServiceLoader(new MonoGameServiceLoader());

            return(loader);
        }
Esempio n. 2
0
        public static GuppyLoader ConfigureTerminal(this GuppyLoader guppy)
        {
            guppy.RegisterServiceLoader(new TerminalServiceLoader());

            return(guppy);
        }