# ==================================================
# int vb.utils.process_manager.count()
# ==================================================
# ==================================================
# Return the number of currently active processes
# ==================================================

scoreboard players set vb.utils.process_manager.count.total tbms.var 0
scoreboard players set vb.utils.process_manager.t_running tbms.var 0
scoreboard players set vb.utils.process_manager.t_total tbms.var 0
function vb/button/main/__count__
scoreboard players operation vb.utils.process_manager.count.total tbms.var += vb.utils.process_manager.t_running tbms.var
scoreboard players set vb.utils.process_manager.t_running tbms.var 0
scoreboard players set vb.utils.process_manager.t_total tbms.var 0
function vb/cutscene/main/__count__
scoreboard players operation vb.utils.process_manager.count.total tbms.var += vb.utils.process_manager.t_running tbms.var
scoreboard players set vb.utils.process_manager.t_running tbms.var 0
scoreboard players set vb.utils.process_manager.t_total tbms.var 0
function vb/powerup/main/__count__
scoreboard players operation vb.utils.process_manager.count.total tbms.var += vb.utils.process_manager.t_running tbms.var
scoreboard players set vb.utils.process_manager.t_running tbms.var 0
scoreboard players set vb.utils.process_manager.t_total tbms.var 0
function vb/volley/main/__count__
scoreboard players operation vb.utils.process_manager.count.total tbms.var += vb.utils.process_manager.t_running tbms.var
scoreboard players set vb.utils.process_manager.t_running tbms.var 0
scoreboard players set vb.utils.process_manager.t_total tbms.var 0
function vb/hub/main/__count__
scoreboard players operation vb.utils.process_manager.count.total tbms.var += vb.utils.process_manager.t_running tbms.var
scoreboard players set vb.utils.process_manager.t_running tbms.var 0
scoreboard players set vb.utils.process_manager.t_total tbms.var 0
function vb/music/main/__count__
scoreboard players operation vb.utils.process_manager.count.total tbms.var += vb.utils.process_manager.t_running tbms.var
scoreboard players set vb.utils.process_manager.t_running tbms.var 0
scoreboard players set vb.utils.process_manager.t_total tbms.var 0
function vb/hoop/main/__count__
scoreboard players operation vb.utils.process_manager.count.total tbms.var += vb.utils.process_manager.t_running tbms.var
scoreboard players set vb.utils.process_manager.t_running tbms.var 0
scoreboard players set vb.utils.process_manager.t_total tbms.var 0
function vb/projectile/main/__count__
scoreboard players operation vb.utils.process_manager.count.total tbms.var += vb.utils.process_manager.t_running tbms.var
scoreboard players operation vb.utils.process_manager.count._ret tbms.var = vb.utils.process_manager.count.total tbms.var
