protected override void CloneProperties(Behaviac.Design.Attachments.Attachment newattach) { base.CloneProperties(newattach); TransitionCondition con = (TransitionCondition)newattach; con.TargetFSMNodeId = this.TargetFSMNodeId; if (this._opl != null) { con._opl = (RightValueDef)this._opl.Clone(); } if (this._opr1 != null) { con._opr1 = (RightValueDef)this._opr1.Clone(); } con._operator = this._operator; if (_opr2 != null) { con._opr2 = (RightValueDef)_opr2.Clone(); } con._effectors = new List <TransitionEffector>(); foreach (TransitionEffector effector in this._effectors) { con._effectors.Add(new TransitionEffector(effector)); } }
protected override void CloneProperties(Node newnode) { base.CloneProperties(newnode); WaitFramesState dec = (WaitFramesState)newnode; if (_frames != null) { dec._frames = (RightValueDef)_frames.Clone(); } }
protected override void CloneProperties(Node newnode) { base.CloneProperties(newnode); WaitState dec = (WaitState)newnode; if (_time != null) { dec._time = (RightValueDef)_time.Clone(); } }
protected override void CloneProperties(Node newnode) { base.CloneProperties(newnode); DecoratorTime dec = (DecoratorTime)newnode; if (_time != null) { dec._time = (RightValueDef)_time.Clone(); } }
protected override void CloneProperties(Node newnode) { base.CloneProperties(newnode); DecoratorFrames dec = (DecoratorFrames)newnode; if (_frames != null) { dec._frames = (RightValueDef)_frames.Clone(); } }
protected override void CloneProperties(Behaviac.Design.Nodes.Node newattach) { base.CloneProperties(newattach); DecoratorIterator prec = (DecoratorIterator)newattach; if (_opl != null) { prec._opl = (VariableDef)_opl.Clone(); } if (_opr != null) { prec._opr = (RightValueDef)_opr.Clone(); } }
protected override void CloneProperties(Node newnode) { base.CloneProperties(newnode); Assignment prec = (Assignment)newnode; if (_opl != null) { prec._opl = (VariableDef)_opl.Clone(); } if (_opr != null) { prec._opr = (RightValueDef)_opr.Clone(); } }
protected override void CloneProperties(Node newnode) { base.CloneProperties(newnode); Condition prec = (Condition)newnode; prec._operator = _operator; if (_opl != null) { prec._opl = (RightValueDef)_opl.Clone(); } if (_opr != null) { prec._opr = (RightValueDef)_opr.Clone(); } }
//public override string GenerateNewLabel() //{ // string newlabel = string.Empty; // if (this._task != null) // { // //newlabel = this._task.PrototypeName; // newlabel = this._task.GetDisplayValue(); // } // else // { // if (!string.IsNullOrEmpty(this.ReferencedTreePath)) // { // string szTreeInfo = this.ReferencedTreePath; // newlabel = string.Format("{0}(\"{1}\")", this.Label, szTreeInfo); // } // else // { // string szTreeInfo = this.ReferenceBehavior.GetDisplayValue(); // newlabel = string.Format("{0}({1})", this.Label, szTreeInfo); // } // } // return newlabel; //} protected override void CloneProperties(Node newnode) { base.CloneProperties(newnode); ReferencedBehavior refbehav = (ReferencedBehavior)newnode; refbehav.Label = Label; if (this._referencedBehavior != null) { refbehav._referencedBehavior = (RightValueDef)_referencedBehavior.Clone(); } if (this._task != null) { refbehav._task = (MethodDef)this._task.Clone(); } }
protected override void CloneProperties(Node newnode) { base.CloneProperties(newnode); Compute prec = (Compute)newnode; //prec._negate = _negate; if (_opl != null) { prec._opl = (VariableDef)_opl.Clone(); } if (_opr1 != null) { prec._opr1 = (RightValueDef)_opr1.Clone(); } prec._operator = _operator; if (_opr2 != null) { prec._opr2 = (RightValueDef)_opr2.Clone(); } }
protected override void CloneProperties(Behaviac.Design.Attachments.Attachment newattach) { base.CloneProperties(newattach); AttachAction prec = (AttachAction)newattach; if (_opl != null) { prec._opl = (RightValueDef)_opl.Clone(); } if (_opr1 != null) { prec._opr1 = (RightValueDef)_opr1.Clone(); } prec._operator = _operator; if (_opr2 != null) { prec._opr2 = (RightValueDef)_opr2.Clone(); } }