diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2015-01-10 17:32:49 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2015-01-23 01:57:20 -0800 |
commit | b3112bd3f6d0887fdf81610327c9edad08a0cfaf (patch) | |
tree | e1b1099468399a3b22852a5947a3cac47da904ca /src/map/npc.cpp | |
parent | c482e420bcf447073ffe3ff8a106a0561e0baadd (diff) | |
download | tmwa-b3112bd3f6d0887fdf81610327c9edad08a0cfaf.tar.gz tmwa-b3112bd3f6d0887fdf81610327c9edad08a0cfaf.tar.bz2 tmwa-b3112bd3f6d0887fdf81610327c9edad08a0cfaf.tar.xz tmwa-b3112bd3f6d0887fdf81610327c9edad08a0cfaf.zip |
Use generated config for map
Diffstat (limited to 'src/map/npc.cpp')
-rw-r--r-- | src/map/npc.cpp | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/src/map/npc.cpp b/src/map/npc.cpp index cd80cdf..3320039 100644 --- a/src/map/npc.cpp +++ b/src/map/npc.cpp @@ -45,7 +45,9 @@ #include "../proto2/map-user.hpp" #include "battle.hpp" +#include "battle_conf.hpp" #include "clif.hpp" +#include "globals.hpp" #include "itemdb.hpp" #include "map.hpp" #include "pc.hpp" @@ -57,8 +59,8 @@ namespace tmwa { -BlockId npc_id = START_NPC_NUM; - +namespace map +{ BlockId npc_get_new_npc_id(void) { BlockId rv = npc_id; @@ -66,25 +68,6 @@ BlockId npc_get_new_npc_id(void) return rv; } -Map<NpcEvent, struct event_data> ev_db; -DMap<NpcName, dumb_ptr<npc_data>> npcs_by_name; - -// used for clock-based event triggers -// only tm_min, tm_hour, and tm_mday are used -static -struct tm ev_tm_b = -{ - .tm_sec= 0, - .tm_min= -1, - .tm_hour= -1, - .tm_mday= -1, - .tm_mon= 0, - .tm_year= 0, - .tm_wday= 0, - .tm_yday= 0, - .tm_isdst= 0, -}; - /*========================================== * NPCの無効化/有効化 * npc_enable @@ -936,4 +919,5 @@ void npc_free(dumb_ptr<npc_data> nd) map_delblock(nd); npc_free_internal(nd); } +} // namespace map } // namespace tmwa |