/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. var spriteBatch = new SpriteBatch(GraphicsDevice); GraphicsService.Init(spriteBatch, this); GameContent.Init(Content); // TODO: use this.Content to load your game content here Services.AddService(typeof(SpriteBatch), spriteBatch); LoadConsole(spriteBatch); }
public static void Init(ContentManager content) { Instance = new GameContent(content); }