Add: allow making heightmap screenshot via console
[openttd-github.git] / src / console_func.h
blob6d634a4553e820a8bf6cd2b12b15a69f9e7eabc0
1 /*
2 * This file is part of OpenTTD.
3 * OpenTTD 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, version 2.
4 * OpenTTD 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.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6 */
8 /** @file console_func.h Console functions used outside of the console code. */
10 #ifndef CONSOLE_FUNC_H
11 #define CONSOLE_FUNC_H
13 #include "console_type.h"
15 /* console modes */
16 extern IConsoleModes _iconsole_mode;
18 /* console functions */
19 void IConsoleInit();
20 void IConsoleFree();
21 void IConsoleClose();
23 /* console output */
24 void IConsolePrint(TextColour colour_code, const char *string);
25 void CDECL IConsolePrintF(TextColour colour_code, const char *format, ...) WARN_FORMAT(2, 3);
26 void IConsoleDebug(const char *dbg, const char *string);
27 void IConsoleWarning(const char *string);
28 void IConsoleError(const char *string);
30 /* Parser */
31 void IConsoleCmdExec(const char *cmdstr, const uint recurse_count = 0);
33 bool IsValidConsoleColour(TextColour c);
35 #endif /* CONSOLE_FUNC_H */