Beispiel #1
0
        protected override void LoadContent()
        {
            Logger.Instance.Log("Loading content...");

            _spriteBatch = new SpriteBatch(GraphicsDevice);

            _phoenixGameView.LoadContent(Content);
            _metricsPanel.LoadContent(Content);

            Logger.Instance.LogComplete();
        }
Beispiel #2
0
        public void Setup()
        {
            // Arrange
            var gameMetadata        = new GameConfigCache();
            var presentationContext = new GlobalContextPresentation();

            CallContext <GameConfigCache> .SetData("GameMetadata", gameMetadata);

            CallContext <GlobalContextPresentation> .SetData("GlobalContextPresentation", presentationContext);

            _phoenixGameView = new PhoenixGameView();

            ContentManager content = new ContentManager(null);

            _phoenixGameView.LoadContent(content);
        }