mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-15 17:03:50 +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>
|
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| test_activity_fsm.cpp | ||
| test_anim_capability.cpp | ||
| test_animation_ids.cpp | ||
| test_blp_loader.cpp | ||
| test_combat_fsm.cpp | ||
| test_dbc_loader.cpp | ||
| test_entity.cpp | ||
| test_frustum.cpp | ||
| test_indoor_shadows.cpp | ||
| test_locomotion_fsm.cpp | ||
| test_m2_structs.cpp | ||
| test_opcode_table.cpp | ||
| test_packet.cpp | ||
| test_spline.cpp | ||
| test_srp.cpp | ||
| test_transport_path_repo.cpp | ||