public HowToPlayComponent(Game game, InputManager input)
     : base(game)
 {
     _game = game;
     _input = input;
     _coverage = new Coverage(Color.Black);
     LoadContent(_game.Content);
 }
 public MultiplayerHostComponent(MainGame game, InputManager input)
     : base(game)
 {
     _game = game;
     _input = input;
     if (input == null)
         throw new ArgumentNullException(nameof(input));
     LoadContent(_game.Content);
 }
 public SingleplayerComponent(Game game, InputManager input, Vector2 clientSize)
     : base(game)
 {
     _input = input;
     _clientSize = clientSize;
     LoadIdentity();
     if (!_playerDirectory.Exists) _playerDirectory.Create();
     GameSettings.Instance.Load(_gameSettingsFile, _playerDirectory);
     LoadContent(game.Content);
 }
Пример #4
0
 public override void Initialize()
 {
     _input = new InputManager();
     DrawPriority = 3;
     base.Initialize();
 }