source: network-game/server/LuaLoader.h@ 7f9b01c

Last change on this file since 7f9b01c 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
6extern "C" {
7 #include <lua5.2/lua.h>
8 #include <lua5.2/lualib.h>
9 #include <lua5.2/lauxlib.h>
10}
11
12using namespace std;
13
14class LuaLoader {
15public:
16 LuaLoader();
17 ~LuaLoader();
18
19 bool runScript(string filename);
20 string getValue(string key);
21
22private:
23 lua_State* lua_state;
24};
25
26#endif
Note: See TracBrowser for help on using the repository browser.