コード例 #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);
 }