Files
itgmania212121/stepmania/src/NotesLoaderDWI.h
T

39 lines
1.1 KiB
C++
Raw Normal View History

2002-09-06 23:24:40 +00:00
#ifndef NOTES_LOADER_DWI_H
#define NOTES_LOADER_DWI_H
2003-02-16 04:28:17 +00:00
#include "song.h"
2003-08-03 00:13:55 +00:00
#include "Steps.h"
2002-09-06 23:24:40 +00:00
#include "GameInput.h"
#include "NotesLoader.h"
2003-02-16 04:28:17 +00:00
#include "song.h"
2003-08-03 00:13:55 +00:00
#include "Steps.h"
2002-09-06 23:24:40 +00:00
2002-09-11 05:15:46 +00:00
/* Return NA if no files in the directory can be loaded by
* this loader, OK on success, ERROR if an applicable file was found
* but there was a fatal error loading. (ERROR not used yet--we
* always throw.)
*/
class DWILoader: public NotesLoader {
2002-09-06 23:24:40 +00:00
void DWIcharToNote( char c, GameController i, DanceNote &note1Out, DanceNote &note2Out );
void DWIcharToNoteCol( char c, GameController i, int &col1Out, int &col2Out );
2002-09-06 23:24:40 +00:00
bool LoadFromDWITokens(
CString sMode, CString sDescription, CString sNumFeet, CString sStepData1,
CString sStepData2,
2003-08-03 00:13:55 +00:00
Steps &out );
2002-09-06 23:24:40 +00:00
bool LoadFromDWIFile( CString sPath, Song &out );
2002-09-11 05:15:46 +00:00
2003-06-30 04:29:53 +00:00
static float ParseBrokenDWITimestamp(const CString &arg1, const CString &arg2, const CString &arg3);
2003-12-03 01:47:03 +00:00
static bool Is192( const CString &str, int pos );
2003-07-15 19:55:06 +00:00
CString m_sLoadingFile;
2002-09-11 05:15:46 +00:00
public:
void GetApplicableFiles( CString sPath, CStringArray &out );
bool Loadable( CString sPath );
bool LoadFromDir( CString sPath, Song &out );
2002-09-06 23:24:40 +00:00
};
#endif