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:
Chris Danford
2005-02-16 23:03:01 +00:00
parent 21e59e065e
commit 533e83ed00
8 changed files with 34 additions and 31 deletions
+6 -1
View File
@@ -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;