#pragma once #include #include "NPCManager.hpp" // these are added to the NPC's static key to avoid collisions const int NPC_ID_OFFSET = 1; const int MOB_ID_OFFSET = 10000; const int MOB_GROUP_ID_OFFSET = 20000; // typedef for JSON object because I don't want to type nlohmann::json every time typedef nlohmann::json json; namespace TableData { extern std::map> RunningSkywayRoutes; extern std::map RunningNPCRotations; extern std::map RunningNPCMapNumbers; extern std::unordered_map>> RunningNPCPaths; // player ID -> following NPC extern std::vector FinishedNPCPaths; // NPC ID -> path extern std::map RunningMobs; extern std::map RunningGroups; extern std::map RunningEggs; void init(); void flush(); }