Files
Client/GameTools/Zallad3D SceneClass/DataCasher.cpp
LGram16 dd97ddec92 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>
2025-11-29 20:17:20 +09:00

56 lines
926 B
C++

// DataCasher.cpp: implementation of the CDataCasher class.
//
//////////////////////////////////////////////////////////////////////
#include "DataCasher.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CDataObj::CDataObj()
{
m_pNext.clear();
m_iNext = 0;
}
CDataObj::~CDataObj()
{
if(m_iNext > 0)
{
for(int i= (m_iNext - 1); i >= 0; i-- )
{
if(m_pNext[i] != NULL)
delete m_pNext[i];
m_pNext[i] = NULL;
}
m_pNext.clear();
}
}
CDataCasher::CDataCasher()
{
m_iCashNum = 0;
m_HashTable.clear();
}
CDataCasher::~CDataCasher()
{
if((int)m_HashTable.size() > 0)
{
for(ISDATAITER itr = m_HashTable.begin(); itr != m_HashTable.end();)
{
if(itr->second != NULL)
{
delete itr->second;
}
itr->second = NULL;
itr++;
}
m_HashTable.clear();
}
}