public StateManager(Game2D game, ClearOptions clearOptions) : base(game)
 {
     _clearOptions         = clearOptions;
     _availableStates      = new Dictionary <Type, IState>();
     _availableTransitions = new Dictionary <Type, ITransition>();
     _sourceRenderTarget   = new RenderTarget2D(Game.GraphicsDevice, Game.GraphicsDevice.Viewport.Width,
                                                Game.GraphicsDevice.Viewport.Height);
     _targetRenderTarget = new RenderTarget2D(Game.GraphicsDevice, Game.GraphicsDevice.Viewport.Width,
                                              Game.GraphicsDevice.Viewport.Height);
 }
Beispiel #2
0
 protected GameObject(Game2D game)
 {
     Game        = game;
     _components = new List <GameObjectComponent>();
 }