Exemplo n.º 1
0
        public List <int> GetTechStateInfoList(TechnologyState state)
        {
            List <int> result = new List <int>();

            foreach (var info in AllTechDataDic)
            {
                if (info.Value.currentState == state)
                {
                    result.Add(info.Key);
                }
            }
            return(result);
        }
Exemplo n.º 2
0
        public TechnologyInfo(int techID)
        {
            _model = new TechnologyDataModel();
            if (!_model.Create(techID))
            {
                return;
            }
            this.techID = techID;
            baseType    = TechnologyModule.GetTechBaseType(techID);

            techRequireList      = TechnologyModule.Instance.GetTechRequireList(techID);
            techFinishEffectList = TechnologyModule.Instance.GetTechCompleteEffect(techID);

            if (TechnologyModule.GetTechDataByID(techID).Unlock)
            {
                currentState = TechnologyState.Unlock;
            }
            else
            {
                currentState = TechnologyState.Lock;
            }
        }
Exemplo n.º 3
0
 public TechnologyInfoSaveData(int techID, TechnologyState state, float progress)
 {
     this.technolgyID  = techID;
     this.currentState = state;
     this.progress     = progress;
 }