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