2011-05-30 10:22:39 -05:00
|
|
|
#ifndef LUACONSOLEH
|
|
|
|
#define LUACONSOLEH
|
2011-06-15 12:33:33 -05:00
|
|
|
#ifdef LUA_R_INCL
|
|
|
|
#include <lua.h>
|
|
|
|
#include <lauxlib.h>
|
|
|
|
#include <lualib.h>
|
|
|
|
#else
|
2011-05-30 10:22:39 -05:00
|
|
|
#include <lua5.1/lua.h>
|
|
|
|
#include <lua5.1/lauxlib.h>
|
|
|
|
#include <lua5.1/lualib.h>
|
2011-06-15 12:33:33 -05:00
|
|
|
#endif
|
2011-05-30 10:22:39 -05:00
|
|
|
#include <defines.h>
|
|
|
|
|
|
|
|
void luacon_open();
|
2011-05-31 12:38:13 -05:00
|
|
|
int luacon_step(int mx, int my, int mb, int mbq, char key);
|
2011-05-30 10:22:39 -05:00
|
|
|
int luacon_keypress(char key);
|
|
|
|
int luacon_eval(char *command);
|
2011-05-30 12:15:56 -05:00
|
|
|
char *luacon_geterror();
|
2011-05-30 10:22:39 -05:00
|
|
|
void luacon_close();
|
|
|
|
int process_command_lua(pixel *vid_buf, char *console, char *console_error);
|
|
|
|
|
2011-06-25 00:32:54 -05:00
|
|
|
int getPartIndex_curIdx;
|
|
|
|
|
2011-05-30 10:22:39 -05:00
|
|
|
//TPT Interface
|
|
|
|
int luatpt_test(lua_State* l);
|
2011-05-30 10:45:39 -05:00
|
|
|
int luatpt_drawtext(lua_State* l);
|
2011-05-30 13:44:17 -05:00
|
|
|
int luatpt_create(lua_State* l);
|
|
|
|
int luatpt_setpause(lua_State* l);
|
|
|
|
int luatpt_togglepause(lua_State* l);
|
|
|
|
int luatpt_setconsole(lua_State* l);
|
|
|
|
int luatpt_log(lua_State* l);
|
2011-06-01 06:16:33 -05:00
|
|
|
int luatpt_set_pressure(lua_State* l);
|
|
|
|
int luatpt_set_gravity(lua_State* l);
|
|
|
|
int luatpt_reset_gravity_field(lua_State* l);
|
2011-05-30 13:44:17 -05:00
|
|
|
int luatpt_reset_velocity(lua_State* l);
|
|
|
|
int luatpt_reset_spark(lua_State* l);
|
|
|
|
int luatpt_set_property(lua_State* l);
|
|
|
|
int luatpt_get_property(lua_State* l);
|
|
|
|
int luatpt_drawpixel(lua_State* l);
|
|
|
|
int luatpt_drawrect(lua_State* l);
|
|
|
|
int luatpt_fillrect(lua_State* l);
|
|
|
|
int luatpt_textwidth(lua_State* l);
|
|
|
|
int luatpt_get_name(lua_State* l);
|
|
|
|
int luatpt_set_shortcuts(lua_State* l);
|
|
|
|
int luatpt_delete(lua_State* l);
|
2011-05-30 14:11:34 -05:00
|
|
|
int luatpt_register_step(lua_State* l);
|
2011-06-03 08:21:46 -05:00
|
|
|
int luatpt_unregister_step(lua_State* l);
|
2011-06-08 10:30:36 -05:00
|
|
|
int luatpt_input(lua_State* l);
|
|
|
|
int luatpt_message_box(lua_State* l);
|
2011-06-25 00:32:54 -05:00
|
|
|
int luatpt_get_numOfParts(lua_State* l);
|
|
|
|
int luatpt_start_getPartIndex(lua_State* l);
|
|
|
|
int luatpt_getPartIndex(lua_State* l);
|
|
|
|
int luatpt_next_getPartIndex(lua_State* l);
|
2011-07-22 08:55:43 -05:00
|
|
|
int luatpt_hud(lua_State* l);
|
|
|
|
int luatpt_gravity(lua_State* l);
|
|
|
|
int luatpt_airheat(lua_State* l);
|
|
|
|
int luatpt_active_menu(lua_State* l);
|
|
|
|
int luatpt_decorations_enable(lua_State* l);
|
|
|
|
int luatpt_cmode_set(lua_State* l);
|
2011-07-30 19:31:34 -05:00
|
|
|
int luatpt_error(lua_State* l);
|
|
|
|
int luatpt_heat(lua_State* l);
|
2011-05-30 10:22:39 -05:00
|
|
|
#endif
|