2014-03-15 16:59:03 +00:00
|
|
|
// SONIC ROBO BLAST 2
|
|
|
|
//-----------------------------------------------------------------------------
|
2016-05-18 00:42:11 +00:00
|
|
|
// Copyright (C) 2012-2016 by John "JTE" Muniz.
|
2018-11-25 12:35:38 +00:00
|
|
|
// Copyright (C) 2012-2018 by Sonic Team Junior.
|
2014-03-15 16:59:03 +00:00
|
|
|
//
|
|
|
|
// This program is free software distributed under the
|
|
|
|
// terms of the GNU General Public License, version 2.
|
|
|
|
// See the 'LICENSE' file for more details.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
/// \file lua_libs.h
|
|
|
|
/// \brief libraries for Lua scripting
|
|
|
|
|
|
|
|
#ifdef HAVE_BLUA
|
|
|
|
|
|
|
|
extern lua_State *gL;
|
|
|
|
|
|
|
|
#define LREG_VALID "VALID_USERDATA"
|
|
|
|
#define LREG_EXTVARS "LUA_VARS"
|
|
|
|
#define LREG_STATEACTION "STATE_ACTION"
|
|
|
|
#define LREG_ACTIONS "MOBJ_ACTION"
|
|
|
|
|
|
|
|
#define META_STATE "STATE_T*"
|
|
|
|
#define META_MOBJINFO "MOBJINFO_T*"
|
|
|
|
#define META_SFXINFO "SFXINFO_T*"
|
|
|
|
|
|
|
|
#define META_MOBJ "MOBJ_T*"
|
|
|
|
#define META_MAPTHING "MAPTHING_T*"
|
|
|
|
|
|
|
|
#define META_PLAYER "PLAYER_T*"
|
|
|
|
#define META_TICCMD "TICCMD_T*"
|
|
|
|
#define META_SKIN "SKIN_T*"
|
|
|
|
#define META_POWERS "PLAYER_T*POWERS"
|
2014-08-04 03:49:33 +00:00
|
|
|
#define META_SOUNDSID "SKIN_T*SOUNDSID"
|
2014-03-15 16:59:03 +00:00
|
|
|
|
|
|
|
#define META_VERTEX "VERTEX_T*"
|
|
|
|
#define META_LINE "LINE_T*"
|
|
|
|
#define META_SIDE "SIDE_T*"
|
|
|
|
#define META_SUBSECTOR "SUBSECTOR_T*"
|
|
|
|
#define META_SECTOR "SECTOR_T*"
|
2014-08-04 03:49:33 +00:00
|
|
|
#define META_FFLOOR "FFLOOR_T*"
|
2018-10-21 15:27:54 +00:00
|
|
|
#ifdef ESLOPE
|
2016-03-03 05:47:06 +00:00
|
|
|
#define META_SLOPE "PSLOPE_T*"
|
2018-10-20 18:00:37 +00:00
|
|
|
#define META_VECTOR2 "VECTOR2_T"
|
|
|
|
#define META_VECTOR3 "VECTOR3_T"
|
2018-10-21 15:27:54 +00:00
|
|
|
#endif
|
2014-08-04 03:49:33 +00:00
|
|
|
#define META_MAPHEADER "MAPHEADER_T*"
|
2014-03-15 16:59:03 +00:00
|
|
|
|
|
|
|
#define META_CVAR "CONSVAR_T*"
|
|
|
|
|
2015-06-17 20:00:10 +00:00
|
|
|
#define META_SECTORLINES "SECTOR_T*LINES"
|
2014-03-15 16:59:03 +00:00
|
|
|
#define META_SIDENUM "LINE_T*SIDENUM"
|
|
|
|
|
|
|
|
#define META_HUDINFO "HUDINFO_T*"
|
|
|
|
#define META_PATCH "PATCH_T*"
|
|
|
|
#define META_COLORMAP "COLORMAP"
|
2014-08-04 03:49:33 +00:00
|
|
|
#define META_CAMERA "CAMERA_T*"
|
2014-03-15 16:59:03 +00:00
|
|
|
|
|
|
|
boolean luaL_checkboolean(lua_State *L, int narg);
|
|
|
|
|
|
|
|
int LUA_EnumLib(lua_State *L);
|
|
|
|
int LUA_SOCLib(lua_State *L);
|
|
|
|
int LUA_BaseLib(lua_State *L);
|
|
|
|
int LUA_MathLib(lua_State *L);
|
|
|
|
int LUA_HookLib(lua_State *L);
|
|
|
|
int LUA_ConsoleLib(lua_State *L);
|
|
|
|
int LUA_InfoLib(lua_State *L);
|
|
|
|
int LUA_MobjLib(lua_State *L);
|
|
|
|
int LUA_PlayerLib(lua_State *L);
|
|
|
|
int LUA_SkinLib(lua_State *L);
|
|
|
|
int LUA_ThinkerLib(lua_State *L);
|
|
|
|
int LUA_MapLib(lua_State *L);
|
|
|
|
int LUA_HudLib(lua_State *L);
|
|
|
|
|
|
|
|
#endif
|