OpenFusion/src/TableData.hpp

25 lines
739 B
C++
Raw Normal View History

#pragma once
#include <map>
2020-10-03 02:05:20 +00:00
#include "NPCManager.hpp"
// these are added to the NPC's static key to avoid collisions
const int NPC_ID_OFFSET = 0;
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<int32_t, std::vector<WarpLocation>> RunningSkywayRoutes;
2020-10-06 21:59:12 +00:00
extern std::map<int32_t, int> RunningNPCRotations;
extern std::map<int32_t, int> RunningNPCMapNumbers;
extern std::map<int32_t, BaseNPC*> RunningMobs;
extern std::map<int32_t, BaseNPC*> RunningGroups;
2020-11-08 08:42:49 +00:00
extern std::map<int32_t, BaseNPC*> RunningEggs;
2020-10-03 02:05:20 +00:00
void init();
void flush();
}