Commit Description:
Start decoupling input.
Commit Description:
Start decoupling input.
Show/Diff file:
Action:
isometric-park-fna/Engines/GameBridgeEngine.cs
35 lines | 522 B | text/x-csharp | CSharpLexer
using Microsoft.Xna.Framework.Input;
using Encompass;
using isometricparkfna.Messages;
namespace isometricparkfna.Engines {
[Receives(typeof(ToggleDebugWindowMessage))]
class GameBridgeEngine : Engine
{
public FNAGame game;
public GameBridgeEngine(FNAGame game) {
this.game = game;
}
public override void Update(double dt)
{
foreach (ref readonly var motionMessage in ReadMessages<ToggleDebugWindowMessage>())
{
game.show_another_window = !game.show_another_window;
}
}
}
}