2021-06-23 21:18:33 +02:00
|
|
|
#ifndef CLASSICMAPCREATOR_H
|
|
|
|
#define CLASSICMAPCREATOR_H
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
2021-07-22 19:33:33 +02:00
|
|
|
#include "game/mathutils.h"
|
2021-06-23 21:18:33 +02:00
|
|
|
#include "classicgraphicsmanager.h"
|
|
|
|
|
|
|
|
struct Beatmap
|
|
|
|
{
|
2021-07-21 20:15:56 +02:00
|
|
|
std::vector<ClassicNote*> notes;
|
2021-06-23 21:18:33 +02:00
|
|
|
microsec visibility_offset;
|
|
|
|
};
|
|
|
|
|
|
|
|
class ClassicMapCreator
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit ClassicMapCreator(const std::unique_ptr<ClassicGraphicsManager>& manager);
|
|
|
|
|
|
|
|
Beatmap createBeatmap(const std::string& filepath) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
const std::unique_ptr<ClassicGraphicsManager>& _graphics_manager;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CLASSICMAPCREATOR_H
|