mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-25 17:59:24 +01:00
27 lines
No EOL
713 B
C#
27 lines
No EOL
713 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(LoadContent<SpriteFont>("TestFont"));
|
|
}
|
|
|
|
public static TestGame Create() {
|
|
var game = new TestGame();
|
|
game.RunOneFrame();
|
|
return game;
|
|
}
|
|
|
|
}
|
|
} |