Skip to content
This repository has been archived by the owner on Dec 23, 2019. It is now read-only.

Add error callback to instances #116

Open
ColonelThirtyTwo opened this issue Sep 16, 2012 · 0 comments
Open

Add error callback to instances #116

ColonelThirtyTwo opened this issue Sep 16, 2012 · 0 comments

Comments

@ColonelThirtyTwo
Copy link
Member

Currently, there's no way for libraries running callback functions or their own hooks to tell the programs using the instance if the instance has errored. This can be solved with library hooks, yes, but library hooks are called for all instances, and most cleanup code isn't applicable for more than a few instances. So an error callback in the context would be nice.

Ex. A SF Processor's instance registers a timer callback. The timer library only sees the instance and not the underlying entity, and has no way of triggering the Processor's clean up code (turning red and updating the overlay text).

daranable pushed a commit to daranable/Starfall-Original that referenced this issue Jan 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant