Skip to content

Commit

Permalink
[Parse] implement impact & execute callbacks
Browse files Browse the repository at this point in the history
`parse_effects()` now accepts functor arguments with the signature `void F( parse_callback_e )`
* `PARSE_CALLBACK_PRE_IMPACT` will run the callback before action_t::impact()
* `PARSE_CALLBACK_POST_IMPACT` will run the callback after action_t::impact()
* `PARSE_CALLBACK_POST_EXECUTE` will run the callback after action_t::execute()

`EXPIRE_BUFF` argument to `parse_effects()` will create a callback that expires the buff after execute()
`DECREMENT_BUFF` argument to `parse_effects()` will create a callback that decrements the buff after execute()
  • Loading branch information
gastank committed Oct 9, 2024
1 parent 446a986 commit a862d6a
Show file tree
Hide file tree
Showing 4 changed files with 313 additions and 310 deletions.
Loading

0 comments on commit a862d6a

Please sign in to comment.