Added list_processes and began adding process logic to Join button in interactions
This commit is contained in:
1 parent
592226fe5a
commit
48b5b3070b
2 files changed
+24
-2
No files matched your search
@@ -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