File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed
include/RhythmGameUtilities/Enums Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 5
5
namespace RhythmGameUtilities
6
6
{
7
7
8
- typedef enum Difficulty
8
+ enum class Difficulty : uint8_t
9
9
{
10
10
11
11
// Easy Difficulty
@@ -26,13 +26,13 @@ inline std::string ToString(Difficulty difficulty)
26
26
{
27
27
switch (difficulty)
28
28
{
29
- case Easy:
29
+ case Difficulty:: Easy:
30
30
return " Easy" ;
31
- case Medium:
31
+ case Difficulty:: Medium:
32
32
return " Medium" ;
33
- case Hard:
33
+ case Difficulty:: Hard:
34
34
return " Hard" ;
35
- case Expert:
35
+ case Difficulty:: Expert:
36
36
return " Expert" ;
37
37
default :
38
38
return " Unknown Difficulty" ;
Original file line number Diff line number Diff line change 5
5
namespace RhythmGameUtilities
6
6
{
7
7
8
- typedef enum NamedSection
8
+ enum class NamedSection : uint8_t
9
9
{
10
10
// / Song information
11
11
Song,
@@ -21,11 +21,11 @@ inline std::string ToString(NamedSection namedSection)
21
21
{
22
22
switch (namedSection)
23
23
{
24
- case Song:
24
+ case NamedSection:: Song:
25
25
return " Song" ;
26
- case SyncTrack:
26
+ case NamedSection:: SyncTrack:
27
27
return " SyncTrack" ;
28
- case Events:
28
+ case NamedSection:: Events:
29
29
return " Events" ;
30
30
default :
31
31
return " Unknown NamedSection" ;
Original file line number Diff line number Diff line change 5
5
namespace RhythmGameUtilities
6
6
{
7
7
8
- typedef enum TypeCode
8
+ enum class TypeCode : uint8_t
9
9
{
10
10
11
11
// / BPM Marker
@@ -26,13 +26,13 @@ inline std::string ToString(TypeCode typeCode)
26
26
{
27
27
switch (typeCode)
28
28
{
29
- case BPM_Marker:
29
+ case TypeCode:: BPM_Marker:
30
30
return " B" ;
31
- case TimeSignatureMarker:
31
+ case TypeCode:: TimeSignatureMarker:
32
32
return " TS" ;
33
- case NoteMarker:
33
+ case TypeCode:: NoteMarker:
34
34
return " N" ;
35
- case EventMarker:
35
+ case TypeCode:: EventMarker:
36
36
return " E" ;
37
37
default :
38
38
return " Unknown TypeCode" ;
You can’t perform that action at this time.
0 commit comments