Freeciv21
Develop your civilization from humble roots to a global empire
luaconsole_common.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2021 Freeciv21 and Freeciv contributors. This file is
3  part of Freeciv21. Freeciv21 is free software: you can
4  ^oo^ redistribute it and/or modify it under the terms of the GNU
5  (..) General Public License as published by the Free Software
6  () () Foundation, either version 3 of the License, or (at your
7  ()__() option) any later version. You should have received
8  a copy of the GNU General Public License along with Freeciv21. If not,
9  see https://www.gnu.org/licenses/.
10 **************************************************************************/
11 #pragma once
12 
13 struct ft_color;
14 struct text_tag_list;
15 
16 void luaconsole_append(const struct ft_color color,
17  const char *featured_text);
18 void luaconsole_vprintf(const struct ft_color color, const char *format,
19  va_list args);
20 void luaconsole_printf(const struct ft_color color, const char *format, ...)
21  fc__attribute((__format__(__printf__, 2, 3)));
22 void luaconsole_event(const char *plain_text,
23  const struct text_tag_list *tags);
void luaconsole_vprintf(const struct ft_color color, const char *format, va_list args)
Add a line of text to the output ("chatline") window.
void luaconsole_printf(const struct ft_color color, const char *format,...) fc__attribute((__format__(__printf__
void luaconsole_append(const struct ft_color color, const char *featured_text)
Add a line of text to the output ("chatline") window, like puts() would do it in the console.
void luaconsole_welcome_message()
Standard welcome message.
void void luaconsole_event(const char *plain_text, const struct text_tag_list *tags)
Add a line of text to the output ("chatline") window from server event.
int fc__attribute((nonnull(1, 3)))