summaryrefslogtreecommitdiff
path: root/lib/liblua_wrapper.h
diff options
context:
space:
mode:
authordeva <deva>2006-08-16 23:48:22 +0000
committerdeva <deva>2006-08-16 23:48:22 +0000
commit6c07f9219bed6ccddc9b65ad40414cf0a9f7d633 (patch)
tree95f5fe5db16808d7b13511a6344bc269692e6e17 /lib/liblua_wrapper.h
parentcca64725502c1035ca50675dda6c42dad18f0cbf (diff)
Finished the Configuration class (Still missing vector<string> though!)
Replaced the old MiavConfig class with the new Configuration class in all the the appropriate places.
Diffstat (limited to 'lib/liblua_wrapper.h')
-rw-r--r--lib/liblua_wrapper.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/liblua_wrapper.h b/lib/liblua_wrapper.h
index fed15c1..70eb8a8 100644
--- a/lib/liblua_wrapper.h
+++ b/lib/liblua_wrapper.h
@@ -37,11 +37,18 @@ public:
~LibLUAWrapper();
/**
- * loadFile reads and parses a lue file.
+ * loadFile reads, parses and runs a lue file.
* @return 0 on success 1 on error
*/
int loadFile(char *fname);
+ /**
+ * loadBuffer parses a buffer containing lue code,
+ * pushes it on the stack, and runs it
+ * @return 0 on success 1 on error
+ */
+ int loadBuffer(char *buffer);
+
double getReal(char *name);
int getInteger(char *name);
bool getBoolean(char *name);