mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-07 15:10:27 -04:00
Removed NioTSO client and server
- NioTSO client isn't needed because we're using RayLib - Added FreeSO's API server to handle most backend operations
This commit is contained in:
parent
f12ba1502b
commit
22191ce648
591 changed files with 53264 additions and 3362 deletions
30
server/tso.common/Rendering/Framework/Game.cs
Executable file
30
server/tso.common/Rendering/Framework/Game.cs
Executable file
|
@ -0,0 +1,30 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue