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

Structure: Change structure for more clarity between hooks, methods and Eluna files. #210

Closed
wants to merge 4 commits into from

Conversation

iThorgrim
Copy link

Eluna Module Update: Improved File Organization

To enhance the clarity and maintainability of the Eluna module within AzerothCore, the source files have been reorganized:

  • Method files: All files containing method implementations have been moved into a dedicated Methods directory.
  • Hook files: Files managing hooks have been relocated to a Hooks directory.

This reorganization aligns with modern coding practices, helping the project scale more effectively while maintaining its modularity and ease of use.

This also aligns with the Eluna structure.

I couldn't find the ID of the commit from Eluna.

iThorgrim and others added 4 commits January 9, 2025 17:05
### Eluna Module Updates: Lua Version and Static Linking Support

Recent updates to the **Eluna** module in **AzerothCore** introduce new configuration options to manage Lua versions and static linking:

- **`-DLUA_VERSION=luajit/lua52/lua53/lua54`**: Select the Lua version for the module, supporting LuaJIT, Lua 5.2, 5.3, or 5.4.
- **`-DLUA_STATIC=on/off`**: Configure whether Lua should be linked statically or dynamically.

These options allow flexible Lua integration, building on Eluna's existing capabilities to handle different Lua versions. The changes also improve compatibility and performance by enabling static linking where needed.

#### Integration with Eluna

This functionality extends Eluna's existing support for Lua compatibility, mainly in **ElunaCompat.cpp**, which handles Lua version-specific interactions. These updates enhance Eluna’s adaptability for various Lua configurations in **AzerothCore**.
Structure: Change structure for more clarity between hooks, methods and Eluna files.
@iThorgrim
Copy link
Author

iThorgrim commented Jan 12, 2025

For some reason, the action doesn't compile, so here's the local result.

cmake ../ -DCMAKE_INSTALL_PREFIX=/home/ithorgrim/Documents/Projects/World\ of\ Warcraft/1.SoulStorm/_Server -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DWITH_WARNINGS=0 -DTOOLS_BUILD=all -DSCRIPTS=static -DMODULES=static -DLUA_STATIC=false -DLUA_VERSION=luajit && make -j32 install
[ 99%] Built target dbimport
[100%] Linking CXX executable worldserver
[100%] Built target worldserver
Install the project...
-- Install configuration: "RelWithDebInfo"

@iThorgrim iThorgrim closed this Jan 12, 2025
@iThorgrim iThorgrim deleted the master branch January 12, 2025 13:28
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

Successfully merging this pull request may close these issues.

1 participant