mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(db): load achievement db
This commit is contained in:
parent
1575f6d83c
commit
c00028c214
12 changed files with 384 additions and 1 deletions
15
src/db/IDatabase.hpp
Normal file
15
src/db/IDatabase.hpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef DB_I_DATABASE_HPP
|
||||
#define DB_I_DATABASE_HPP
|
||||
|
||||
template <class T>
|
||||
class IDatabase {
|
||||
public:
|
||||
// Member variables
|
||||
T* m_records = nullptr;
|
||||
T** m_recordsById = nullptr;
|
||||
|
||||
// Virtual member functions
|
||||
virtual T* GetRecord(int32_t id) = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue