Skip to content
Snippets Groups Projects
Select Git revision
  • c5ea6b5efe8a83e3c5d32e1b17db05ef935e1484
  • master default protected
  • skip-empty-gametypes
  • menu-soc-bullshit
  • md2-rollangle
  • titlecard-options
  • pk3-xtra-comm-fix
  • lua-fix
  • starpost-config-additions
  • pictureformats
  • linedef-args
  • dashmode-tweaks
  • next
  • highresscale-continue
  • names-update
  • udmf-next
  • ignore-glsegs
  • more-opengl-fixes
  • fix-mouse-grabbing
  • models-mkii
  • grr-lj
  • SRB2_release_2.2.0
  • SRB2_release_2.1.25
  • SRB2_release_2.1.24
  • SRB2_release_2.1.23
  • SRB2_release_2.1.22
  • SRB2_release_2.1.21
  • SRB2_release_2.1.20
  • SRB2_release_2.1.19
  • SRB2_release_2.1.18
  • td-release-v1.0.0
  • SRB2_release_2.1.17
  • SRB2_release_2.1.16a
  • SRB2_release_2.1.16
  • SRB2_release_2.1.15
  • SRB2_release_2.1.14
  • SRB2_release_2.1.12
  • SRB2_release_2.1.11
  • SRB2_release_2.1.10
  • SRB2_release_2.1.9
  • SRB2_release_2.1.8
41 results

lua_hook.h

Blame
  • Forked from STJr / SRB2
    Source project has a limited visibility.
    lua_libs.h 1.91 KiB
    // SONIC ROBO BLAST 2
    //-----------------------------------------------------------------------------
    // Copyright (C) 2012-2016 by John "JTE" Muniz.
    // Copyright (C) 2012-2016 by Sonic Team Junior.
    //
    // 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"
    #define META_SOUNDSID "SKIN_T*SOUNDSID"
    
    #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*"
    #define META_MAPHEADER "MAPHEADER_T*"
    
    #define META_CVAR "CONSVAR_T*"
    
    #define META_SECTORLINES "SECTOR_T*LINES"
    #define META_SIDENUM "LINE_T*SIDENUM"
    
    #define META_HUDINFO "HUDINFO_T*"
    #define META_PATCH "PATCH_T*"
    #define META_COLORMAP "COLORMAP"
    #define META_CAMERA "CAMERA_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_HudLib(lua_State *L);
    
    #endif