예제 #1
0
파일: DataManager.cs 프로젝트: EpicProj/RPG
        public List <BaseDataModel> GetCampLeaderSelectModelList(int campID)
        {
            List <BaseDataModel> result = new List <BaseDataModel>();
            var list = CampModule.GetCampLeaderSelectPresetList(campID);

            for (int i = 0; i < gamePrepareData.currentLeaderInfoList.Count; i++)
            {
                ///Remove AlreadySelect
                if (gamePrepareData.currentLeaderInfoList[i].forceSelcet)
                {
                    continue;
                }
                for (int j = 0; j < list.Count; j++)
                {
                    if (list[j].leaderID == gamePrepareData.currentLeaderInfoList[i].leaderID)
                    {
                        list.RemoveAt(j);
                    }
                }
            }

            for (int i = 0; i < list.Count; i++)
            {
                LeaderDataModel model = new LeaderDataModel();
                if (model.CreateLeaderModel(list[i].leaderID))
                {
                    result.Add(model);
                }
            }
            return(result);
        }
예제 #2
0
 public override void ChangeAction(BaseDataModel model)
 {
     _model = (LeaderDataModel)model;
     SetUpItem(State.Select_Dialog, _model.Info);
 }