mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-26 18:19:24 +01:00
37 lines
No EOL
901 B
C#
37 lines
No EOL
901 B
C#
using Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
using MLEM.Input;
|
|
using MLEM.Startup;
|
|
using MLEM.Ui;
|
|
|
|
namespace Demos {
|
|
public class Demo {
|
|
|
|
public readonly MlemGame Game;
|
|
public SpriteBatch SpriteBatch => this.Game.SpriteBatch;
|
|
public GraphicsDevice GraphicsDevice => this.Game.GraphicsDevice;
|
|
public InputHandler InputHandler => this.Game.InputHandler;
|
|
public UiSystem UiSystem => this.Game.UiSystem;
|
|
|
|
public Demo(MlemGame game) {
|
|
this.Game = game;
|
|
}
|
|
|
|
public virtual void LoadContent() {
|
|
}
|
|
|
|
public virtual void Update(GameTime time) {
|
|
}
|
|
|
|
public virtual void DoDraw(GameTime time) {
|
|
}
|
|
|
|
public virtual void Clear() {
|
|
}
|
|
|
|
public static T LoadContent<T>(string name) {
|
|
return MlemGame.LoadContent<T>(name);
|
|
}
|
|
|
|
}
|
|
} |