summaryrefslogtreecommitdiff
path: root/src/cat/LuaScriptInterface.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-29 12:28:56 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-29 12:28:56 (GMT)
commite8418a8ca01c6d27b9e0dd891a9fa55d8c38bb57 (patch)
treec51ba8586da383b609b577758e491a19063ec4f4 /src/cat/LuaScriptInterface.h
parentf96cb74a08c669b34add4ee8ae75044f51a5c24b (diff)
downloadpowder-e8418a8ca01c6d27b9e0dd891a9fa55d8c38bb57.zip
powder-e8418a8ca01c6d27b9e0dd891a9fa55d8c38bb57.tar.gz
Lua FileSystem API
Diffstat (limited to 'src/cat/LuaScriptInterface.h')
-rw-r--r--src/cat/LuaScriptInterface.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cat/LuaScriptInterface.h b/src/cat/LuaScriptInterface.h
index 2def100..bf7d277 100644
--- a/src/cat/LuaScriptInterface.h
+++ b/src/cat/LuaScriptInterface.h
@@ -64,6 +64,7 @@ class LuaScriptInterface: public CommandInterface
static int renderer_renderModes(lua_State * l);
static int renderer_displayModes(lua_State * l);
static int renderer_colourMode(lua_State * l);
+ static int renderer_decorations(lua_State * l);
//Elements
static pim::VirtualMachine * updateVirtualMachines[PT_NUM];
@@ -93,6 +94,17 @@ class LuaScriptInterface: public CommandInterface
static int graphics_drawRect(lua_State * l);
static int graphics_fillRect(lua_State * l);
+ void initFileSystemAPI();
+ static int fileSystem_list(lua_State * l);
+ static int fileSystem_exists(lua_State * l);
+ static int fileSystem_isFile(lua_State * l);
+ static int fileSystem_isDirectory(lua_State * l);
+ static int fileSystem_makeDirectory(lua_State * l);
+ static int fileSystem_removeDirectory(lua_State * l);
+ static int fileSystem_removeFile(lua_State * l);
+ static int fileSystem_move(lua_State * l);
+ static int fileSystem_copy(lua_State * l);
+
public:
ui::Window * Window;
lua_State *l;