public CommandViewModel([CanBeNull] CommandSlot commandSlot, [NotNull] GameViewModel game) { _game = game ?? throw new ArgumentNullException(nameof(game)); CommandSlot = commandSlot; }
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)); }