Freeciv-3.3: /fast/freeciv/nightly/main/client/luascript/api_client_base.c Source File

Freeciv-3.3

Loading...
Searching...
No Matches
api_client_base.c
Go to the documentation of this file.
1/*****************************************************************************
2 Freeciv - Copyright (C) 2005 - The Freeciv Project
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12*****************************************************************************/
13
14#ifdef HAVE_CONFIG_H
15#include <fc_config.h>
16#endif
17
18/* common */
19#include "featured_text.h"
20
21/* common/scriptcore */
22#include "luascript.h"
23
24/* client */
25#include "chatline_common.h"
26
27#include "api_client_base.h"
28
29/*************************************************************************/
32 void api_client_chat_base(lua_State *L, const char *msg)
33{
34 LUASCRIPT_CHECK_STATE(L);
35 LUASCRIPT_CHECK_ARG_NIL(L, msg, 2, string);
36
37 output_window_printf(ftc_chat_luaconsole, "%s", msg);
38}
api_client_chat_base
void api_client_chat_base(lua_State *L, const char *msg)
Definition api_client_base.c:32
api_client_base.h
output_window_printf
void output_window_printf(const struct ft_color color, const char *format,...)
Definition chatline_common.c:153
chatline_common.h
incite_cost
char * incite_cost
Definition comments.c:74
ftc_chat_luaconsole
const struct ft_color ftc_chat_luaconsole
Definition featured_text.c:89
featured_text.h
luascript.h
LUASCRIPT_CHECK_STATE
#define LUASCRIPT_CHECK_STATE(L,...)
Definition luascript.h:117
LUASCRIPT_CHECK_ARG_NIL
#define LUASCRIPT_CHECK_ARG_NIL(L, value, narg, type,...)
Definition luascript.h:138