2021-10-04 17:30:21 +02:00
|
|
|
#pragma once
|
2021-06-23 21:18:33 +02:00
|
|
|
|
2021-10-03 17:23:28 +02:00
|
|
|
#include <set>
|
2021-06-23 21:18:33 +02:00
|
|
|
|
2021-08-05 20:59:48 +02:00
|
|
|
#include "tools/mathutils.h"
|
2021-10-04 17:30:21 +02:00
|
|
|
#include "classicnote.h"
|
2021-09-14 21:02:23 +02:00
|
|
|
|
2021-10-04 17:30:21 +02:00
|
|
|
struct Context;
|
2021-06-23 21:18:33 +02:00
|
|
|
|
|
|
|
struct Beatmap
|
|
|
|
{
|
2021-10-03 17:23:28 +02:00
|
|
|
std::set<ClassicNote*, NotePtrCompt> notes;
|
2021-06-23 21:18:33 +02:00
|
|
|
microsec visibility_offset;
|
|
|
|
};
|
|
|
|
|
|
|
|
class ClassicMapCreator
|
|
|
|
{
|
|
|
|
public:
|
2021-10-04 17:30:21 +02:00
|
|
|
explicit ClassicMapCreator(const std::shared_ptr<Context>& context);
|
2021-06-23 21:18:33 +02:00
|
|
|
|
|
|
|
Beatmap createBeatmap(const std::string& filepath) const;
|
|
|
|
|
|
|
|
private:
|
2021-10-04 17:30:21 +02:00
|
|
|
const std::shared_ptr<Context> _context;
|
2021-06-23 21:18:33 +02:00
|
|
|
};
|