#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; extern Map quest_db; 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 DMap spells_by_events; 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; extern std::array auth_fifo; extern AuthFifoEntry *auth_fifo_iter; } // namespace map } // namespace tmwa