summaryrefslogtreecommitdiff
path: root/src/cat/LuaScriptHelper.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-28 23:20:52 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-28 23:20:52 (GMT)
commit9a42e47eb0369ddabe752c37b98ed3662a983694 (patch)
tree1a9fbc24e0bc17d41152657e2aa7606f818a52fb /src/cat/LuaScriptHelper.h
parent261c654ca0978cdc39c9670050c307fe0065fac1 (diff)
downloadpowder-9a42e47eb0369ddabe752c37b98ed3662a983694.zip
powder-9a42e47eb0369ddabe752c37b98ed3662a983694.tar.gz
Move old Lua API into another file, make the old drawin API have the old position quirk for rects, new graphics (gfx) api with drawRect, fillRect, drawTect, drawLine and textSize functions.
Diffstat (limited to 'src/cat/LuaScriptHelper.h')
-rw-r--r--src/cat/LuaScriptHelper.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/cat/LuaScriptHelper.h b/src/cat/LuaScriptHelper.h
index d2174ea..37920b5 100644
--- a/src/cat/LuaScriptHelper.h
+++ b/src/cat/LuaScriptHelper.h
@@ -8,27 +8,27 @@
#ifndef LUASCRIPTHELPER_H_
#define LUASCRIPTHELPER_H_
-GameModel * luacon_model;
-Simulation * luacon_sim;
-LuaScriptInterface * luacon_ci;
-Graphics * luacon_g;
-Renderer * luacon_ren;
-
-bool *luacon_currentCommand;
-string *luacon_lastError;
-
-int *lua_el_func, *lua_el_mode, *lua_gr_func;
-
-int getPartIndex_curIdx;
-int step_functions[6];//[6] = {0, 0, 0, 0, 0, 0};
-int keypress_function_count;// = 0;
-int *keypress_functions;// = NULL;
-int mouseclick_function_count;// = 0;
-int *mouseclick_functions;// = NULL;
-int tptProperties; //Table for some TPT properties
-int tptPropertiesVersion;
-int tptElements; //Table for TPT element names
-int tptParts, tptPartsMeta, tptElementTransitions, tptPartsCData, tptPartMeta, tptPart, cIndex;
+extern GameModel * luacon_model;
+extern Simulation * luacon_sim;
+extern LuaScriptInterface * luacon_ci;
+extern Graphics * luacon_g;
+extern Renderer * luacon_ren;
+
+extern bool *luacon_currentCommand;
+extern std::string *luacon_lastError;
+
+extern int *lua_el_func, *lua_el_mode, *lua_gr_func;
+
+extern int getPartIndex_curIdx;
+extern int step_functions[6];//[6] = {0, 0, 0, 0, 0, 0};
+extern int keypress_function_count;// = 0;
+extern int *keypress_functions;// = NULL;
+extern int mouseclick_function_count;// = 0;
+extern int *mouseclick_functions;// = NULL;
+extern int tptProperties; //Table for some TPT properties
+extern int tptPropertiesVersion;
+extern int tptElements; //Table for TPT element names
+extern int tptParts, tptPartsMeta, tptElementTransitions, tptPartsCData, tptPartMeta, tptPart, cIndex;
void luacon_hook(lua_State *L, lua_Debug *ar);
int luacon_step(int mx, int my, int selectl, int selectr, int bsx, int bsy);