예제 #1
0
        public ChangeableValue(IPlayablePuzzleConstraintsValue value, Cell <bool> IsSatisfiedConstrain)
        {
            this._value = value;

            this.higherSatisfaction = IsSatisfiedConstrain;
            this.wholecount         = Cell.Derived(higherSatisfaction, IsSatisfied, (cc, v) => cc && v ? 2 : 0);
        }
 public ConstraintsValueVM(IPlayablePuzzleConstraintsValue iPlayablePuzzleConstraintsValuewrapped)
 {
     this.iPlayablePuzzleConstraintsValuewrapped = iPlayablePuzzleConstraintsValuewrapped;
     vmValue       = iPlayablePuzzleConstraintsValuewrapped.Value;
     vmIsSatisfied = iPlayablePuzzleConstraintsValuewrapped.IsSatisfied;
 }
예제 #3
0
 public ConstraintsValueVM(IPlayablePuzzleConstraintsValue playablePuzzleConstraintsValue)
 {
     this.playablePuzzleConstraintsValue = playablePuzzleConstraintsValue;
 }
예제 #4
0
 public IPlayablePuzzleConstraintsValueVM(IPlayablePuzzleConstraintsValue value)
 {
     this.wrapped = value;
 }
 public PuzzleConstraintsValueViewModel(IPlayablePuzzleConstraintsValue value)
 {
     this.playablePuzzleConstraintsValue = value;
 }
예제 #6
0
 public ConstraintsValueViewModel(IPlayablePuzzleConstraintsValue constraintsValue)
 {
     this.constraintsValue = constraintsValue;
 }
예제 #7
0
 public ConstrainstValueVM(IPlayablePuzzleConstraintsValue value)
 {
     this.value = value;
 }