Added list_processes and began adding process logic to Join button in interactions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user