allow setting AutoActor directly
This commit is contained in:
@@ -27,6 +27,12 @@ AutoActor &AutoActor::operator=( const AutoActor &cpy )
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AutoActor::Load( Actor *pActor )
|
||||||
|
{
|
||||||
|
Unload();
|
||||||
|
m_pActor = pActor;
|
||||||
|
}
|
||||||
|
|
||||||
void AutoActor::Load( const RString &sPath )
|
void AutoActor::Load( const RString &sPath )
|
||||||
{
|
{
|
||||||
Unload();
|
Unload();
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ public:
|
|||||||
Actor *operator->() { return m_pActor; }
|
Actor *operator->() { return m_pActor; }
|
||||||
void Unload();
|
void Unload();
|
||||||
bool IsLoaded() const { return m_pActor != NULL; }
|
bool IsLoaded() const { return m_pActor != NULL; }
|
||||||
|
void Load( Actor *pActor );
|
||||||
void Load( const RString &sPath );
|
void Load( const RString &sPath );
|
||||||
void LoadFromNode( const RString &sDir, const XNode* pNode );
|
void LoadFromNode( const RString &sDir, const XNode* pNode );
|
||||||
void LoadAndSetName( const RString &sScreenName, const RString &sActorName );
|
void LoadAndSetName( const RString &sScreenName, const RString &sActorName );
|
||||||
|
|||||||
Reference in New Issue
Block a user