void CAI_GlobalNamespace::AddSymbol( const char *pszSymbol, int symbolID ) { AssertMsg( symbolID != -1, "Invalid symbol id passed to CAI_GlobalNamespace::AddSymbol()" ); if (symbolID == -1 ) return; AssertMsg( AI_IdIsGlobal( symbolID ), ("Local symbol ID passed to CAI_GlobalNamespace::AddSymbol()") ); AssertMsg( !IdToSymbol( symbolID ) , ("Duplicate symbol ID passed to CAI_GlobalNamespace::AddSymbol()") ); AssertMsg( SymbolToId( pszSymbol ) == -1, ("Duplicate symbol passed to CAI_GlobalNamespace::AddSymbol()") ); m_pSymbols->AddString( pszSymbol, symbolID ); if ( m_NextGlobalBase < symbolID + 1 ) m_NextGlobalBase = symbolID + 1; }
SInputSymbol* CInputDevice::LookupSymbol(EKeyId id) const { return IdToSymbol(id); }