/[uccarbor]/shmookey/ScriptInterface.h


UCC Code Repository

Contents of /shmookey/ScriptInterface.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8 - (show annotations) (download)
Thu Dec 7 03:52:08 2006 UTC (14 years, 4 months ago) by shmookey
File MIME type: text/plain
File size: 645 byte(s)
windows compatibility

1 #ifndef __SCRIPTINTERFACE_H__
2 #define __SCRIPTINTERFACE_H__
3
4 #ifdef WIN32
5 #include <Lua/lua.hpp>
6 #include <Lua/lualib.hpp>
7 #include <Lua/lauxlib.hpp>
8 #else
9 extern "C" {
10 #include <lua50/lua.h>
11 #include <lua50/lualib.h>
12 #include <lua50/lauxlib.h>
13 }
14 #endif
15
16 #include <fstream>
17 #include <iostream>
18
19 using std::fstream;
20 using std::cout;
21 using std::endl;
22
23 typedef struct luaMemFile {
24 const char *text;
25 size_t size;
26 } luaMemFile;
27
28 //LUA_API void lua_getglobal (lua_State *L, char *fieldname);
29
30 class ScriptInterface {
31 lua_State *L;
32 public:
33 ScriptInterface (char *filename);
34 int GetInt (char *varName);
35 char *GetString (char *varName);
36 };
37
38 #endif

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26