1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-10 19:02:11 +08:00
hl2sdk/public/game/shared/csgo/protobuf/cstrike15_usermessage_helpers.h
Nicholas Hastings 9b4973eaed Added CS:GO usermessage helper class.
--HG--
branch : protobuf
2013-01-15 14:08:29 -05:00

28 lines
794 B
C++

#ifndef CSTRIKE15_UM_HELPERS
#define CSTRIKE15_UM_HELPERS
#include "game/shared/csgo/protobuf/cstrike15_usermessages.pb.h"
#include <tier1/utlhashdict.h>
class CCstrike15UsermessageHelpers
{
public:
CCstrike15UsermessageHelpers();
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 CCstrike15UsermessageHelpers g_Cstrike15UsermessageHelpers;
#endif // CSTRIKE15_UM_HELPERS