allow setting AutoActor directly

This commit is contained in:
Glenn Maynard
2006-09-20 22:09:16 +00:00
parent 4f555ddb66
commit 45a159bd00
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -27,6 +27,12 @@ AutoActor &AutoActor::operator=( const AutoActor &cpy )
return *this;
}
void AutoActor::Load( Actor *pActor )
{
Unload();
m_pActor = pActor;
}
void AutoActor::Load( const RString &sPath )
{
Unload();
+1
View File
@@ -21,6 +21,7 @@ public:
Actor *operator->() { return m_pActor; }
void Unload();
bool IsLoaded() const { return m_pActor != NULL; }
void Load( Actor *pActor );
void Load( const RString &sPath );
void LoadFromNode( const RString &sDir, const XNode* pNode );
void LoadAndSetName( const RString &sScreenName, const RString &sActorName );