add pre-parsing for ActorCommands (though not yet used in ThemeManager)

This commit is contained in:
Chris Danford
2004-01-10 20:34:18 +00:00
parent 7c6321d4a8
commit f7647ae391
15 changed files with 66 additions and 120 deletions
+1 -8
View File
@@ -133,14 +133,6 @@ Actor* MakeActor( RageTextureID ID )
ID.filename.c_str(), sExt.c_str() );
}
void IncorrectActorParametersWarning( const CStringArray &asTokens, int iMaxIndexAccessed, int size )
{
const CString sError = ssprintf( "Actor::HandleCommand: Wrong number of parameters in command '%s'. Expected %d but there are %d.",
join(",",asTokens).c_str(), iMaxIndexAccessed+1, size );
LOG->Warn( sError );
HOOKS->MessageBoxOK( sError );
}
void UtilSetXY( Actor& actor, CString sClassName )
{
ASSERT( !actor.GetID().empty() );
@@ -169,3 +161,4 @@ float UtilCommand( Actor& actor, CString sClassName, CString sCommandName )
return max( ret, actor.Command( THEME->GetMetric(sClassName,actor.GetID()+sCommandName+"Command") ) );
}