[Added] Services for assets and audio, main screen, simplified drawing, [Updated] Dockerfile, so the libraries get their own folder

This commit is contained in:
Ninjaws
2024-12-07 22:36:20 +01:00
parent 8d1c3bc429
commit 1849382c01
22 changed files with 435 additions and 282 deletions
+23
View File
@@ -0,0 +1,23 @@
#ifndef SERVICE_H
#define SERVICE_H
template <typename T>
class Service
{
private:
protected:
static T* instance;
Service() {}
public:
Service(const Service &) = delete;
Service &operator=(const Service &) = delete;
static T& getInstance()
{
static T instance;
return instance;
}
};
#endif