CorsixTH engine (the C++ part)
Open source implementation of Theme Hospital
Loading...
Searching...
No Matches
Functions | Variables
th_lua.cpp File Reference
#include "config.h"
#include <zlib.h>
#include <cstdio>
#include <cstring>
#include <stdexcept>
#include <string>
#include "bootstrap.h"
#include "lua.hpp"
#include "th.h"
#include "th_lua.h"
#include "th_lua_internal.h"
#include "../Lua/api_version.lua"

Functions

void lua_register_anims (const lua_register_state *pState)
 
void lua_register_gfx (const lua_register_state *pState)
 
void lua_register_map (const lua_register_state *pState)
 
void lua_register_sound (const lua_register_state *pState)
 
void lua_register_movie (const lua_register_state *pState)
 
void lua_register_strings (const lua_register_state *pState)
 
void lua_register_ui (const lua_register_state *pState)
 
void lua_register_lfs_ext (const lua_register_state *pState)
 
void lua_register_iso_fs (const lua_register_state *pState)
 
void lua_register_midi (const lua_register_state *pState)
 
void luaT_setenvfield (lua_State *L, int index, const char *k)
 Set a field on the environment table of an object.
 
void luaT_getenvfield (lua_State *L, int index, const char *k)
 Get a field from the environment table of an object.
 
void luaT_pushcclosuretable (lua_State *L, lua_CFunction fn, int n)
 Push a C closure as a callable table.
 
const uint8_t * luaT_checkfile (lua_State *L, int idx, size_t *pDataLen)
 Check for a string or userdata.
 
void luaT_setclosure (const lua_register_state *pState, lua_CFunction fn, int iUps)
 
int luaopen_th (lua_State *L)
 
void luaT_execute_loadstring (lua_State *L, const char *sLuaString)
 
void luaT_execute (lua_State *L, const char *sLuaString)
 
void preload_lua_package (lua_State *L, const char *name, lua_CFunction fn)
 
void luaT_push (lua_State *L, lua_CFunction f)
 
void luaT_push (lua_State *L, int i)
 
void luaT_push (lua_State *L, const char *s)
 
void luaT_pushtablebool (lua_State *L, const char *k, bool v)
 
void luaT_printvalue (lua_State *L, int idx)
 
void luaT_printstack (lua_State *L)
 
void luaT_printrawtable (lua_State *L, int idx)
 

Variables

const charupdate_check_url
 

Function Documentation

◆ lua_register_anims()

void lua_register_anims ( const lua_register_state pState)

◆ lua_register_gfx()

void lua_register_gfx ( const lua_register_state pState)

◆ lua_register_iso_fs()

void lua_register_iso_fs ( const lua_register_state pState)

◆ lua_register_lfs_ext()

void lua_register_lfs_ext ( const lua_register_state pState)

◆ lua_register_map()

void lua_register_map ( const lua_register_state pState)

◆ lua_register_midi()

void lua_register_midi ( const lua_register_state pState)

◆ lua_register_movie()

void lua_register_movie ( const lua_register_state pState)

◆ lua_register_sound()

void lua_register_sound ( const lua_register_state pState)

◆ lua_register_strings()

void lua_register_strings ( const lua_register_state pState)

◆ lua_register_ui()

void lua_register_ui ( const lua_register_state pState)

◆ luaopen_th()

int luaopen_th ( lua_State L)

◆ luaT_checkfile()

const uint8_t * luaT_checkfile ( lua_State L,
int  idx,
size_t *  pDataLen 
)

Check for a string or userdata.

Check that a Lua argument is a binary data blob.

◆ luaT_execute()

void luaT_execute ( lua_State L,
const char sLuaString 
)

◆ luaT_execute_loadstring()

void luaT_execute_loadstring ( lua_State L,
const char sLuaString 
)

◆ luaT_getenvfield()

void luaT_getenvfield ( lua_State L,
int  index,
const char k 
)

Get a field from the environment table of an object.

Get a field from the environment table of a value.

◆ luaT_printrawtable()

void luaT_printrawtable ( lua_State L,
int  idx 
)

◆ luaT_printstack()

void luaT_printstack ( lua_State L)

◆ luaT_printvalue()

void luaT_printvalue ( lua_State L,
int  idx 
)

◆ luaT_push() [1/3]

void luaT_push ( lua_State L,
const char s 
)

◆ luaT_push() [2/3]

void luaT_push ( lua_State L,
int  i 
)

◆ luaT_push() [3/3]

void luaT_push ( lua_State L,
lua_CFunction  f 
)

◆ luaT_pushcclosuretable()

void luaT_pushcclosuretable ( lua_State L,
lua_CFunction  fn,
int  n 
)

Push a C closure as a callable table.

◆ luaT_pushtablebool()

void luaT_pushtablebool ( lua_State L,
const char k,
bool  v 
)

◆ luaT_setclosure()

void luaT_setclosure ( const lua_register_state pState,
lua_CFunction  fn,
int  iUps 
)

◆ luaT_setenvfield()

void luaT_setenvfield ( lua_State L,
int  index,
const char k 
)

Set a field on the environment table of an object.

Set a field on the environment table of a value.

◆ preload_lua_package()

void preload_lua_package ( lua_State L,
const char name,
lua_CFunction  fn 
)

Variable Documentation

◆ update_check_url

const char* update_check_url
Initial value:
=
"https://corsixth.com/CorsixTH/check-for-updates"