mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 17:21:19 +00:00

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.
72 lines
2.1 KiB
C++
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
|