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
+3 -3
View File
@@ -789,11 +789,11 @@ void Sprite::StretchTexCoords( float fX, float fY )
SetCustomTextureCoords( fTexCoords );
}
void Sprite::HandleCommand( const CStringArray &asTokens )
void Sprite::HandleCommand( const ParsedCommand &command )
{
HandleParams;
const CString& sName = asTokens[0];
const CString& sName = sParam(0);
// Commands that go in the tweening queue:
// Commands that take effect immediately (ignoring the tweening queue):
@@ -813,7 +813,7 @@ void Sprite::HandleCommand( const CStringArray &asTokens )
else if( sName=="rate" ) GetTexture()->SetPlaybackRate( fParam(1) );
else
{
Actor::HandleCommand( asTokens );
Actor::HandleCommand( command );
return;
}