Cache NoteData inside Notes.

This commit is contained in:
Glenn Maynard
2002-12-14 21:43:00 +00:00
parent 1f92a984cd
commit 3637b3fb52
2 changed files with 59 additions and 7 deletions
+9 -1
View File
@@ -36,7 +36,16 @@ public:
// Loading
bool LoadFromNotesFile( const CString &sPath );
/* We can have one or both of these; if we have both, they're always identical.
* Call Compress() to force us to only have notes_comp; otherwise, creation of
* these is transparent. */
mutable NoteData *notes;
mutable CString *notes_comp;
void Decompress() const;
public:
void Compress() const;
NotesType m_NotesType;
CString m_sDescription; // This text is displayed next to thte number of feet when a song is selected
bool m_bAutoGen; // Was created by autogen?
@@ -44,7 +53,6 @@ public:
int m_iMeter; // difficulty rating from 1-10
float m_fRadarValues[NUM_RADAR_VALUES]; // between 0.0-1.2 starting from 12-o'clock rotating clockwise
CString m_sSMNoteData;
void GetNoteData( NoteData* pNoteDataOut ) const;
void SetNoteData( NoteData* pNewNoteData );
void SetSMNoteData( const CString &out );