1
This commit is contained in:
54
engine/networkstringtablecontainerclient.h
Normal file
54
engine/networkstringtablecontainerclient.h
Normal file
@ -0,0 +1,54 @@
|
||||
//========= 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
|
Reference in New Issue
Block a user