Don't set two different names for an element. Instead, pass the metrics group name as a parameter to Load()
This commit is contained in:
@@ -110,7 +110,7 @@ void Actor::LoadFromNode( const CString& sDir, const XNode* pNode )
|
||||
sCmdName="on";
|
||||
else
|
||||
sCmdName = sKeyName.Left( sKeyName.size()-7 );
|
||||
m_mapNameToCommands[sCmdName] = apac;
|
||||
AddCommand( sCmdName, apac );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -989,6 +989,11 @@ void Actor::QueueCommand( const CString& sCommandName )
|
||||
DestTweenState().sCommandName = sCommandName;
|
||||
}
|
||||
|
||||
void Actor::AddCommand( const CString &sCmdName, apActorCommands apac )
|
||||
{
|
||||
m_mapNameToCommands[sCmdName] = apac;
|
||||
}
|
||||
|
||||
void Actor::PlayCommand( const CString &sCommandName )
|
||||
{
|
||||
CString sKey = sCommandName;
|
||||
|
||||
Reference in New Issue
Block a user