cleanup
This commit is contained in:
@@ -79,13 +79,6 @@ void Actor::Reset()
|
|||||||
UnsubcribeAndClearCommands();
|
UnsubcribeAndClearCommands();
|
||||||
}
|
}
|
||||||
|
|
||||||
Actor::Actor()
|
|
||||||
{
|
|
||||||
m_size = RageVector2( 1, 1 );
|
|
||||||
Reset();
|
|
||||||
m_bFirstUpdate = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool GetMessageNameFromCommandName( const CString &sCommandName, CString &sMessageNameOut )
|
static bool GetMessageNameFromCommandName( const CString &sCommandName, CString &sMessageNameOut )
|
||||||
{
|
{
|
||||||
if( sCommandName.Right(7) == "Message" )
|
if( sCommandName.Right(7) == "Message" )
|
||||||
@@ -106,6 +99,13 @@ void Actor::UnsubcribeAndClearCommands()
|
|||||||
m_vsSubscribedTo.clear();
|
m_vsSubscribedTo.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Actor::Actor()
|
||||||
|
{
|
||||||
|
m_size = RageVector2( 1, 1 );
|
||||||
|
Reset();
|
||||||
|
m_bFirstUpdate = true;
|
||||||
|
}
|
||||||
|
|
||||||
Actor::~Actor()
|
Actor::~Actor()
|
||||||
{
|
{
|
||||||
UnsubcribeAndClearCommands();
|
UnsubcribeAndClearCommands();
|
||||||
|
|||||||
@@ -330,9 +330,13 @@ public:
|
|||||||
void SetCullModeString( const CString &s ); // convenience
|
void SetCullModeString( const CString &s ); // convenience
|
||||||
|
|
||||||
//
|
//
|
||||||
// Commands
|
// Lua
|
||||||
//
|
//
|
||||||
virtual void PushSelf( lua_State *L );
|
virtual void PushSelf( lua_State *L );
|
||||||
|
|
||||||
|
//
|
||||||
|
// Commands
|
||||||
|
//
|
||||||
void AddCommand( const CString &sCmdName, apActorCommands apac );
|
void AddCommand( const CString &sCmdName, apActorCommands apac );
|
||||||
bool HasCommand( const CString &sCmdName );
|
bool HasCommand( const CString &sCmdName );
|
||||||
const apActorCommands& GetCommand( const CString &sCommandName ) const;
|
const apActorCommands& GetCommand( const CString &sCommandName ) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user