--============================================================ -- @Author: Mark(车英达) -- @E-mail: 120006937@qq.com -- @Date: 2019-10-24 17:24:13 -- @Last Modified time: 2020-02-10 14:45:16 --============================================================ package.path = "game_conf/?.lua;../game_conf/?.lua;" .. package.path local loadad_list = {} local moduleList = { "util", "game_conf", "fish_conf", "screen_limit_conf", "special_fish_conf", "msg_conf", "tips_conf", "path_config", "fish_stage_conf", "given_conf", "particular_conf", "special_gun_conf", "prop_conf", "poseidon_conf", "award_pool", "jump_arena_conf", "gun_unlock_conf", "match_conf", "user_pool", "lucky_task", "fragment_task_conf" } local function loadModule(filename) loadad_list[filename] = require(filename) end function reload() math.randomseed(os.time()) for i = 1, 10 do math.random() end -- 热加载 for k, v in pairs(loadad_list) do package.loaded[k] = nil end for i, v in pairs(moduleList) do loadad_list[v] = require(v) end return true end function getModuleList() ret = { moduleList = {} } for i, v in ipairs(moduleList) do table.insert(ret.moduleList, v) end return ret end