Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
87
GameTools/Zallad3D SceneClass/Z3DStringTable.h
Normal file
87
GameTools/Zallad3D SceneClass/Z3DStringTable.h
Normal file
@@ -0,0 +1,87 @@
|
||||
// Z3DStringTable.h: interface for the CZ3DStringTable class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(AFX_Z3DSTRINGTABLE_H__587C6AC4_766F_4145_8059_21BB7D1550EA__INCLUDED_)
|
||||
#define AFX_Z3DSTRINGTABLE_H__587C6AC4_766F_4145_8059_21BB7D1550EA__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
|
||||
|
||||
#pragma warning(disable:4786)
|
||||
|
||||
#include <map>
|
||||
#include "misc.h"
|
||||
|
||||
|
||||
#pragma pack(push)
|
||||
#pragma pack(1)
|
||||
|
||||
struct Z3DTOK
|
||||
{
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
long lTblNum:14;
|
||||
long lItemNum:18;
|
||||
};
|
||||
long lNum;
|
||||
};
|
||||
|
||||
Z3DTOK( long l )
|
||||
{
|
||||
lNum = l;
|
||||
}
|
||||
|
||||
Z3DTOK()
|
||||
{
|
||||
}
|
||||
|
||||
bool operator == ( const Z3DTOK &t ) const
|
||||
{
|
||||
return (lNum == t.lNum);
|
||||
}
|
||||
|
||||
bool operator != ( const Z3DTOK &t ) const
|
||||
{
|
||||
return (lNum != t.lNum);
|
||||
}
|
||||
|
||||
bool operator < ( const Z3DTOK &t ) const
|
||||
{
|
||||
return(lNum < t.lNum);
|
||||
}
|
||||
};
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
extern const Z3DTOK NULL_TOK;
|
||||
|
||||
|
||||
class CZ3DStringTable
|
||||
{
|
||||
public:
|
||||
CZ3DStringTable();
|
||||
virtual ~CZ3DStringTable();
|
||||
|
||||
Z3DTOK Add( const char* szKey );
|
||||
Z3DTOK GetTOK( const char* szKey );
|
||||
const char* GetString( const Z3DTOK tok );
|
||||
void Flush();
|
||||
|
||||
|
||||
protected:
|
||||
// Tablenum<75><6D> TOKCount<6E><74> <20><><EFBFBD><EFBFBD> 0<><30> <20><> <20><> <20><><EFBFBD><EFBFBD>
|
||||
long m_lTablenum;
|
||||
long m_lTOKCount;
|
||||
|
||||
std::map<char*, Z3DTOK, szi_less> m_mapString2TOK;
|
||||
std::map<Z3DTOK, char*> m_mapTOK2String;
|
||||
|
||||
static long ms_lTableCount;
|
||||
};
|
||||
|
||||
#endif // !defined(AFX_Z3DSTRINGTABLE_H__587C6AC4_766F_4145_8059_21BB7D1550EA__INCLUDED_)
|
||||
Reference in New Issue
Block a user