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:
@@ -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 *
|
||||
*******************/
|
||||
|
||||
Reference in New Issue
Block a user