Beispiel #1
0
        private void OnVisit(ResGameTaskGroup InGroup)
        {
            ListView <ResGameTaskGroup> view = null;

            if (this._groupData.ContainsKey(InGroup.dwGroupTask))
            {
                view = this._groupData[InGroup.dwGroupTask];
            }
            else
            {
                view = new ListView <ResGameTaskGroup>();
                this._groupData.Add(InGroup.dwGroupTask, view);
            }
            view.Add(InGroup);
        }
Beispiel #2
0
        private void OnVisit(ResGameTaskGroup InGroup)
        {
            ListView <ResGameTaskGroup> listView;

            if (this._groupData.ContainsKey(InGroup.dwGroupTask))
            {
                listView = this._groupData.get_Item(InGroup.dwGroupTask);
            }
            else
            {
                listView = new ListView <ResGameTaskGroup>();
                this._groupData.Add(InGroup.dwGroupTask, listView);
            }
            listView.Add(InGroup);
        }
Beispiel #3
0
        protected override void OnInitial()
        {
            ListView <ResGameTaskGroup> groupData = base.RootSys.GetGroupData(base.ID);

            DebugHelper.Assert(null != groupData, "GameTaskGroup.groupData must not be null!");
            this._taskList = new ListView <GameTaskGroup.TaskNode>();
            if (groupData != null)
            {
                for (int i = 0; i < groupData.get_Count(); i++)
                {
                    ResGameTaskGroup       resGameTaskGroup = groupData.get_Item(i);
                    GameTaskGroup.TaskNode taskNode         = default(GameTaskGroup.TaskNode);
                    taskNode.task    = base.RootSys.GetTask(resGameTaskGroup.dwChildTask, true);
                    taskNode.achieve = (resGameTaskGroup.bIsAchieve == 0);
                    this._taskList.Add(taskNode);
                    if (taskNode.task != null)
                    {
                        taskNode.task._AddOwnerGroup(this);
                    }
                }
            }
            DebugHelper.Assert(this._taskList.get_Count() > 0, "GameTaskGroup.taskList.Count must > 0!");
        }
Beispiel #4
0
        protected override void OnInitial()
        {
            ListView <ResGameTaskGroup> groupData = base.RootSys.GetGroupData(base.ID);

            DebugHelper.Assert(null != groupData, "GameTaskGroup.groupData must not be null!");
            this._taskList = new ListView <TaskNode>();
            if (groupData != null)
            {
                for (int i = 0; i < groupData.Count; i++)
                {
                    ResGameTaskGroup group = groupData[i];
                    TaskNode         item  = new TaskNode {
                        task    = base.RootSys.GetTask(group.dwChildTask, true),
                        achieve = group.bIsAchieve == 0
                    };
                    this._taskList.Add(item);
                    if (item.task != null)
                    {
                        item.task._AddOwnerGroup(this);
                    }
                }
            }
            DebugHelper.Assert(this._taskList.Count > 0, "GameTaskGroup.taskList.Count must > 0!");
        }