slight reorganization for future expansion
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40555
This commit is contained in:
parent
d893af2ea4
commit
124f9ba049
@ -73,7 +73,18 @@ SendProp *UTIL_FindInSendTable(SendTable *pTable, const char *name)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
SendProp *CHalfLife2::FindInSendTable(const char *classname, const char *offset)
|
ServerClass *CHalfLife2::FindServerClass(const char *classname)
|
||||||
|
{
|
||||||
|
DataTableInfo *pInfo = _FindServerClass(classname);
|
||||||
|
if (!pInfo)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
return pInfo->sc;
|
||||||
|
}
|
||||||
|
|
||||||
|
DataTableInfo *CHalfLife2::_FindServerClass(const char *classname)
|
||||||
{
|
{
|
||||||
DataTableInfo *pInfo = NULL;
|
DataTableInfo *pInfo = NULL;
|
||||||
|
|
||||||
@ -98,6 +109,18 @@ SendProp *CHalfLife2::FindInSendTable(const char *classname, const char *offset)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return pInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
SendProp *CHalfLife2::FindInSendTable(const char *classname, const char *offset)
|
||||||
|
{
|
||||||
|
DataTableInfo *pInfo = _FindServerClass(classname);
|
||||||
|
|
||||||
|
if (!pInfo)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
SendProp *pProp;
|
SendProp *pProp;
|
||||||
if (!sm_trie_retrieve(pInfo->lookup, offset, (void **)&pProp))
|
if (!sm_trie_retrieve(pInfo->lookup, offset, (void **)&pProp))
|
||||||
{
|
{
|
||||||
|
@ -39,7 +39,10 @@ public:
|
|||||||
void OnSourceModAllShutdown();*/
|
void OnSourceModAllShutdown();*/
|
||||||
public:
|
public:
|
||||||
SendProp *FindInSendTable(const char *classname, const char *offset);
|
SendProp *FindInSendTable(const char *classname, const char *offset);
|
||||||
public:
|
ServerClass *FindServerClass(const char *classname);
|
||||||
|
private:
|
||||||
|
DataTableInfo *_FindServerClass(const char *classname);
|
||||||
|
private:
|
||||||
Trie *m_pClasses;
|
Trie *m_pClasses;
|
||||||
List<DataTableInfo *> m_Tables;
|
List<DataTableInfo *> m_Tables;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user