wesnoth/src/resources.hpp
Chris Beck 4164a24a59 take cmdline arg for lua scripts to execute at application start
If a lua script is passed as an argument to wesnoth, wesnoth will
actually instantiate the application_lua_kernel defined in the
previous commits, initialize it, and run the script in that
environment.
2014-11-09 20:47:27 -05:00

72 lines
2.1 KiB
C++

/*
Copyright (C) 2009 - 2014 by Guillaume Melquiond <guillaume.melquiond@gmail.com>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
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 2 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.
See the COPYING file for more details.
*/
#ifndef RESOURCES_H_
#define RESOURCES_H_
#include <vector>
#include <boost/shared_ptr.hpp>
class game_board;
class game_config_manager;
class game_display;
class gamemap;
class game_data;
class filter_context;
class LuaKernel;
class application_lua_kernel;
class play_controller;
class team;
class fake_unit_manager;
class tod_manager;
class unit_map;
class persist_manager;
class game_classification;
struct mp_game_settings;
namespace actions { class undo_list; }
namespace halo { class manager; }
namespace soundsource { class manager; }
namespace pathfind { class manager; }
namespace wb { class manager; } //whiteboard manager
namespace resources
{
extern game_config_manager *config_manager;
extern play_controller *controller;
extern game_board *gameboard;
extern game_data *gamedata;
extern LuaKernel *lua_kernel; // Set by game_events::manager.
extern application_lua_kernel *app_lua_kernel;
extern persist_manager *persist;
extern game_classification *classification;
extern game_display *screen;
extern filter_context *filter_con;
extern const mp_game_settings *mp_settings;
extern soundsource::manager *soundsources;
extern std::vector<team> *teams;
extern fake_unit_manager *fake_units;
extern ::tod_manager *tod_manager;
extern pathfind::manager *tunnels;
extern actions::undo_list *undo_stack;
extern unit_map *units;
extern boost::shared_ptr<wb::manager> whiteboard;
extern bool simulation_;
}
#endif