issues
search
dmlary
/
morrow
Ruby ECS-based MUD server
MIT License
4
stars
1
forks
source link
Event hooks for scripting
#32
Open
dmlary
opened
4 years ago
dmlary
commented
4 years ago
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
[x] entity added to container; can be refused
[x] entity removed from container; can be prevented
[ ] entity observes container arrival
[ ] entity observes container departure; can be prevented
Implement generalized way to add event hooks throughout the system.
Events of Interest
Room
Object
Mobs
Hooks