Initial import of convar stuff

1) Natives to create, find, set, and get convars
2) "cvars" option added to sm menu
3) Some internal additions to CPlugin to store a convar list
Still some things left to do...

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40463
This commit is contained in:
Scott Ehlert
2007-02-08 21:41:28 +00:00
parent 471da79fa5
commit fdba3e1f66
13 changed files with 1306 additions and 4 deletions
+16 -1
View File
@@ -504,11 +504,26 @@ size_t CPlugin::GetLangFileCount() const
return m_PhraseFiles.size();
}
unsigned int CPlugin::GetFileByIndex(unsigned int index) const
unsigned int CPlugin::GetLangFileByIndex(unsigned int index) const
{
return m_PhraseFiles.at(index);
}
void CPlugin::AddConVar(ConVar *convar)
{
m_ConVarList.push_back(convar);
}
size_t CPlugin::GetConVarCount() const
{
return m_ConVarList.size();
}
ConVar *CPlugin::GetConVarByIndex(size_t index) const
{
return m_ConVarList.at(index);
}
/*******************
* PLUGIN ITERATOR *
*******************/