Skip to content

Refactor AHBot command passing#85

Merged
Helias merged 2 commits intoazerothcore:masterfrom
DedmenWoW:RefactorCommandPassing
May 10, 2024
Merged

Refactor AHBot command passing#85
Helias merged 2 commits intoazerothcore:masterfrom
DedmenWoW:RefactorCommandPassing

Conversation

@dedmen
Copy link

@dedmen dedmen commented May 9, 2024

Refactor the way commands are passed.
Instead of passing a magic number and writing a comment of what it means, pass an enum.
Instead of copy-pasting the quality level parsing code, make it a lambda function.

This could still be done much cleaner, but its a first step.

It should be refactored to use command tables, some other time.

Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
@Helias Helias merged commit 12fc952 into azerothcore:master May 10, 2024
@dedmen dedmen deleted the RefactorCommandPassing branch May 10, 2024 18:02
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.

2 participants