mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 01:23:51 +00:00
refactor: extract loadWeaponM2() to deduplicate weapon model loading
Extract shared M2+skin loading logic into Application::loadWeaponM2(), replacing duplicate 15-line blocks in loadEquippedWeapons() and tryAttachCreatureVirtualWeapons(). Future weapon loading changes only need to update one place.
This commit is contained in:
parent
43caf7b5e6
commit
56f8f5c592
2 changed files with 24 additions and 45 deletions
|
|
@ -73,6 +73,7 @@ public:
|
|||
|
||||
// Weapon loading (called at spawn and on equipment change)
|
||||
void loadEquippedWeapons();
|
||||
bool loadWeaponM2(const std::string& m2Path, pipeline::M2Model& outModel);
|
||||
|
||||
// Logout to login screen
|
||||
void logoutToLogin();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue