remove hacky Actor::IsType
This commit is contained in:
@@ -297,19 +297,6 @@ void Actor::LoadFromNode( const XNode* pNode )
|
||||
PlayCommand( "Init" );
|
||||
}
|
||||
|
||||
/* Like RTTI: return true if this actor is an sType (or derived from sType).
|
||||
* This uses the Lua binding check, so only works on bound types. */
|
||||
bool Actor::IsType( const RString &sType )
|
||||
{
|
||||
Lua *L = LUA->Get();
|
||||
this->PushSelf( L );
|
||||
bool bRet = LuaBinding::CheckLuaObjectType( L, lua_gettop(L), sType, false );
|
||||
lua_pop( L, 1 );
|
||||
LUA->Release( L );
|
||||
|
||||
return bRet;
|
||||
}
|
||||
|
||||
void Actor::Draw()
|
||||
{
|
||||
if( !m_bVisible )
|
||||
|
||||
@@ -59,7 +59,6 @@ public:
|
||||
virtual Actor *Copy() const;
|
||||
virtual void InitState();
|
||||
virtual void LoadFromNode( const XNode* pNode );
|
||||
bool IsType( const RString &sType );
|
||||
|
||||
static void SetBGMTime( float fTime, float fBeat );
|
||||
static void SetBGMLight( int iLightNumber, float fCabinetLights );
|
||||
|
||||
Reference in New Issue
Block a user