Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//========= 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
|