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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user