public uint[] GetConditionParam(RES_SPECIALFUNCUNLOCK_TYPE type, RES_UNLOCKCONDITION_TYPE conditionType) { uint[] result = new uint[0]; CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo(); ResSpecialFucUnlock dataByKey = GameDataMgr.specialFunUnlockDatabin.GetDataByKey((uint)type); if (dataByKey != null && masterRoleInfo != null) { for (int i = 0; i < dataByKey.UnlockArray.Length; i++) { uint num = dataByKey.UnlockArray[i]; if (num > 0u) { ResUnlockCondition dataByKey2 = GameDataMgr.unlockConditionDatabin.GetDataByKey(num); if (dataByKey2 != null && (RES_UNLOCKCONDITION_TYPE)dataByKey2.wUnlockType == conditionType) { return(dataByKey2.UnlockParam); } } } } return(result); }
public uint[] GetConditionParam(RES_SPECIALFUNCUNLOCK_TYPE type, RES_UNLOCKCONDITION_TYPE conditionType) { uint[] numArray = new uint[0]; CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo(); ResSpecialFucUnlock dataByKey = GameDataMgr.specialFunUnlockDatabin.GetDataByKey((uint)type); if ((dataByKey != null) && (masterRoleInfo != null)) { for (int i = 0; i < dataByKey.UnlockArray.Length; i++) { uint key = dataByKey.UnlockArray[i]; if (key > 0) { ResUnlockCondition condition = GameDataMgr.unlockConditionDatabin.GetDataByKey(key); if ((condition != null) && (((RES_UNLOCKCONDITION_TYPE)condition.wUnlockType) == conditionType)) { return(condition.UnlockParam); } } } } return(numArray); }