The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
editor_main.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 - 2017 by Tomasz Sniatowski <kailoran@gmail.com>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #pragma once
16 
17 #include <string>
18 
19 class config;
20 class CVideo;
21 
22 namespace editor {
23 
29 };
30 
31 /**
32  * Main interface for launching the editor from the title screen.
33  * @returns How the editor was exited (whether the intent was to
34  * go back to the titlescreen or quit to desktop altogether)
35  */
36 
37 EXIT_STATUS start(const config& game_config, CVideo& video, const std::string& filename = "", bool take_screenshot = false, const std::string& screenshot_filename = "map_screenshot.bmp");
38 
39 } //end namespace editor
std::vector< char_t > string
Definition: video.hpp:29
Manage the empty-palette in the editor.
Definition: action.cpp:29
Game configuration data as global variables.
Definition: build_info.cpp:53
A config object defines a single node in a WML file, with access to child nodes.
Definition: config.hpp:93
EXIT_STATUS start(const config &game_conf, CVideo &video, const std::string &filename, bool take_screenshot, const std::string &screenshot_filename)
Main interface for launching the editor from the title screen.
Definition: editor_main.cpp:28