csgo-2018-source/engine/networkstringtablecontainerclient.h
2021-07-24 21:11:47 -07:00

55 lines
1.6 KiB
C++

//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef NETWORKSTRINGTABLECONTAINERCLIENT_H
#define NETWORKSTRINGTABLECONTAINERCLIENT_H
#ifdef _WIN32
#pragma once
#endif
// #include "inetworkstringtableclient.h"
#include "networkstringtabledefs.h"
#include "netmessages.h"
class CUtlBuffer;
class CNetworkStringTable;
//-----------------------------------------------------------------------------
// Purpose: Client implementation of string list
//-----------------------------------------------------------------------------
class CNetworkStringTableContainerClient : public INetworkStringTableContainer
{
public:
// Construction
CNetworkStringTableContainerClient( void );
~CNetworkStringTableContainerClient( void );
public:
// implemenatation INetworkStringTableContainer
virtual INetworkStringTable *CreateStringTable( const char *tableName, int maxentries );
virtual void RemoveAllTables( void );
virtual INetworkStringTable *FindTable( const char *tableName ) const;
virtual INetworkStringTable *GetTable( TABLEID stringTable ) const;
virtual int GetNumTables( void ) const;
// Print contents to console
void Dump( void );
void WriteStringTables( CUtlBuffer& buf );
bool ReadStringTables( CUtlBuffer& buf );
private:
CUtlVector < CNetworkStringTable* > m_Tables;
};
extern CNetworkStringTableContainerClient *networkStringTableContainerClient;
#endif // NETWORKSTRINGTABLECONTAINERCLIENT_H