Freeciv21
Develop your civilization from humble roots to a global empire
api_client_base.cpp
Go to the documentation of this file.
1
/*
2
Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3
part of Freeciv21. Freeciv21 is free software: you can redistribute it
4
and/or modify it under the terms of the GNU General Public License as
5
published by the Free Software Foundation, either version 3 of the
6
License, or (at your option) any later version. You should have received
7
a copy of the GNU General Public License along with Freeciv21. If not,
8
see https://www.gnu.org/licenses/.
9
*/
10
11
// common
12
#include "
featured_text.h
"
13
14
/* common/scriptcore */
15
#include "
luascript.h
"
16
17
// client
18
#include "
chatline_common.h
"
19
20
#include "
api_client_base.h
"
21
25
void
api_client_chat_base
(lua_State *L,
const
char
*msg)
26
{
27
LUASCRIPT_CHECK_STATE
(L);
28
LUASCRIPT_CHECK_ARG_NIL
(L, msg, 2,
string
);
29
30
output_window_printf
(
ftc_chat_luaconsole
,
"%s"
, msg);
31
}
api_client_chat_base
void api_client_chat_base(lua_State *L, const char *msg)
Print a message in the chat window.
Definition:
api_client_base.cpp:25
api_client_base.h
output_window_printf
void output_window_printf(const struct ft_color color, const char *format,...)
Add a line of text to the output ("chatline") window.
Definition:
chatline_common.cpp:133
chatline_common.h
ftc_chat_luaconsole
const struct ft_color ftc_chat_luaconsole
Definition:
featured_text.cpp:84
featured_text.h
luascript.h
LUASCRIPT_CHECK_STATE
#define LUASCRIPT_CHECK_STATE(L,...)
Definition:
luascript.h:110
LUASCRIPT_CHECK_ARG_NIL
#define LUASCRIPT_CHECK_ARG_NIL(L, value, narg, type,...)
Definition:
luascript.h:131
client
luascript
api_client_base.cpp
Generated by
1.9.1