source-engine/engine/networkstringtablecontainerclient.h
FluorescentCIAAfricanAmerican 3bf9df6b27 1
2020-04-22 12:56:21 -04:00

55 lines
1.6 KiB
C++

//========= Copyright 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