AutoActor::LoadFromNode

This commit is contained in:
Glenn Maynard
2005-02-26 09:55:34 +00:00
parent 32fc206f48
commit b003670ff3
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -16,6 +16,13 @@ void AutoActor::Load( const CString &sPath )
m_pActor = ActorUtil::MakeActor( sPath );
}
void AutoActor::LoadFromNode( const CString &sDir, const XNode* pNode )
{
Unload();
m_pActor = ActorUtil::LoadFromActorFile( sDir, pNode );
}
void AutoActor::LoadAndSetName( const CString &sScreenName, const CString &sActorName )
{
Load( THEME->GetPathG(sScreenName,sActorName) );