mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 06:06:50 +00:00
55 lines
1.6 KiB
C++
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
|