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); }
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; } }
public TechnologyInfoSaveData(int techID, TechnologyState state, float progress) { this.technolgyID = techID; this.currentState = state; this.progress = progress; }