Ejemplo n.º 1
0
        protected void ReadUnlockData(TDBaseData data)
        {
            //设置科技解锁
            foreach (var unlockData in data.Unlock)
            {
                if (!AllUnLockKeys.ContainsKey(unlockData.TDID))
                {
                    AllUnLockKeys.Add(unlockData.TDID, new List <TDBaseData>());
                }
                if (!UnlockKeyVal.ContainsKey(data.TDID))
                {
                    UnlockKeyVal.Add(data.TDID, new Dictionary <string, UnlockData>());
                }

                AllUnLockKeys[unlockData.TDID].Add(data);
                UnlockKeyVal[data.TDID].Add(unlockData.TDID, unlockData);
            }
        }
Ejemplo n.º 2
0
 //是否拥有锁定状态
 public bool IsInUnLockData(string tdid)
 {
     return(AllUnLockKeys.ContainsKey(tdid));
 }