#pragma once #include "memorypool.h" struct PerPvPPlayer : PerNode { short mCharacterChannel; /// Ç÷¹À̾îÀÇ ½Åû½Ã ä³Î unsigned long mPlayerIdx; /// Ç÷¹À̾îidx unsigned char mLevel; /// Ç÷¹À̾º§ unsigned char mForceType; /// ¼¼·ÂŸÀÔ bool mSelection; /// ÀüÀåÂü¿©¿¡ ¼±Á¤/ºñ¼±Á¤ ¿©ºÎ }; struct PvPPlayerRoot : NodeRoot { unsigned long count; PvPPlayerRoot( ) { pool = NULL; root = NULL; count = 0; } }; class cPvPPlayerListPool { private: PerPvPPlayer* mNonPagedPoolUsage; // ÆäÀÌÁö ¾ÈµÈ Ç®. public: cPvPPlayerListPool( ); void Shutdown ( ); PerPvPPlayer* AddPlayer( PvPPlayerRoot* root, short channel, unsigned long playerIdx, unsigned char level, unsigned char forceType, bool selection ); PerPvPPlayer* GetPlayer( PvPPlayerRoot* root, long index ); void ReleasePlayer( PvPPlayerRoot* root, PerPvPPlayer* perPlayer ); public: virtual ~cPvPPlayerListPool(void); public: static cPvPPlayerListPool* mpPvPPlayerListPool; }; #define PVPPLAYERLISTPOOL cPvPPlayerListPool::mpPvPPlayerListPool