mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-12-14 17:48:29 +00:00
28 lines
763 B
C++
28 lines
763 B
C++
#ifndef BERIMBAU_UM_HELPERS
|
|
#define BERIMBAU_UM_HELPERS
|
|
|
|
#include "game/shared/berimbau/protobuf/berimbau_usermessages.pb.h"
|
|
#include <tier1/utlhashdict.h>
|
|
|
|
class CBerimbauUsermessageHelpers
|
|
{
|
|
public:
|
|
CBerimbauUsermessageHelpers();
|
|
|
|
const google::protobuf::Message *GetPrototype( int index ) const;
|
|
const google::protobuf::Message *GetPrototype( const char *name ) const;
|
|
|
|
int GetIndex( const char *name ) const;
|
|
|
|
const char *GetName( int index ) const;
|
|
|
|
private:
|
|
CUtlHashDict<int, false, false> m_NameIndexMap;
|
|
const char *m_IndexNameMap[ECstrike15UserMessages_ARRAYSIZE];
|
|
const google::protobuf::Message *m_Prototypes[ECstrike15UserMessages_ARRAYSIZE];
|
|
};
|
|
|
|
extern CBerimbauUsermessageHelpers g_BerimbauUsermessageHelpers;
|
|
|
|
#endif // BERIMBAU_UM_HELPERS
|