Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add content to Hooks CMake page #177

Open
FrancescoBorzi opened this issue Jan 26, 2020 · 4 comments
Open

Add content to Hooks CMake page #177

FrancescoBorzi opened this issue Jan 26, 2020 · 4 comments
Assignees

Comments

@FrancescoBorzi
Copy link
Contributor

FrancescoBorzi commented Jan 26, 2020

This page needs the list of available Cmake hooks as well as some examples about how to use them:

http://www.azerothcore.org/wiki/Hooks-Cmake


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@Kitzunu
Copy link
Member

Kitzunu commented May 5, 2022

When?

@pangolp
Copy link
Contributor

pangolp commented Jun 30, 2022

The truth is that I don't know where to get this information, but I would like to collaborate in the creation and updating of the document. If you have any information about it that you can provide me, I will try to see what I can build.

@Yehonal
Copy link
Member

Yehonal commented Jun 30, 2022

https://github.com/azerothcore/azerothcore-wotlk/search?q=CU_RUN_HOOK&type=

The hooks are executed with the CU_RUN_HOOK method of our cmake library and they are just hooks that run in a certain time of the build phase to allow you injecting some cmake operations in modules to extend the build phase.
You can check them with the link above or search one by one in our codebase and see where they are executed. I have used them a lot in past for the AzerothShard module

@pangolp
Copy link
Contributor

pangolp commented Jul 9, 2022

I have been learning a little bit about them, not so much the cmake ones, but the ones of the emulator itself, and how they can be useful, for example, when creating modules. In fact, for the loot module in area, I was told that I would need one, as well as for another idea I had in mind, about the possibility of allowing the mission items to have a 2048 flag, and that way, all members of the group, can get that item (that today I "solved" with SQL, adding the flag, but it is not something blizzlike, so at some point, I would like to solve it by implementing perhaps a module and a hook).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants