mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-15 08:53:51 +00:00
Extract CatmullRomSpline (include/math/spline.hpp, src/math/spline.cpp) as a
standalone, immutable, thread-safe spline module with O(log n) binary segment
search and fused position+tangent evaluation — replacing the duplicated O(n)
evalTimedCatmullRom/orientationFromTangent pair in TransportManager.
Consolidate 7 copies of spline packet parsing into shared functions in
game/spline_packet.{hpp,cpp}: parseMonsterMoveSplineBody (WotLK/TBC),
parseMonsterMoveSplineBodyVanilla, parseClassicMoveUpdateSpline,
parseWotlkMoveUpdateSpline, and decodePackedDelta. Named SplineFlag constants
replace magic hex literals throughout.
Extract TransportPathRepository (game/transport_path_repository.{hpp,cpp}) from
TransportManager — owns path data, DBC loading, and path inference. Paths stored
as PathEntry wrapping CatmullRomSpline + metadata (zOnly, fromDBC, worldCoords).
TransportManager reduced from ~1200 to ~500 lines, focused on transport lifecycle
and server sync.
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
|
||
|---|---|---|
| .. | ||
| animation_callback_handler.hpp | ||
| appearance_composer.hpp | ||
| application.hpp | ||
| audio_callback_handler.hpp | ||
| coordinates.hpp | ||
| entity_spawn_callback_handler.hpp | ||
| entity_spawner.hpp | ||
| input.hpp | ||
| logger.hpp | ||
| memory_monitor.hpp | ||
| npc_interaction_callback_handler.hpp | ||
| profiler.hpp | ||
| spawn_presets.hpp | ||
| transport_callback_handler.hpp | ||
| ui_screen_callback_handler.hpp | ||
| window.hpp | ||
| world_entry_callback_handler.hpp | ||
| world_loader.hpp | ||