Core/Waypoints: Refactor to split data into path and node related info in db

Port From (https://github.com/TrinityCore/TrinityCore/commit/12186ef8573f60abeff4747da58767ee71092600)
This commit is contained in:
hondacrx
2024-02-05 17:22:55 -05:00
parent 301d3fb00d
commit 771cbadc69
15 changed files with 520 additions and 651 deletions
+4 -4
View File
@@ -915,16 +915,16 @@ namespace Game.Chat
return true;
}
[Command("waypoint_data", RBACPermissions.CommandReloadWaypointData, true)]
[Command("waypoint_path", RBACPermissions.CommandReloadWaypointPath, true)]
static bool HandleReloadWpCommand(CommandHandler handler, StringArguments args)
{
if (args != null)
Log.outInfo(LogFilter.Server, "Re-Loading Waypoints data from 'waypoints_data'");
Log.outInfo(LogFilter.Server, "Re-Loading Waypoints data from 'waypoint_path' and 'waypoint_path_node'");
Global.WaypointMgr.Load();
Global.WaypointMgr.LoadPaths();
if (args != null)
handler.SendGlobalGMSysMessage("DB Table 'waypoint_data' reloaded.");
handler.SendGlobalGMSysMessage("DB Tables 'waypoint_path' and 'waypoint_path_node' reloaded.");
return true;
}