1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 12:06:07 +08:00

Correct certain type definitions

Definitions were retrieved from schema dumps
This commit is contained in:
GAMMACASE
2025-03-05 20:19:50 +03:00
parent 69eab48899
commit db723f3667
5 changed files with 6 additions and 4 deletions

View File

@ -22,6 +22,8 @@ struct EventClientOutput_t
EngineLoopState_t m_LoopState;
float m_flRenderTime;
float m_flRealTime;
float m_flRenderFrameTimeUnbounded;
bool m_bRenderOnly;
};
abstract_class IEngineService : public IAppSystem

View File

@ -167,7 +167,7 @@ template <class K, class V>
class CSchemaPtrMap
{
public:
CUtlOrderedMap<K, V> m_Map;
CUtlOrderedMap<K, V, unsigned short> m_Map;
CThreadFastMutex m_Mutex;
};

View File

@ -115,7 +115,7 @@ enum soundlevel_t
//-----------------------------------------------------------------------------
// Flags to be or-ed together for the iFlags field
//-----------------------------------------------------------------------------
enum SoundFlags_t
enum SoundFlags_t : uint16
{
SOUND_NONE = 0, // to keep the compiler happy

View File

@ -753,7 +753,7 @@ void CUtlLeanVectorImpl<B, T, I>::DestructElements( T* pElement, const T* pEnd )
template < class T, class I = short >
using CUtlLeanVector = CUtlLeanVectorImpl< CUtlLeanVectorBase< T, I >, T, I >;
template < class T, size_t N = 3, class I = short >
template < class T, size_t N = 3, class I = int >
using CUtlLeanVectorFixedGrowable = CUtlLeanVectorImpl< CUtlLeanVectorFixedGrowableBase< T, N, I >, T, I >;
#include "tier0/memdbgoff.h"

View File

@ -201,7 +201,7 @@ protected:
//-----------------------------------------------------------------------------
// AMNOTE: Currently a stub over CUtlMap, needs a complete implementation
template <typename K, typename T, typename I = unsigned short, typename LF = CDefLess<K>>
template <typename K, typename T, typename I = int, typename LF = CDefLess<K>>
struct CUtlOrderedMap : public CUtlMap<K, T, I, LF>
{};