Initial commit: ROW Client source code
Game client codebase including: - CharacterActionControl: Character and creature management - GlobalScript: Network, items, skills, quests, utilities - RYLClient: Main client application with GUI and event handlers - Engine: 3D rendering engine (RYLGL) - MemoryManager: Custom memory allocation - Library: Third-party dependencies (DirectX, boost, etc.) - Tools: Development utilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
23
MemoryManager/GMMemory.inl
Normal file
23
MemoryManager/GMMemory.inl
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
#ifdef GM_USE_MEMORY
|
||||
|
||||
#include <cassert>
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
inline GMMemoryManager::STimestamp* GMMemoryManager::GetFreeTimestamp()
|
||||
{
|
||||
if ( NULL == m_pAvailableTimestampList )
|
||||
{
|
||||
AllocateTimestampBlock() ;
|
||||
}
|
||||
|
||||
assert( NULL != m_pAvailableTimestampList && "Allocate timestamp block failed !!" ) ;
|
||||
|
||||
STimestamp* pStamp = m_pAvailableTimestampList ;
|
||||
m_pAvailableTimestampList = m_pAvailableTimestampList->m_pNext ;
|
||||
return pStamp ;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#endif // GM_USE_MEMORY
|
||||
Reference in New Issue
Block a user