add Course::Info::GetAttackArray
This commit is contained in:
@@ -934,3 +934,14 @@ void Course::UpdateCourseStats()
|
||||
this->m_sName.c_str(),
|
||||
SortOrder_TotalDifficulty );
|
||||
}
|
||||
|
||||
void Course::Info::GetAttackArray( AttackArray &out ) const
|
||||
{
|
||||
Attack a;
|
||||
a.fStartSecond = -1;
|
||||
a.fSecsRemaining = 10000; /* whole song */
|
||||
a.level = ATTACK_LEVEL_1;
|
||||
a.sModifier = Modifiers;
|
||||
|
||||
out.push_back( a );
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
#include "PlayerNumber.h"
|
||||
#include "GameConstantsAndTypes.h"
|
||||
#include "Attack.h"
|
||||
|
||||
struct PlayerOptions;
|
||||
struct SongOptions;
|
||||
@@ -95,6 +96,8 @@ public:
|
||||
struct Info
|
||||
{
|
||||
Info(): pSong(NULL), pNotes(NULL), Random(false), Difficult(false) { }
|
||||
void GetAttackArray( AttackArray &out ) const;
|
||||
|
||||
Song* pSong;
|
||||
Steps* pNotes;
|
||||
CString Modifiers;
|
||||
|
||||
Reference in New Issue
Block a user