Пример #1
0
 public CommandViewModel([CanBeNull] CommandSlot commandSlot, [NotNull] GameViewModel game)
 {
     _game       = game ?? throw new ArgumentNullException(nameof(game));
     CommandSlot = commandSlot;
 }
Пример #2
0
 public WorldObjectViewModel(GameObjectBase source, GameViewModel gameViewModel)
 {
     _gameVm = gameViewModel;
     Source  = source;
 }
 public CreateObjectViewModel([NotNull] WorldObjectViewModel objectViewModel, [NotNull] GameViewModel gameViewModel)
 {
     WorldObject = objectViewModel ?? throw new ArgumentNullException(nameof(objectViewModel));
     Game        = gameViewModel ?? throw new ArgumentNullException(nameof(gameViewModel));
 }