Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Event hooks for scripting #32

Open
2 of 4 tasks
dmlary opened this issue Dec 30, 2019 · 0 comments
Open
2 of 4 tasks

Event hooks for scripting #32

dmlary opened this issue Dec 30, 2019 · 0 comments

Comments

@dmlary
Copy link
Owner

dmlary commented Dec 30, 2019

Implement generalized way to add event hooks throughout the system.

Events of Interest

Room

  • Entity enters (can be prevented)
  • Entity leaving (can be prevented)

Object

  • picked up/removed from container
  • dropped/placed in another container
  • equipped
  • removed
  • destroyed

Mobs

  • entity (char/obj) enters same room
  • entity (char/obj) leaving same room (can prevent)
  • character speaks in room
  • char speaks to mob

Hooks

  • entity added to container; can be refused
  • entity removed from container; can be prevented
  • entity observes container arrival
  • entity observes container departure; can be prevented
dmlary added a commit that referenced this issue Dec 31, 2019
* Cleanup of Script & expanded testing (closes #29)
* Implemented generic hook architecture (#32)
    * Implemented specific container enter/exit hooks
* Fixed ordering of enter/exit hooks with movement/look (fixes #31)
* Cleanup of teleporter script + tests
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant