---------------------------------------------------- -- 此文件由数据工具生成 -- 专属武器配置数据--weapon_data.xml -------------------------------------- Config = Config or {} Config.WeaponData = Config.WeaponData or {} -- -------------------const_start------------------- Config.WeaponData.data_const_length = 1 Config.WeaponData.data_const = { ["unlock_con"] = {key="unlock_con", val=10, desc="專屬武器解鎖條件"} } Config.WeaponData.data_const_fun = function(key) local data=Config.WeaponData.data_const[key] if DATA_DEBUG and data == nil then print('(Config.WeaponData.data_const['..key..'])not found') return end return data end -- -------------------const_end--------------------- -- -------------------const_start------------------- Config.WeaponData.data_const_length = 1 Config.WeaponData.data_const = { ["unlock_con"] = {key="unlock_con", val=10, desc="專屬武器解鎖條件"} } Config.WeaponData.data_const_fun = function(key) local data=Config.WeaponData.data_const[key] if DATA_DEBUG and data == nil then print('(Config.WeaponData.data_const['..key..'])not found') return end return data end -- -------------------const_end---------------------