Darktide-Mod-Framework/vmf
FireSiku 06b23556a3 Implementing new hook system.
Changes includes:
- No longer relies on any globals.
- No longer uses loadstrings, or recreate the hook chain frivolously.
- Adding :before() and :after() which will call the func before and after the function call.
- Added :rawhook() that imitate the old 'back' functionality, by replacing the original function at the "end" of the chain.

- Refactoring to only fetch original function once.
- Refactor to use a single internal _registry table.

- registry.hooks[hook_type] are now using metatable to automatically generate tables.
- Rawhooks now have their own specialized hooks, that will call the original if disabled.
- Make sure rawhooks are limited to one per function.

- No longer has the ability to overwrite hooks. We remove a table lookup from every hook call and make the code more straightforward.
- The functionality of overwriting a hook is not used in any mods. Any code that would require this can simply be written in a better way without bogging down the whole system for everyone.
2018-06-07 18:07:24 -04:00
..
core Added VT2 compatibility; updated project the last VMB version 2018-05-05 19:07:40 +03:00
gui/vmf Mutators module reworking 2018-04-19 04:21:49 +03:00
localization Mutators: cleaned up GUI and added localization 2018-05-19 20:53:50 +03:00
materials/vmf Mutators module reworking 2018-04-19 04:21:49 +03:00
resource_packages Mutators: moving, removig and renaming stuff 2018-05-22 11:52:57 +03:00
scripts/mods/vmf Implementing new hook system. 2018-06-07 18:07:24 -04:00
itemV1.cfg Update Vermintide 1 workshop description 2018-06-06 14:55:37 -06:00
itemV2.cfg Steam Workshop Config [V2]: updated tags, applied VMF for sanctioning 2018-06-07 10:28:31 +03:00
preview.jpg Change project to make it work with UnShame's gulp script 2018-03-08 19:31:30 +03:00
preview2.png Updated workshop info 2018-05-19 20:53:50 +03:00
settings.ini Change project to make it work with UnShame's gulp script 2018-03-08 19:31:30 +03:00
vmf.mod Change project to make it work with UnShame's gulp script 2018-03-08 19:31:30 +03:00