mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
161 lines
4.6 KiB
C
161 lines
4.6 KiB
C
// DR. ROBOTNIK'S RING RACERS
|
|
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 2025 by Kart Krew.
|
|
// Copyright (C) 2022 by Sonic Team Junior.
|
|
// Copyright (C) 2016 by John "JTE" Muniz.
|
|
//
|
|
// 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
|
|
#ifndef __LUA_LIBS_H__
|
|
#define __LUA_LIBS_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern lua_State *gL;
|
|
|
|
#define MUTABLE_TAGS
|
|
|
|
#define LREG_VALID "VALID_USERDATA"
|
|
#define LREG_EXTVARS "LUA_VARS"
|
|
#define LREG_STATEACTION "STATE_ACTION"
|
|
#define LREG_ACTIONS "MOBJ_ACTION"
|
|
#define LREG_METATABLES "METATABLES"
|
|
|
|
#define META_STATE "STATE_T*"
|
|
#define META_MOBJINFO "MOBJINFO_T*"
|
|
#define META_SFXINFO "SFXINFO_T*"
|
|
#define META_SKINCOLOR "SKINCOLOR_T*"
|
|
#define META_COLORRAMP "SKINCOLOR_T*RAMP"
|
|
#define META_SPRITEINFO "SPRITEINFO_T*"
|
|
#define META_PIVOTLIST "SPRITEFRAMEPIVOT_T[]"
|
|
#define META_FRAMEPIVOT "SPRITEFRAMEPIVOT_T*"
|
|
#define META_SPRITEBRIGHTLIST "SPRITEBRIGHTMAP_T[]"
|
|
#define META_PRECIPPROPS "PRECIPPROPS_T*"
|
|
|
|
#define META_TAGLIST "TAGLIST"
|
|
|
|
#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_KARTHUD "PLAYER_T*KARTHUD"
|
|
#define META_RESPAWN "PLAYER_T*RESPAWN"
|
|
#define META_COLLIDE "PLAYER_T*COLLIDE"
|
|
#define META_SOUNDSID "SKIN_T*SOUNDSID"
|
|
#define META_SKINSPRITES "SKIN_T*SPRITES"
|
|
#define META_SKINSPRITESLIST "SKIN_T*SPRITES[]"
|
|
|
|
#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*"
|
|
#define META_FFLOOR "FFLOOR_T*"
|
|
#ifdef HAVE_LUA_SEGS
|
|
#define META_SEG "SEG_T*"
|
|
#define META_NODE "NODE_T*"
|
|
#endif
|
|
#define META_SLOPE "PSLOPE_T*"
|
|
#define META_VECTOR2 "VECTOR2_T"
|
|
#define META_VECTOR3 "VECTOR3_T"
|
|
#define META_MAPHEADER "MAPHEADER_T*"
|
|
|
|
#define META_POLYOBJ "POLYOBJ_T*"
|
|
|
|
#define META_CVAR "CONSVAR_T*"
|
|
|
|
#define META_SECTORLINES "SECTOR_T*LINES"
|
|
#ifdef MUTABLE_TAGS
|
|
#define META_SECTORTAGLIST "sector_t.taglist"
|
|
#endif
|
|
#define META_SIDENUM "LINE_T*SIDENUM"
|
|
#define META_LINEARGS "LINE_T*ARGS"
|
|
#define META_LINESTRINGARGS "LINE_T*STRINGARGS"
|
|
#define META_SECTORARGS "SECTOR_T*ARGS"
|
|
#define META_SECTORSTRINGARGS "SECTOR_T*STRINGARGS"
|
|
#define META_THINGARGS "MAPTHING_T*ARGS"
|
|
#define META_THINGSTRINGARGS "MAPTHING_T*STRINGARGS"
|
|
#define META_POLYOBJVERTICES "POLYOBJ_T*VERTICES"
|
|
#define META_POLYOBJLINES "POLYOBJ_T*LINES"
|
|
#ifdef HAVE_LUA_SEGS
|
|
#define META_NODEBBOX "NODE_T*BBOX"
|
|
#define META_NODECHILDREN "NODE_T*CHILDREN"
|
|
#endif
|
|
|
|
#define META_BBOX "BOUNDING_BOX"
|
|
|
|
#define META_PATCH "PATCH_T*"
|
|
#define META_COLORMAP "COLORMAP"
|
|
#define META_CAMERA "CAMERA_T*"
|
|
|
|
#define META_ACTION "ACTIONF_T*"
|
|
|
|
#define META_LUABANKS "LUABANKS[]*"
|
|
|
|
#define META_ACTIVATOR "ACTIVATOR_T*"
|
|
|
|
#define META_FOLLOWER "FOLLOWER_T*"
|
|
#define META_ITEMROULETTE "ITEMROULETTE_T"
|
|
#define META_ITEMROULETTE_ITEMLIST "ITEMROULETTE_T.ITEMLIST"
|
|
#define META_WAYPOINT "WAYPOINT_T*"
|
|
|
|
#define META_SONICLOOPVARS "SONICLOOPVARS_T*"
|
|
#define META_SONICLOOPCAMVARS "SONICLOOPCAMVARS_T*"
|
|
|
|
#define META_BOTVARS "BOTVARS_T*"
|
|
#define META_BOTCONTROLLER "BOTCONTROLLER_T*"
|
|
|
|
#define META_SPLASH "T_SPLASH_T*"
|
|
#define META_FOOTSTEP "T_FOOTSTEP_T*"
|
|
#define META_OVERLAY "T_OVERLAY_T*"
|
|
#define META_TERRAIN "TERRAIN_T*"
|
|
|
|
#define META_POWERUPVARS "POWERUPVARS_T*"
|
|
#define META_ICECUBEVARS "ICECUBEVARS_T*"
|
|
#define META_SKYBOX "SKYBOX_T*"
|
|
|
|
#define META_CUP "CUPHEADER_T*"
|
|
#define META_GPRANK "GPRANK_T*"
|
|
#define META_GPRANKLEVEL "GPRANK_LEVEL_T*"
|
|
#define META_GPRANKLEVELPERPLAYER "GPRANK_LEVEL_PERPLAYER_T*"
|
|
#define META_ROUNDENTRY "ROUNDENTRY_T*"
|
|
|
|
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_TagLib(lua_State *L);
|
|
int LUA_PolyObjLib(lua_State *L);
|
|
int LUA_BlockmapLib(lua_State *L);
|
|
int LUA_HudLib(lua_State *L);
|
|
int LUA_FollowerLib(lua_State *L);
|
|
int LUA_ItemRouletteLib(lua_State *L);
|
|
int LUA_BotVarsLib(lua_State *L);
|
|
int LUA_TerrainLib(lua_State *L);
|
|
int LUA_RespawnVarsLib(lua_State *L);
|
|
int LUA_WaypointLib(lua_State *L);
|
|
int LUA_GrandPrixLib(lua_State *L);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|
|
|
|
#endif // __LUA_LIBS_H__
|