Files
itgmania212121/stepmania/src/StyleDef.cpp
T

32 lines
882 B
C++
Raw Normal View History

#include "stdafx.h"
/*
-----------------------------------------------------------------------------
File: StyleDef.cpp
Desc: A data structure that holds the definition of a GameMode.
2002-05-19 01:59:48 +00:00
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
-----------------------------------------------------------------------------
*/
#include "StyleDef.h"
2002-05-01 19:14:55 +00:00
#include "RageLog.h"
2002-04-01 02:04:43 +00:00
#include "RageUtil.h"
2002-06-14 22:25:22 +00:00
2002-04-28 20:42:32 +00:00
#include "GameDef.h"
#include "IniFile.h"
2002-05-01 19:14:55 +00:00
void StyleDef::GetTransformedNoteDataForStyle( PlayerNumber p, NoteData* pOriginal, NoteData &newNoteData )
{
2002-05-27 08:23:27 +00:00
int iNewToOriginalTrack[MAX_COLS_PER_PLAYER];
2002-05-01 19:14:55 +00:00
for( int col=0; col<m_iColsPerPlayer; col++ )
{
ColumnInfo colInfo = m_ColumnInfo[p][col];
2002-05-27 08:23:27 +00:00
int originalTrack = colInfo.track;
2002-05-01 19:14:55 +00:00
iNewToOriginalTrack[col] = originalTrack;
}
newNoteData.LoadTransformed( pOriginal, m_iColsPerPlayer, iNewToOriginalTrack );
2002-04-28 20:42:32 +00:00
}