Once BGAnimation is handled mostly by AutoActor, all BGAnimations will
be "non-generic" (and probably deprecated); let's aim to move all "generic" logic into BGAnimation, out of BGALayer.
This commit is contained in:
@@ -164,6 +164,9 @@ void BGAnimation::LoadFromAniDir( CString sAniDir )
|
||||
Command cmd;
|
||||
cmd.Load( "PlayCommand,Init" );
|
||||
this->RunCommandOnChildren( cmd );
|
||||
|
||||
if( !m_bGeneric )
|
||||
PlayCommand( "On" );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -589,9 +589,6 @@ void BGAnimationLayer::LoadFromIni( const CString& sAniDir_, const IniKey& layer
|
||||
for( unsigned i=0; i<m_SubActors.size(); i++ )
|
||||
m_SubActors[i]->SetState( rand()%m_SubActors[i]->GetNumStates() );
|
||||
}
|
||||
|
||||
if( !m_bGeneric )
|
||||
PlayCommand( "On" );
|
||||
}
|
||||
|
||||
void BGAnimationLayer::Update( float fDeltaTime )
|
||||
|
||||
Reference in New Issue
Block a user