2026-05-25 07:25:59 +09:00
|
|
|
#ifndef __FISHBONE_CLIENT_H__
|
|
|
|
|
#define __FISHBONE_CLIENT_H__
|
|
|
|
|
|
2026-06-01 13:50:35 +09:00
|
|
|
#include <fishbone/pre.h>
|
|
|
|
|
|
2026-05-25 07:25:59 +09:00
|
|
|
namespace fishbone {
|
|
|
|
|
class Client;
|
2026-06-02 11:27:44 +02:00
|
|
|
class ResourceResolver;
|
|
|
|
|
}; // namespace fishbone
|
2026-05-25 07:25:59 +09:00
|
|
|
|
|
|
|
|
#include <fishbone/sound.h>
|
2026-05-29 01:10:45 +09:00
|
|
|
#include <fishbone/window.h>
|
2026-06-01 13:50:35 +09:00
|
|
|
#include <fishbone/mixer.h>
|
|
|
|
|
#include <fishbone/draw.h>
|
2026-06-02 11:27:44 +02:00
|
|
|
#include <fishbone/logger.h>
|
2026-05-25 07:25:59 +09:00
|
|
|
|
|
|
|
|
namespace fishbone {
|
2026-06-02 11:27:44 +02:00
|
|
|
class BaseEngine : public Logger {
|
|
|
|
|
protected:
|
|
|
|
|
ResourceResolver* resourceResolver;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
ResourceResolver* getResourceResolver();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class Client : public BaseEngine {
|
2026-05-25 12:12:03 +09:00
|
|
|
public:
|
2026-06-01 13:50:35 +09:00
|
|
|
Client(std::unordered_map<std::string, std::vector<std::string>> param);
|
|
|
|
|
~Client();
|
|
|
|
|
|
|
|
|
|
bool step();
|
2026-06-02 11:27:44 +02:00
|
|
|
|
2026-06-01 13:50:35 +09:00
|
|
|
fishbone::Window* window;
|
|
|
|
|
fishbone::SoundDriver* sounddrv;
|
2026-06-02 11:27:44 +02:00
|
|
|
fishbone::Mixer* mixer;
|
|
|
|
|
fishbone::Renderer* renderer;
|
2026-05-25 07:25:59 +09:00
|
|
|
};
|
2026-05-25 12:12:03 +09:00
|
|
|
}; // namespace fishbone
|
2026-05-25 07:25:59 +09:00
|
|
|
|
|
|
|
|
#endif
|