first pass of new process system

This commit is contained in:
Luke Miller
2021-11-29 17:53:32 -05:00
parent f381845d21
commit 1d45dc38b0
2 changed files with 58 additions and 14 deletions

View File

@@ -5,12 +5,13 @@ JoinOrg = {}
JoinOrg_mt = { __index = JoinOrg }
function JoinOrg.create(initiator, org)
function JoinOrg.create(initiator, org, id)
local inst = {
name = "Join an org",
desc = "Initiator chooses an org to become a member of. Nothing happens if they are already in an org.",
initiator = initiator,
org = org
org = org,
id = id
}
setmetatable(inst, JoinOrg_mt)
return inst
@@ -71,6 +72,7 @@ end
function JoinOrg:on_success()
self.org:add_member(self.initiator)
self.org:delete_process(self.id)
end
-- ===================================