mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* IClientEntityList is the full virtual function table. * CUtlDict "implementation" is temporary.
26 lines
553 B
C++
26 lines
553 B
C++
//============ Copyright Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose: A dictionary mapping from symbol to structure
|
|
//
|
|
// $Header: $
|
|
// $NoKeywords: $
|
|
//===========================================================================//
|
|
|
|
#pragma once
|
|
|
|
template <class T, class I>
|
|
class CUtlDict
|
|
{
|
|
public:
|
|
CUtlDict<T, I>(uintptr_t ptr) : m_Elements(ptr) {};
|
|
T Find(__int64 entry);
|
|
|
|
private:
|
|
uintptr_t m_Elements;
|
|
};
|
|
|
|
template <class T, class I>
|
|
T CUtlDict<T, I>::Find(__int64 entry)
|
|
{
|
|
return *(T*)(m_Elements + 24 * entry + 16);
|
|
} |