forked from NaiJi/project-kyoku
36 lines
830 B
C++
36 lines
830 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include "core/editor.h"
|
|
#include "core/timeline.h"
|
|
|
|
#include "mockclassicnote.h"
|
|
|
|
class ClassicGraphicsManager;
|
|
|
|
class ClassicEditor : public Editor
|
|
{
|
|
public:
|
|
explicit ClassicEditor(std::shared_ptr<ClassicGraphicsManager>&& manager);
|
|
|
|
virtual void input(PlayerInput&& inputdata) override;
|
|
virtual void update(UpdateData&& updatedata) override;
|
|
virtual void draw() const override;
|
|
virtual void recalculate(const microsec& timestamp) override;
|
|
|
|
void selectNoteType(Type type) noexcept;
|
|
|
|
private:
|
|
inline microsec adjustOffset(microsec offset) const noexcept;
|
|
|
|
Context _context;
|
|
|
|
std::shared_ptr<ClassicGraphicsManager> _graphics_manager;
|
|
Timeline<MockClassicNote> _timeline;
|
|
|
|
Type _selected_type;
|
|
microsec _current_time;
|
|
microsec _scroll_step;
|
|
};
|