Skip to content

Refactor Manager class and update method organization - #23

Draft
Quantumyilmaz wants to merge 4 commits into
mainfrom
update
Draft

Refactor Manager class and update method organization#23
Quantumyilmaz wants to merge 4 commits into
mainfrom
update

Conversation

@Quantumyilmaz

Copy link
Copy Markdown
Collaborator

Reorganized and grouped methods in Manager.h for clarity, moving serialization, Papyrus, hooks, and event methods into logical sections. Updated method signatures and moved some method implementations in Manager.cpp for better structure. Replaced OnLongPressEquip with OnOpen in Hooks.cpp and Manager.cpp. No functional logic was changed, but code readability and maintainability are improved.

Reorganized and grouped methods in Manager.h for clarity, moving serialization, Papyrus, hooks, and event methods into logical sections. Updated method signatures and moved some method implementations in Manager.cpp for better structure. Replaced OnLongPressEquip with OnOpen in Hooks.cpp and Manager.cpp. No functional logic was changed, but code readability and maintainability are improved.
Introduced GetRename() helper to centralize and simplify rename lookups for fake IDs. Updated usages in Manager.cpp and Manager.h to use the new method, improving code clarity and reducing duplication.
Eliminated redundant logger::trace statements to reduce log verbosity and improve performance. Also added ChestManager::Reset() to LoadCallback for proper state reset during data loading.
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