pioneerspacesim/pioneer — Issue #1028: Event handlers with return values
Author: Brianetta
Created: 2012-02-29 00:54:23+00:00
State: open
Labels: Feature request

For more flexibility, some event handlers should be able to return a value. As an example, the (currently hypothetical) event `onRequestTakeoff` could have a handler connected to it which returns a true or false value. If all of the functions connected to that event return false (or nil), then it acts just like a regular event. If any of them return a true value, then the ship doesn't take off, and the subsequent event (`onShipUndocked`) never fires.