local post_data_init_list = {};
local need_load_data_num = 0
local function post_data_init()
local temp_post_init = dup(post_data_init_list);
post_data_init_list = {};
for _, f in ipairs(temp_post_init) do
f();
end
end
function register_post_data_init(f)
post_data_init_list[#post_data_init_list + 1] = f;
end
function set_need_load_data_num(num)
need_load_data_num = num
end
function finish_one_load_data()
need_load_data_num = need_load_data_num - 1
if need_load_data_num <= 0 then
post_data_init()
end
end