Example #1
0
        public void SetValue(IntVariable value)
        {
            if (value.Equals(this.Value))
            {
                return;
            }

            this.Value = value.Value;
            InvokeChange(this.Value);
        }
Example #2
0
 public void Add(IntVariable variable)
 {
     Value += variable.Value;
 }
Example #3
0
 public void ApplyChange(IntVariable amount)
 {
     ApplyChange(amount.Value);
 }