protected override void LoadContent() { Logger.Instance.Log("Loading content..."); _spriteBatch = new SpriteBatch(GraphicsDevice); _phoenixGameView.LoadContent(Content); _metricsPanel.LoadContent(Content); Logger.Instance.LogComplete(); }
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); }