Core/AI: Drop script_waypoints and move data to waypoint_data (#28879)

This commit is contained in:
ModoX
2023-04-10 04:04:33 +02:00
committed by GitHub
parent 083b8d6c84
commit 89e09dc44e
41 changed files with 472 additions and 452 deletions

View File

@@ -33,11 +33,8 @@ class TC_GAME_API SystemMgr
static SystemMgr* instance();
// database
void LoadScriptWaypoints();
void LoadScriptSplineChains();
WaypointPath const* GetPath(uint32 creatureEntry) const;
std::vector<SplineChainLink> const* GetSplineChain(uint32 entry, uint16 chainId) const;
std::vector<SplineChainLink> const* GetSplineChain(Creature const* who, uint16 id) const;
@@ -50,7 +47,6 @@ class TC_GAME_API SystemMgr
SystemMgr(SystemMgr const&) = delete;
SystemMgr& operator=(SystemMgr const&) = delete;
std::unordered_map<uint32, WaypointPath> _waypointStore;
std::unordered_map<ChainKeyType, std::vector<SplineChainLink>> m_mSplineChainsMap; // spline chains
};