diff options
author | madmaxoft <github@xoft.cz> | 2013-08-08 16:30:02 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-08 16:30:02 +0200 |
commit | eb323166d9ae600fe422725ea29575ba4613b6d2 (patch) | |
tree | bad726267d13fec9994a2c20e8d88885fca29bd0 /source/LuaScript.h | |
parent | cPlugin_NewLua is now completely rewritten to use templated LuaState calls. (diff) | |
download | cuberite-eb323166d9ae600fe422725ea29575ba4613b6d2.tar cuberite-eb323166d9ae600fe422725ea29575ba4613b6d2.tar.gz cuberite-eb323166d9ae600fe422725ea29575ba4613b6d2.tar.bz2 cuberite-eb323166d9ae600fe422725ea29575ba4613b6d2.tar.lz cuberite-eb323166d9ae600fe422725ea29575ba4613b6d2.tar.xz cuberite-eb323166d9ae600fe422725ea29575ba4613b6d2.tar.zst cuberite-eb323166d9ae600fe422725ea29575ba4613b6d2.zip |
Diffstat (limited to 'source/LuaScript.h')
-rw-r--r-- | source/LuaScript.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/source/LuaScript.h b/source/LuaScript.h deleted file mode 100644 index 99ccb3d49..000000000 --- a/source/LuaScript.h +++ /dev/null @@ -1,45 +0,0 @@ - -// LuaScript.h - -// Declares the cLuaScript class that loads a Lua script file to produce a web template out of it - - - - - -#pragma once - -#include "LuaState.h" - - - - - -// fwd: -class cWebAdmin; -struct HTTPTemplateRequest; - - - - - -class cLuaScript -{ -public: - cLuaScript(void); - - /// Prepares a Lua state - void Initialize(); - - /// Load a Lua script on the given path - bool LoadFile(const char * a_FilePath); - - bool CallShowPage(cWebAdmin & a_WebAdmin, HTTPTemplateRequest & a_Request, AString & a_ReturnedString); - -protected: - cLuaState m_LuaState; -} ; - - - - |