2021-04-14 02:38:54 +02:00
|
|
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
|
|
|
using MLEM.Data.Content;
|
|
|
|
|
using MLEM.Font;
|
2021-04-02 17:12:27 +02:00
|
|
|
|
using MLEM.Startup;
|
|
|
|
|
|
|
|
|
|
namespace Tests {
|
|
|
|
|
public class TestGame : MlemGame {
|
|
|
|
|
|
|
|
|
|
public RawContentManager RawContent { get; private set; }
|
|
|
|
|
|
2021-12-28 14:56:11 +01:00
|
|
|
|
private TestGame() {}
|
2021-04-02 17:12:27 +02:00
|
|
|
|
|
|
|
|
|
protected override void LoadContent() {
|
|
|
|
|
base.LoadContent();
|
|
|
|
|
this.RawContent = new RawContentManager(this.Services, this.Content.RootDirectory);
|
2022-06-15 11:38:11 +02:00
|
|
|
|
this.UiSystem.Style.Font = new GenericSpriteFont(MlemGame.LoadContent<SpriteFont>("TestFont"));
|
2021-04-02 17:12:27 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static TestGame Create() {
|
|
|
|
|
var game = new TestGame();
|
|
|
|
|
game.RunOneFrame();
|
|
|
|
|
return game;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
2022-06-17 18:23:47 +02:00
|
|
|
|
}
|