-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
chore(Core/EventMgr): Align code to Code standard & improve LoadFromDB function #21151
Open
Exitare
wants to merge
7
commits into
azerothcore:master
Choose a base branch
from
Exitare:adjust_game_event_mgr
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+977
−882
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
CORE
Related to the core
file-cpp
Used to trigger the matrix build
labels
Jan 13, 2025
Exitare
changed the title
chore(Core/EventMgr) Align code to Code standard & improve LoadFromDB function
chore(Core/EventMgr): Align code to Code standard & improve LoadFromDB function
Jan 13, 2025
sogladev
approved these changes
Jan 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. The new log messages taught me there are a few unused tables 😄
...
Loading Game Event Saves Data...
>> Loaded 0 Game Event Saves In Game Events. DB Table `game_event_save` Is Empty.
Loading Game Event Prerequisite Data...
>> Loaded 0 Game Rvent Prerequisites in Game Events. DB Table `game_event_prerequisite` Is Empty.
Loading Game Event Creature Data...
>> Loaded 9982 Creatures In Game Events in 5 ms
Loading Game Event GO Data...
>> Loaded 30711 Gameobjects In Game Events in 12 ms
Loading Game Event Model/Equipment Change Data...
>> Loaded 0 Model/Equipment Changes In Game Events. DB Table `game_event_model_equip` Is Empty.
Loading Game Event Quest Data...
>> Loaded 242 Quests Additions In Game Events in 0 ms
Loading Game Event GO Quest Data...
>> Loaded 78 Quests Additions In Game Events in 1 ms
Loading Game Event Quest Condition Data...
>> Loaded 0 quest event Conditions In Game Events. DB Table `game_event_quest_condition` Is Empty.
Loading Game Event Condition Data...
>> Loaded 0 Conditions In Game Events. DB table `game_event_condition` Is Empty.
Loading Game Event Condition Save Data...
>> Loaded 0 Condition Saves In Game Events. DB Table `game_event_condition_save` Is Empty.
...
@Exitare how can I test this PR? |
The PR doesnt change functionality, but rather just code alignments. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
CORE
Related to the core
file-cpp
Used to trigger the matrix build
Ready to be Reviewed
Script
Waiting to be Tested
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The EventMgr uses a lot of raw sqls and has a pretty bloated LoadFromDB function that might be better split into functions e.g. for reloading purposes in the future. Code Standards of AC are also not followed and will be addressed with this PR.
Changes Proposed:
This PR proposes changes to:
Issues Addressed:
SOURCE:
The changes have been validated through:
Tests Performed:
This PR has been:
How to Test the Changes:
Known Issues and TODO List:
How to Test AzerothCore PRs
When a PR is ready to be tested, it will be marked as [WAITING TO BE TESTED].
You can help by testing PRs and writing your feedback here on the PR's page on GitHub. Follow the instructions here:
http://www.azerothcore.org/wiki/How-to-test-a-PR
REMEMBER: when testing a PR that changes something generic (i.e. a part of code that handles more than one specific thing), the tester should not only check that the PR does its job (e.g. fixing spell XXX) but especially check that the PR does not cause any regression (i.e. introducing new bugs).
For example: if a PR fixes spell X by changing a part of code that handles spells X, Y, and Z, we should not only test X, but we should test Y and Z as well.