mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-21 03:16:54 +01:00
34 lines
528 B
C++
34 lines
528 B
C++
#ifndef DATABASE_MANAGER_H
|
|
#define DATABASE_MANAGER_H
|
|
|
|
#include "core/reference.h"
|
|
#include "core/ustring.h"
|
|
|
|
#include "core/object.h"
|
|
|
|
class Database;
|
|
|
|
class DatabaseManager : public Object {
|
|
GDCLASS(DatabaseManager, Object);
|
|
|
|
public:
|
|
Ref<Database> get_ddb();
|
|
void set_ddb(const Ref<Database> &db);
|
|
|
|
void load();
|
|
|
|
static DatabaseManager *get_singleton();
|
|
|
|
DatabaseManager();
|
|
~DatabaseManager();
|
|
|
|
protected:
|
|
Vector<Ref<Database>> _databases;
|
|
Ref<Database> _ddb;
|
|
|
|
private:
|
|
static DatabaseManager *_instance;
|
|
};
|
|
|
|
#endif
|