add GetCommandLength
This commit is contained in:
@@ -636,6 +636,17 @@ void Actor::Command( CString sCommandString )
|
||||
}
|
||||
}
|
||||
|
||||
float Actor::GetCommandLength( CString command )
|
||||
{
|
||||
class NullActor: public Actor
|
||||
{
|
||||
void DrawPrimitives() { }
|
||||
} temp;
|
||||
|
||||
temp.Command(command);
|
||||
return temp.GetTweenTimeLeft();
|
||||
}
|
||||
|
||||
float Actor::GetTweenTimeLeft() const
|
||||
{
|
||||
float tot = 0;
|
||||
|
||||
@@ -283,6 +283,7 @@ public:
|
||||
void FadeOff( float fSleepSeconds, CString sFadeString, float fFadeSeconds ) { Fade(fSleepSeconds,sFadeString,fFadeSeconds,true); };
|
||||
|
||||
void Command( CString sCommandString );
|
||||
static float GetCommandLength( CString command );
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user