Пример #1
0
        public void Update(ObjectAction buffer)
        {
            if (buffer == null)
            {
                return;
            }
            if (!buffer.HasCondition)
            {
                Condition = null;
            }
            else
            {
                if (Condition == null)
                {
                    Condition = new ActionCondition();
                }
                Condition.Update(buffer.Condition);
            }

            if (buffer.Result == null)
            {
                return;
            }
            if (Result == null)
            {
                Result = new ActionResult();
            }
            Result.Update(buffer.Result);
        }
Пример #2
0
 public void Update(ActionCondition buffer)
 {
     if (buffer == null)
     {
         return;
     }
     Operand = buffer.Operand;
     Value   = buffer.Value;
 }
Пример #3
0
 public bool IsEqualTo(ActionCondition compared)
 {
     return(Operand.ToString() == compared.Operand.ToString() && Value == compared.Value);
 }