Beispiel #1
0
    public bool IsContainsSkipConditionType(NewbieWeakGuideMainLineConf conf, NewbieGuideSkipConditionType type, uint[] param)
    {
        int length = conf.astSkipCondition.Length;

        for (int i = 0; i < length; i++)
        {
            NewbieGuideSkipConditionItem item = conf.astSkipCondition[i];
            if ((((NewbieGuideSkipConditionType)item.wType) == type) && NewbieGuideCheckSkipConditionUtil.CheckSkipCondition(item, param))
            {
                return(true);
            }
        }
        return(false);
    }
Beispiel #2
0
    private void CheckWeakSkipCondition(NewbieGuideSkipConditionType type, params uint[] param)
    {
        ListView <NewbieWeakGuideMainLineConf> newbieGuideWeakMianLineConfListBySkipType = Singleton <NewbieGuideDataManager> .GetInstance().GetNewbieGuideWeakMianLineConfListBySkipType(type);

        int count = newbieGuideWeakMianLineConfListBySkipType.Count;

        for (int i = 0; i < count; i++)
        {
            NewbieWeakGuideMainLineConf conf = newbieGuideWeakMianLineConfListBySkipType[i];
            if (!this.IsWeakLineComplete(conf.dwID))
            {
                for (int j = 0; j < conf.astSkipCondition.Length; j++)
                {
                    NewbieGuideSkipConditionItem item = conf.astSkipCondition[j];
                    if ((((NewbieGuideSkipConditionType)item.wType) == type) && NewbieGuideCheckSkipConditionUtil.CheckSkipCondition(item, param))
                    {
                        this.SetWeakGuideComplete(conf.dwID, true);
                        break;
                    }
                }
            }
        }
    }
Beispiel #3
0
    private void CheckForceSkipCondition(NewbieGuideSkipConditionType type, params uint[] param)
    {
        ListView <NewbieGuideMainLineConf> newbieGuideMainLineConfListBySkipType = Singleton <NewbieGuideDataManager> .GetInstance().GetNewbieGuideMainLineConfListBySkipType(type);

        int count = newbieGuideMainLineConfListBySkipType.Count;

        for (int i = 0; i < count; i++)
        {
            NewbieGuideMainLineConf conf = newbieGuideMainLineConfListBySkipType[i];
            if (!this.IsMianLineComplete(conf.dwID))
            {
                for (int j = 0; j < conf.astSkipCondition.Length; j++)
                {
                    if ((((NewbieGuideSkipConditionType)conf.astSkipCondition[j].wType) == type) && NewbieGuideCheckSkipConditionUtil.CheckSkipCondition(conf.astSkipCondition[j], param))
                    {
                        if (null != this.mCurrentScriptControl)
                        {
                            if (this.mCurrentScriptControl.currentMainLineId == conf.dwID)
                            {
                                continue;
                            }
                            this.SetNewbieGuideComplete(conf.dwID, false, false);
                        }
                        else
                        {
                            this.SetNewbieGuideComplete(conf.dwID, false, false);
                        }
                        break;
                    }
                }
            }
        }
    }
    private void CheckForceSkipCondition(NewbieGuideSkipConditionType type, params uint[] param)
    {
        ListView <NewbieGuideMainLineConf> newbieGuideMainLineConfListBySkipType = Singleton <NewbieGuideDataManager> .GetInstance().GetNewbieGuideMainLineConfListBySkipType(type);

        int count = newbieGuideMainLineConfListBySkipType.get_Count();

        for (int i = 0; i < count; i++)
        {
            NewbieGuideMainLineConf newbieGuideMainLineConf = newbieGuideMainLineConfListBySkipType.get_Item(i);
            if (!this.IsMianLineComplete(newbieGuideMainLineConf.dwID))
            {
                for (int j = 0; j < newbieGuideMainLineConf.astSkipCondition.Length; j++)
                {
                    if ((NewbieGuideSkipConditionType)newbieGuideMainLineConf.astSkipCondition[j].wType == type && NewbieGuideCheckSkipConditionUtil.CheckSkipCondition(newbieGuideMainLineConf.astSkipCondition[j], param))
                    {
                        if (!(null != this.mCurrentScriptControl))
                        {
                            this.SetNewbieGuideComplete(newbieGuideMainLineConf.dwID, false, false, true);
                            break;
                        }
                        if (this.mCurrentScriptControl.currentMainLineId != newbieGuideMainLineConf.dwID)
                        {
                            this.SetNewbieGuideComplete(newbieGuideMainLineConf.dwID, false, false, true);
                            break;
                        }
                    }
                }
            }
        }
    }