Added event handler for :entity_moved, added door script, various tweaks

This commit is contained in:
2019-09-26 16:19:01 -05:00
parent f7936b38bc
commit 8df05eda13
11 changed files with 43 additions and 14 deletions

View File

@@ -0,0 +1,15 @@
class IMICFPS
class EventHandler
class EntityMoved < EventHandler
def handles
[:entity_moved]
end
def handle(subscriber, context, *args)
event = EventHandler::Event.new(entity: context)
subscriber.trigger(event)
end
end
end
end