2021-12-29 15:59:18 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
2022-10-18 04:59:51 +02:00
|
|
|
#include "core/line.h"
|
2021-12-29 15:59:18 +01:00
|
|
|
#include "core/music.h"
|
|
|
|
#include "core/rectangle.h"
|
2022-10-18 04:59:51 +02:00
|
|
|
#include "core/resourceholder.h"
|
2022-03-10 18:45:19 +01:00
|
|
|
#include "core/sprite.h"
|
2022-10-18 04:59:51 +02:00
|
|
|
#include "core/text.h"
|
|
|
|
#include "core/vector.h"
|
2021-12-29 15:59:18 +01:00
|
|
|
|
|
|
|
namespace kku
|
|
|
|
{
|
|
|
|
|
2022-05-08 05:43:12 +02:00
|
|
|
/// CoreFactory
|
|
|
|
///
|
|
|
|
/// Provides basic
|
|
|
|
/// multimedia elements and data
|
2021-12-29 15:59:18 +01:00
|
|
|
class CoreFactory
|
|
|
|
{
|
2022-10-18 04:59:51 +02:00
|
|
|
public:
|
2021-12-29 15:59:18 +01:00
|
|
|
virtual ~CoreFactory() = default;
|
|
|
|
virtual std::shared_ptr<kku::Music> getMusic() const = 0;
|
|
|
|
virtual std::shared_ptr<kku::Text> getText(kku::Font::Id id) const = 0;
|
|
|
|
virtual std::shared_ptr<kku::Rectangle> getRectangle() const = 0;
|
|
|
|
virtual std::shared_ptr<kku::Line> getLine() const = 0;
|
2022-10-18 04:59:51 +02:00
|
|
|
virtual std::shared_ptr<kku::Sprite>
|
|
|
|
getSprite(kku::GUISprite::Id id) const = 0;
|
2021-12-29 15:59:18 +01:00
|
|
|
virtual kku::Vector2<std::size_t> getRenderSize() const = 0;
|
|
|
|
};
|
|
|
|
|
2022-10-18 04:59:51 +02:00
|
|
|
} // namespace kku
|