Skip to content

Commit eed1c84

Browse files
committed
Added typedef to enums.
1 parent 4bca456 commit eed1c84

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

includes/RhythmGameUtilities/Enums/Difficulty.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace RhythmGameUtilities
66
{
77

8-
enum Difficulty
8+
typedef enum Difficulty
99
{
1010

1111
// Easy Difficulty
@@ -20,7 +20,7 @@ enum Difficulty
2020
// Expert Difficulty
2121
Expert
2222

23-
};
23+
} DifficultyType;
2424

2525
std::string ToString(Difficulty difficulty)
2626
{

includes/RhythmGameUtilities/Enums/NamedSection.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace RhythmGameUtilities
66
{
77

8-
enum NamedSection
8+
typedef enum NamedSection
99
{
1010
/// Song information
1111
Song,
@@ -15,7 +15,7 @@ enum NamedSection
1515

1616
/// Track events
1717
Events
18-
};
18+
} NamedSectionType;
1919

2020
std::string ToString(NamedSection namedSection)
2121
{

includes/RhythmGameUtilities/Enums/TypeCode.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace RhythmGameUtilities
66
{
77

8-
enum TypeCode
8+
typedef enum TypeCode
99
{
1010

1111
/// BPM Marker
@@ -20,7 +20,7 @@ enum TypeCode
2020
/// Event Marker
2121
Event
2222

23-
};
23+
} TypeCodeType;
2424

2525
std::string ToString(TypeCode typeCode)
2626
{

0 commit comments

Comments
 (0)