Add ClassicEditor basis

This commit is contained in:
NaiJi ✨ 2021-11-02 20:47:42 +03:00
parent cfc8706c23
commit 7f7045c920
2 changed files with 32 additions and 5 deletions

View File

@ -1,6 +1,21 @@
#include "classiceditor.h" #include "classiceditor.h"
ClassicEditor::ClassicEditor() ClassicEditor::ClassicEditor(std::shared_ptr<ClassicGraphicsManager>&& manager)
{
}
void ClassicEditor::input(PlayerInput&& inputdata)
{
}
void ClassicEditor::update(const sf::Time& dt)
{
}
void ClassicEditor::draw() const
{ {
} }

View File

@ -1,13 +1,25 @@
#pragma once #pragma once
#include <memory>
#include "core/editor.h" #include "core/editor.h"
#include "tools/music.h"
#include "core/timeline.h"
#include "game/classicnote.h"
class ClassicGraphicsManager;
class ClassicEditor : public Editor class ClassicEditor : public Editor
{ {
public: public:
explicit ClassicEditor(); explicit ClassicEditor(std::shared_ptr<ClassicGraphicsManager>&& manager);
virtual void input(PlayerInput&& inputdata) = 0; virtual void input(PlayerInput&& inputdata) override;
virtual void update(const sf::Time& dt) = 0; virtual void update(const sf::Time& dt) override;
virtual void draw() const = 0; virtual void draw() const override;
private:
Music _music;
std::shared_ptr<ClassicGraphicsManager> _graphics_manager;
Timeline<ClassicNote> _timeline;
}; };