Пример #1
0
        protected override bool CheckNeedJump()
        {
            TDGuide data = TDGuideTable.GetData(m_GuideId);

            if (data == null)
            {
                return(true);
            }

            if (string.IsNullOrEmpty(data.jumpTrigger))
            {
                return(false);
            }

            List <ITrigger> triggerList = LoadTrigger(data.jumpTrigger, data.commonParam);

            if (triggerList == null || triggerList.Count == 0)
            {
                return(false);
            }

            for (int i = 0; i < triggerList.Count; ++i)
            {
                if (!triggerList[i].isReady)
                {
                    return(false);
                }
            }

            return(true);
        }
Пример #2
0
        protected override List <ITrigger> GetTriggerArray()
        {
            TDGuide data = TDGuideTable.GetData(m_GuideId);

            if (data == null)
            {
                return(null);
            }

            return(LoadTrigger(data.trigger, data.commonParam));
        }