Beispiel #1
0
        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);
        }
Beispiel #2
0
 public override void ChangeAction(BaseDataModel model)
 {
     _model = (LeaderDataModel)model;
     SetUpItem(State.Select_Dialog, _model.Info);
 }