Ejemplo n.º 1
0
        public int BoundToParentExit = 0; //指向上层事件出口
        //以上只能2选一
        //[XmlAttribute]
        //public int BindTag = 0;//绑定标志,事件可以指定根据不同的绑定标志作出不同反应

        //---------------------------------------------------------------------
        public ScenarioEventExit Copy()
        {
            ScenarioEventExit newi = new ScenarioEventExit();

            newi.Id   = this.Id;
            newi.text = this.text;
            //newi.BindTag = this.BindTag;
            foreach (var trigger in this.Triggers)
            {
                newi.Triggers.Add(trigger.Copy());
            }
            //newi.TriggerType = this.TriggerType;
            newi.Successor = this.Successor;
            //newi.Scenario = this.Scenario;
            newi.BoundToParentExit = this.BoundToParentExit;
            return(newi);
        }
Ejemplo n.º 2
0
        public int BoundToParentExit = 0;//指向上层事件出口
        //以上只能2选一
        //[XmlAttribute]
        //public int BindTag = 0;//绑定标志,事件可以指定根据不同的绑定标志作出不同反应

        //---------------------------------------------------------------------
        public ScenarioEventExit Copy()
        {
            ScenarioEventExit newi = new ScenarioEventExit();
            newi.Id = this.Id;
            newi.text = this.text;
            //newi.BindTag = this.BindTag;
            foreach (var trigger in this.Triggers)
            {
                newi.Triggers.Add(trigger.Copy());
            }
            //newi.TriggerType = this.TriggerType;
            newi.Successor = this.Successor;
            //newi.Scenario = this.Scenario;
            newi.BoundToParentExit = this.BoundToParentExit;
            return newi;
        }