Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add object reference in evt_handler func call #163

Open
hi-liang opened this issue Aug 24, 2023 · 0 comments
Open

Add object reference in evt_handler func call #163

hi-liang opened this issue Aug 24, 2023 · 0 comments

Comments

@hi-liang
Copy link
Member

Currently args passed are scene, evt, msg.

While it's possible to query the scene objects dict for evt.object_id it seems like it would be easy to just pass the reference directly since that lookup is already performed, maybe just tack on obj as attribute object to the event

arena-py/arena/scene.py

Lines 141 to 142 in 743eaee

if obj.evt_handler:
self.callback_wrapper(obj.evt_handler, event, payload)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant