1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-26 18:19:24 +01:00
MLEM/Tests/TestGame.cs
2022-06-17 18:23:47 +02:00

26 lines
714 B
C#

using Microsoft.Xna.Framework.Graphics;
using MLEM.Data.Content;
using MLEM.Font;
using MLEM.Startup;
namespace Tests {
public class TestGame : MlemGame {
public RawContentManager RawContent { get; private set; }
private TestGame() {}
protected override void LoadContent() {
base.LoadContent();
this.RawContent = new RawContentManager(this.Services, this.Content.RootDirectory);
this.UiSystem.Style.Font = new GenericSpriteFont(MlemGame.LoadContent<SpriteFont>("TestFont"));
}
public static TestGame Create() {
var game = new TestGame();
game.RunOneFrame();
return game;
}
}
}