move attribute loading into the class that owns the attribute

This commit is contained in:
Chris Danford
2005-01-16 23:40:21 +00:00
parent 7b43001220
commit 8a1fb93003
8 changed files with 84 additions and 56 deletions
+1 -10
View File
@@ -170,7 +170,6 @@ void BGAnimation::LoadFromNode( const CString &sDir, const XNode& node )
{
DEBUG_ASSERT( node.m_sName == "BGAnimation" );
CString sInitCommand;
if( node.GetAttrValue( "InitCommand", sInitCommand ) )
{
@@ -180,15 +179,7 @@ void BGAnimation::LoadFromNode( const CString &sDir, const XNode& node )
this->RunCommands( ParseCommands(sInitCommand) );
}
const XNode* pChildren = node.GetChild("children");
if( pChildren )
{
FOREACH_CONST_Child( pChildren, pChild )
{
Actor* pChildActor = LoadFromActorFile( sDir, *pChild );
AddChild( pChildActor );
}
}
ActorFrame::LoadFromNode( sDir, &node );
Command cmd;
cmd.Load( "PlayCommand,Init" );