create-item: push linkable events.

push linkable object-added/removed events.
This commit is contained in:
George Kiagiadakis
2022-05-20 17:43:43 +03:00
committed by Julian Bouzas
parent 3c2c954107
commit aefc50da3d

View File

@@ -123,6 +123,11 @@ AsyncEventHook {
Log.info(item, "activated item for node " .. tostring(id))
item:register ()
transition:advance()
props = {}
props["event.subject.type"] = "linkable"
EventDispatcher.push_event { type = "object-added",
priority = 50, properties = props, subject = item}
end,
},
},
@@ -156,5 +161,10 @@ SimpleEventHook {
items[id]:remove ()
items[id] = nil
end
props = {}
props["event.subject.type"] = "linkable"
EventDispatcher.push_event { type = "object-removed",
priority = 50, properties = props, subject = item}
end
}:register()