Example #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;
 }
Example #3
0
 public ConstraintsValueVM(IPlayablePuzzleConstraintsValue playablePuzzleConstraintsValue)
 {
     this.playablePuzzleConstraintsValue = playablePuzzleConstraintsValue;
 }
Example #4
0
 public IPlayablePuzzleConstraintsValueVM(IPlayablePuzzleConstraintsValue value)
 {
     this.wrapped = value;
 }
 public PuzzleConstraintsValueViewModel(IPlayablePuzzleConstraintsValue value)
 {
     this.playablePuzzleConstraintsValue = value;
 }
Example #6
0
 public ConstraintsValueViewModel(IPlayablePuzzleConstraintsValue constraintsValue)
 {
     this.constraintsValue = constraintsValue;
 }
 public ConstrainstValueVM(IPlayablePuzzleConstraintsValue value)
 {
     this.value = value;
 }