public void SetSelectedEntityIdSet(int?aHeldEntityId, [CanBeNull] HashSet <int> aSelectedEntityIdSet) { PlayState newPlayState = PlayState.SetSelectedEntityIdSet(this.currentState, aSelectedEntityIdSet); newPlayState = PlayState.SetHeldEntity(newPlayState, aHeldEntityId); UpdatePlayState(newPlayState); }