mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-25 11:07:45 +00:00
36 lines
549 B
C++
36 lines
549 B
C++
#ifndef _ZONEMGR_H
|
|
#define _ZONEMGR_H
|
|
|
|
#include "Forwards.h"
|
|
#include <map>
|
|
#include <unordered_map>
|
|
|
|
namespace Core {
|
|
|
|
using ZoneMap = std::unordered_map< uint32_t, ZonePtr >;
|
|
|
|
class ZoneMgr
|
|
{
|
|
public:
|
|
ZoneMgr();
|
|
~ZoneMgr();
|
|
|
|
bool createZones();
|
|
|
|
ZonePtr getZone( uint32_t zoneId );
|
|
|
|
void loadZonePositionMap();
|
|
|
|
ZonePositionPtr getZonePosition( uint32_t zonePositionId );
|
|
|
|
void updateZones();
|
|
|
|
private:
|
|
ZoneMap m_zoneMap;
|
|
|
|
std::unordered_map< int32_t, ZonePositionPtr > m_zonePositionMap;
|
|
};
|
|
|
|
} // namespace Core
|
|
|
|
#endif
|