mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-03-21 01:01:22 +00:00
- NioTSO client isn't needed because we're using RayLib - Added FreeSO's API server to handle most backend operations
30 lines
738 B
C#
Executable file
30 lines
738 B
C#
Executable file
using Microsoft.Xna.Framework;
|
|
|
|
namespace FSO.Common.Rendering.Framework
|
|
{
|
|
public abstract class Game : Microsoft.Xna.Framework.Game
|
|
{
|
|
protected GraphicsDeviceManager Graphics;
|
|
protected GameScreen Screen;
|
|
|
|
public Game() : base()
|
|
{
|
|
Graphics = new GraphicsDeviceManager(this);
|
|
}
|
|
|
|
protected override void Initialize(){
|
|
base.Initialize();
|
|
|
|
Screen = new GameScreen(GraphicsDevice);
|
|
}
|
|
|
|
protected override void Update(GameTime gameTime){
|
|
Screen.Update(gameTime, IsActive);
|
|
}
|
|
|
|
protected override void Draw(GameTime gameTime){
|
|
base.Draw(gameTime);
|
|
Screen.Draw(gameTime);
|
|
}
|
|
}
|
|
}
|