feat(db): load achievement db

This commit is contained in:
fallenoak 2023-02-13 23:21:25 -06:00 committed by GitHub
parent 1575f6d83c
commit c00028c214
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 384 additions and 1 deletions

15
src/db/IDatabase.hpp Normal file
View 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