/
hitsounds.h
65 lines (60 loc) · 1.21 KB
/
hitsounds.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#include <cstdio>
#include <string>
#include <vector>
#include <map>
using namespace std;
struct Volume
{
string first;
string first_green;
string volume;
string last;
Volume()
{
volume = ""; first = ""; last = ""; first_green = "";
}
Volume(string d)
{
volume = d; first = ""; last = ""; first_green = "";
}
};
struct Hitsound
{
string HS;
string Sampleset;
string Additions;
string Sample;
Hitsound():HS("0"),Sampleset("0"),Additions("0"),Sample("0:0:")
{
}
};
struct Hitsoundm // osu!manĩa
{
std::vector<string> HS;
std::vector<string> Sampleset;
std::vector<string> Additions;
std::vector<string> Sample;
Hitsoundm()
{
}
};
class Hitsounds
{
std::map<int,double> MSPerUnit; // Timing
std::map<int,Volume> Volumes;
std::map<int,Hitsound> HS;
std::map<int,Hitsoundm> HSm;
std::vector<string> SbSamples;
public:
bool CopyGreens;
bool CopySamples;
bool KeepBackup;
Hitsounds();
~Hitsounds();
string itos(int);
void ReadFile(string);
string Find(int,int);
string FindV(int,int);
string FindM(int,int,string * = NULL);
void WriteFile(string f1, string f2);
};