rearrange: games point to styles, not vice versa
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "GameConstantsAndTypes.h"
|
||||
|
||||
struct lua_State;
|
||||
class Style;
|
||||
|
||||
//
|
||||
// PrimaryMenuButton and SecondaryMenuButton are used to support using DeviceInputs that only
|
||||
@@ -31,6 +32,7 @@ class Game
|
||||
{
|
||||
public:
|
||||
const char * m_szName;
|
||||
const Style * const* m_apStyles;
|
||||
|
||||
bool m_bCountNotesSeparately; // Count multiple notes in a row as separate notes or as one note
|
||||
bool m_bAllowHopos; // allow Hammer-ons and Pull-offs? Only useful for guitar type input.
|
||||
|
||||
+1815
-1657
File diff suppressed because it is too large
Load Diff
@@ -17,6 +17,7 @@ public:
|
||||
~GameManager();
|
||||
|
||||
void GetStylesForGame( const Game* pGame, vector<const Style*>& aStylesAddTo, bool editor=false ) const;
|
||||
const Game *GetGameForStyle( const Style *pStyle ) const;
|
||||
void GetStepsTypesForGame( const Game* pGame, vector<StepsType>& aStepsTypeAddTo ) const;
|
||||
const Style *GetEditorStyleForStepsType( StepsType st ) const;
|
||||
void GetDemonstrationStylesForGame( const Game *pGame, vector<const Style*> &vpStylesOut ) const;
|
||||
|
||||
@@ -19,7 +19,6 @@ struct lua_State;
|
||||
class Style
|
||||
{
|
||||
public:
|
||||
const Game * m_pGame; // Which Game is this Style used with?
|
||||
bool m_bUsedForGameplay; // Can be used only for gameplay?
|
||||
bool m_bUsedForEdit; // Can be used for editing?
|
||||
bool m_bUsedForDemonstration; // Can be used for demonstration?
|
||||
|
||||
@@ -10,7 +10,7 @@ void StyleID::FromStyle( const Style *p )
|
||||
{
|
||||
if( p )
|
||||
{
|
||||
sGame = p->m_pGame->m_szName;
|
||||
sGame = GAMEMAN->GetGameForStyle(p)->m_szName;
|
||||
sStyle = p->m_szName;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user