示例#1
0
        //尝试增加Unlock条件,tdid表示需要被解锁的id
        public void TryAddUnLockCondition(string tdid)
        {
            if (!BaseGlobal.ACM.IsReseted)
            {
                CLog.Error("ACM 组件没有Reset,无法添加条件");
                return;
            }
            if (!IsInUnLockData(tdid))
            {
                return;
            }
            List <TDBaseData> tempTechs = GetUnLockParent(tdid);

            foreach (var item in tempTechs)
            {
                UnlockData unlockData = GetUnlockData(item, tdid);
                OnAddUnlockCondition(item, unlockData);
            }
        }
示例#2
0
 protected virtual void OnAddUnlockCondition(object fromData, UnlockData unlockData) => throw new System.NotImplementedException();