diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-04-19 09:41:31 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-04-19 09:41:31 -0400 |
commit | 1ba24673e7064e39406e6faf11d790c2dcc2ac00 (patch) | |
tree | 7e2645f6fdec1dcc63ae56366371246f62865dcd /src/map/globals.cpp | |
parent | c3e06ffe6437d27a2a7c6ddb2dc487ff2f007adf (diff) | |
parent | c786a93e91adaf68780a5fd7585f51d0528f92ed (diff) | |
download | tmwa-1ba24673e7064e39406e6faf11d790c2dcc2ac00.tar.gz tmwa-1ba24673e7064e39406e6faf11d790c2dcc2ac00.tar.bz2 tmwa-1ba24673e7064e39406e6faf11d790c2dcc2ac00.tar.xz tmwa-1ba24673e7064e39406e6faf11d790c2dcc2ac00.zip |
Merge self-fork from mekolat/magic-v3
Magic v3
Diffstat (limited to 'src/map/globals.cpp')
-rw-r--r-- | src/map/globals.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/map/globals.cpp b/src/map/globals.cpp index dce3906..49d6074 100644 --- a/src/map/globals.cpp +++ b/src/map/globals.cpp @@ -27,7 +27,6 @@ #include "battle_conf.hpp" #include "itemdb.hpp" #include "quest.hpp" -#include "magic-interpreter.hpp" #include "map_conf.hpp" #include "mob.hpp" #include "npc-internal.hpp" @@ -51,17 +50,6 @@ namespace tmwa std::map<MapName, RString> resnametable; Map<ItemNameId, item_data> item_db; Map<QuestId, quest_data> quest_db; - namespace magic - { - // Global magic conf - magic_conf_t magic_conf; - env_t magic_default_env = { &magic_conf, nullptr }; - namespace magic_v2 - { - std::map<RString, proc_t> procs; - std::map<RString, val_t> const_defm; - } // namespace magic_v2 - } // namespace magic DMap<BlockId, dumb_ptr<block_list>> id_db; UPMap<MapName, map_abstract> maps_db; @@ -85,6 +73,7 @@ namespace tmwa BlockId npc_id = START_NPC_NUM; Map<NpcEvent, struct event_data> ev_db; DMap<NpcName, dumb_ptr<npc_data>> npcs_by_name; + DMap<RString, NpcEvent> spells_by_events; // used for clock-based event triggers // only tm_min, tm_hour, and tm_mday are used tm ev_tm_b = @@ -141,9 +130,5 @@ namespace tmwa // BuiltinFunction builtin_functions[]; // src/map/clif.cpp: // func_table clif_parse_func_table[0x0220]; - // src/map/magic-expr.cpp: - // std::map<ZString, fun_t> functions; - // src/map/magic-stmt.cpp: - // std::map<ZString, op_t> operations; } // namespace map } // namespace tmwa |