Added list_processes and began adding process logic to Join button in interactions

This commit is contained in:
Nathan Schneider
2021-05-10 23:24:52 -06:00
parent 592226fe5a
commit 48b5b3070b
2 changed files with 24 additions and 2 deletions

View File

@@ -13,6 +13,21 @@
modpol.processes = {}
-- Function: modpol.list_processes
-- output: a table of the names of processes
function modpol.list_processes()
local output = {}
if modpol.processes then
for k,v in ipairs(modpol.processes) do
if v.name then
table.insert(output,v.name)
end
end
end
return output
end
-- ===================================================================
-- Function: modpol.register_process
-- Adds a process to modpol.processes