26 lines
673 B
C++
26 lines
673 B
C++
#pragma once
|
|
|
|
//
|
|
class GameZone;
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// <ZoneManager>
|
|
// 서버쪽과는 다르게 클라이언트는 단일 인스턴스 관리 목적으로 사용한다.
|
|
class ZoneManager
|
|
{
|
|
typedef STLX_MAP<MAPCODE, GameZone*> GAME_ZONE_HASH;
|
|
typedef GAME_ZONE_HASH::iterator GAME_ZONE_HASH_IT;
|
|
|
|
public: static GameZone* GetMap(MAPCODE mcCODE);
|
|
static void FreeMap(MAPCODE mcCODE) {}; // not implementation
|
|
static DWORD GetMapCheckSum(FIELDCODE mcFIELDCODE);
|
|
|
|
private: ZoneManager();
|
|
~ZoneManager();
|
|
static ZoneManager* Instance();
|
|
|
|
private: static ZoneManager* m_pInstance;
|
|
GAME_ZONE_HASH m_ZoneHash;
|
|
};
|
|
|