@@ -6,8 +6,8 @@ ConcreteClassInfo(DynamicSongSection, Entity, 50);
6
6
ConcreteClassInfo (DynamicSong, Entity, 50 );
7
7
8
8
const std::unordered_map<std::string, DynamicSongSection::SoundContainerSelectionCycleMode> DynamicSongSection::c_SoundContainerSelectionCycleModeMap = {
9
- {" randomnorepeat" , SoundContainerSelectionCycleMode::RANDOMNOREPEAT},
10
- {" shuffle" , SoundContainerSelectionCycleMode::SHUFFLE}};
9
+ {" randomnorepeat" , SoundContainerSelectionCycleMode::RANDOMNOREPEAT},
10
+ {" shuffle" , SoundContainerSelectionCycleMode::SHUFFLE}};
11
11
12
12
DynamicSongSection::DynamicSongSection () {
13
13
Clear ();
@@ -26,11 +26,11 @@ void DynamicSongSection::Clear() {
26
26
m_TransitionSoundContainers.clear ();
27
27
m_LastTransitionSoundContainerIndex = -1 ;
28
28
m_TransitionShuffleUnplayedIndices.clear ();
29
-
29
+
30
30
m_SoundContainers.clear ();
31
31
m_LastSoundContainerIndex = -1 ;
32
32
m_ShuffleUnplayedIndices.clear ();
33
-
33
+
34
34
m_SoundContainerSelectionCycleMode = RANDOMNOREPEAT;
35
35
m_SectionType = " Default" ;
36
36
}
@@ -44,7 +44,7 @@ int DynamicSongSection::Create(const DynamicSongSection& reference) {
44
44
m_TransitionSoundContainers.push_back (soundContainer);
45
45
}
46
46
m_LastTransitionSoundContainerIndex = reference.m_LastTransitionSoundContainerIndex ;
47
-
47
+
48
48
for (const SoundContainer& referenceSoundContainer: reference.m_SoundContainers ) {
49
49
SoundContainer soundContainer;
50
50
soundContainer.Create (referenceSoundContainer);
@@ -131,9 +131,9 @@ SoundContainer& DynamicSongSection::SelectTransitionSoundContainer() {
131
131
if (m_TransitionSoundContainers.size () == 1 ) {
132
132
return m_TransitionSoundContainers[0 ];
133
133
}
134
-
134
+
135
135
if (m_TransitionShuffleUnplayedIndices.empty ()) {
136
- for (unsigned int i = 0 ; i < m_TransitionSoundContainers.size (); i++ ) {
136
+ for (unsigned int i = 0 ; i < m_TransitionSoundContainers.size (); i++) {
137
137
if (i != m_LastTransitionSoundContainerIndex) {
138
138
m_TransitionShuffleUnplayedIndices.push_back (i);
139
139
}
@@ -171,7 +171,7 @@ SoundContainer& DynamicSongSection::SelectSoundContainer() {
171
171
}
172
172
173
173
if (m_ShuffleUnplayedIndices.empty ()) {
174
- for (unsigned int i = 0 ; i < m_SoundContainers.size (); i++ ) {
174
+ for (unsigned int i = 0 ; i < m_SoundContainers.size (); i++) {
175
175
if (i != m_LastSoundContainerIndex) {
176
176
m_ShuffleUnplayedIndices.push_back (i);
177
177
}
0 commit comments