Files
Seele/src/Engine/Platform/Linux/GameInterface.h
T
2025-06-30 21:15:14 +02:00

20 lines
402 B
C++

#pragma once
#include "Game.h"
#include "filesystem"
namespace Seele {
class GameInterface {
public:
GameInterface(std::filesystem::path soPath);
~GameInterface();
Game* getGame();
void reload();
private:
void* lib;
std::filesystem::path soPath;
Game* game;
Game* (*createInstance)() = nullptr;
void (*destroyInstance)(Game*) = nullptr;
};
} // namespace Seele