add Character InitCommand (useful for scaling characters)

This commit is contained in:
Chris Danford
2006-11-05 04:58:33 +00:00
parent a55c69dc6e
commit ea2581fa4e
3 changed files with 12 additions and 2 deletions
+7 -1
View File
@@ -3,6 +3,7 @@
#include "IniFile.h"
#include "RageUtil.h"
#include "RageTextureID.h"
#include "ActorUtil.h"
Character::Character()
{
@@ -58,8 +59,13 @@ bool Character::Load( RString sCharDir )
ini.GetValue( "Character", ssprintf("Level%dAttack%d",i+1,j+1), m_sAttacks[i][j] );
}
// get display name (if any)
// get optional display name
ini.GetValue( "Character", "DisplayName", m_sDisplayName );
// get optional InitCommand
RString s;
ini.GetValue( "Character", "InitCommand", s );
m_cmdInit = ActorUtil::ParseActorCommands( s );
return true;
}