Added lua and SQL, but removed lsqlite3.c

lsqlite3.c looked like a good idea for connnecting SQL and lua, but I
couldn't get it to work and rather than struggle on this, I'll write my
own library later on.
This commit is contained in:
Kayne Ruse
2013-09-05 20:04:11 +10:00
parent 4b62310158
commit 09453cc24e
8 changed files with 54 additions and 2161 deletions
+8 -1
View File
@@ -22,6 +22,10 @@
#ifndef SERVERAPPLICATION_HPP_
#define SERVERAPPLICATION_HPP_
#include "lua/lua.hpp"
#include "sqlite3/sqlite3.h"
#include "SDL/SDL.h"
//The main application class
class ServerApplication {
private:
@@ -32,12 +36,15 @@ private:
public:
static ServerApplication* GetInstance() { return &instance; }
void Init();
void Init(int argc, char** argv);
void Loop();
void Quit();
private:
bool running = true;
lua_State* luaState = nullptr;
sqlite3* database = nullptr;
};
#endif