project-kyoku/include/core/corefactory.h

33 lines
794 B
C
Raw Normal View History

2021-12-29 09:59:18 -05:00
#pragma once
#include <memory>
#include "core/music.h"
#include "core/text.h"
#include "core/resourceholder.h"
#include "core/rectangle.h"
#include "core/vector.h"
#include "core/line.h"
#include "core/sprite.h"
2021-12-29 09:59:18 -05:00
namespace kku
{
2022-05-07 23:43:12 -04:00
/// CoreFactory
///
/// Provides basic
/// multimedia elements and data
2021-12-29 09:59:18 -05:00
class CoreFactory
{
public:
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;
virtual std::shared_ptr<kku::Sprite> getSprite(kku::GUISprite::Id id) const = 0;
2021-12-29 09:59:18 -05:00
virtual kku::Vector2<std::size_t> getRenderSize() const = 0;
};
}