From b3112bd3f6d0887fdf81610327c9edad08a0cfaf Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 10 Jan 2015 17:32:49 -0800 Subject: Use generated config for map --- src/map/globals.hpp | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 src/map/globals.hpp (limited to 'src/map/globals.hpp') diff --git a/src/map/globals.hpp b/src/map/globals.hpp new file mode 100644 index 0000000..33cfec8 --- /dev/null +++ b/src/map/globals.hpp @@ -0,0 +1,108 @@ +#pragma once +// globals.hpp - Evil global variables for tmwa-map. +// +// Copyright © 2014 Ben Longbons +// +// This file is part of The Mana World (Athena server) +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +#include "fwd.hpp" + +#include + +#include +#include +#include +#include +#include + +#include "../ints/wrap.hpp" + +#include "../net/timer.t.hpp" + +#include "../mmo/skill.t.hpp" + +#include "consts.hpp" +#include "script-buffer.hpp" + + +namespace tmwa +{ + namespace map + { + extern BattleConf battle_config; + extern MapConf map_conf; + extern Session *char_session; + extern int chrif_state; + extern std::map resnametable; + extern Map item_db; + namespace magic + { + // Global magic conf + extern magic_conf_t magic_conf; + extern env_t magic_default_env; + namespace magic_v2 + { + extern std::map procs; + extern std::map const_defm; + } // namespace magic_v2 + } // namespace magic + extern DMap> id_db; + extern UPMap maps_db; + extern DMap> nick_db; + extern Map charid_db; + extern int world_user_count; + extern Array, unwrap(MAX_FLOORITEM)> object; + extern BlockId first_free_object_id; + extern int save_settings; + extern int block_free_lock; + extern std::vector> block_free; + extern block_list bl_head; + extern std::unique_ptr map_logfile; + extern long map_logfile_index; + extern mob_db_ mob_db[2001]; + extern std::list npc_srcs; + extern int npc_warp, npc_shop, npc_script, npc_mob; + extern BlockId npc_id; + extern Map ev_db; + extern DMap> npcs_by_name; + extern tm ev_tm_b; + extern Map party_db; + extern std::map gm_accountm; + extern tick_t natural_heal_tick, natural_heal_prev_tick; + extern interval_t natural_heal_diff_tick; + extern int last_save_fd; + extern bool save_flag; + extern Map storage_db; + extern Map str_datam; + extern str_data_t LABEL_NEXTLINE_; + extern Map scriptlabel_db; + extern std::set probable_labels; + extern UPMap userfunc_db; + extern int parse_cmd_if; + extern Option> parse_cmdp; + extern InternPool variable_names; + extern ZString startptr; + extern int startline; + extern int script_errors; + extern DMap mapreg_db; + extern Map mapregstr_db; + extern int mapreg_dirty; + extern std::vector skill_pool_skills; + extern earray skill_db; + extern BlockId skill_area_temp_id; + extern int skill_area_temp_hp; + } // namespace map +} // namespace tmwa -- cgit v1.2.3-70-g09d2