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); }
public void Update(ActionCondition buffer) { if (buffer == null) { return; } Operand = buffer.Operand; Value = buffer.Value; }
public bool IsEqualTo(ActionCondition compared) { return(Operand.ToString() == compared.Operand.ToString() && Value == compared.Value); }