Implements abstract Engine
Beispiel #1
0
        public UserInterface(Game game)
        {
            _game                         = game;
            _engine                       = new MonoGameEngine(_gd, 0, 0);
            _fontContentManager           = new ContentManager(_game.Content.ServiceProvider, "assets/ui/imgs");
            _soundAndImagesContentManager = new ContentManager(_game.Content.ServiceProvider, "");
            SpriteFont font = _fontContentManager.Load <SpriteFont>("JHUF_12_Regular");

            DefaultFont             = font;
            FontManager.DefaultFont = EmptyKeys.UserInterface.Engine.Instance.Renderer.CreateFont(font);
            PageTransitionTime      = TimeSpan.FromMilliseconds(500);
            Empty();
        }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Engine"/> class.
 /// </summary>
 public Engine()
 {
     instance = this;
 }