Last change
on this file since a9a1295 was 53643ca, checked in by Dmitry Portnoy <dmp1488@…>, 10 years ago |
Server loads user profile and game history info from the database, saves game history to the db after every game, and uses a lua settings file to load db settings
|
-
Property mode
set to
100644
|
File size:
367 bytes
|
Line | |
---|
1 | #ifndef _LUA_LOADER_H
|
---|
2 | #define _LUA_LOADER_H
|
---|
3 |
|
---|
4 | #include <string>
|
---|
5 |
|
---|
6 | extern "C" {
|
---|
7 | #include <lua5.2/lua.h>
|
---|
8 | #include <lua5.2/lualib.h>
|
---|
9 | #include <lua5.2/lauxlib.h>
|
---|
10 | }
|
---|
11 |
|
---|
12 | using namespace std;
|
---|
13 |
|
---|
14 | class LuaLoader {
|
---|
15 | public:
|
---|
16 | LuaLoader();
|
---|
17 | ~LuaLoader();
|
---|
18 |
|
---|
19 | bool runScript(string filename);
|
---|
20 | string getValue(string key);
|
---|
21 |
|
---|
22 | private:
|
---|
23 | lua_State* lua_state;
|
---|
24 | };
|
---|
25 |
|
---|
26 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.