[crossfire] Proposal: Unified event system

Alex Schultz alex_sch at telus.net
Sun Sep 10 00:55:39 CDT 2006


Alex Schultz wrote:
> -For events that return a value, hooks may or may not return a value.
> Hooks can be set to active or passive, active ones have a chance of
> returning a value whereas passive will not. When an active hook returns
> a value, active hooks of lower priority will not be run, though passive
> ones still will be.
>
> -Events with no return value only allow passive hooks
>     
> -For events without return values, hooks may at runtime opt to force
> priority 0 (default server internal) or lower, not to run.
>   
I'm a bit uncertain of the rules for active/passive hooks, and of when
to not run other hooks, that I proposed here; It just seems a bit
arbitrary to me, but it seems like the best idea to me right now, but
I'm not comfortable with it. Anyone have any comments on those parts of
my proposal?

Alex Schultz



More information about the crossfire mailing list