2018-03-29 17:01:57 -04:00
|
|
|
|
2019-07-07 20:56:15 +00:00
|
|
|
#include <StdAfx.h>
|
2018-03-29 17:01:57 -04:00
|
|
|
#include "ServerCellManager.h"
|
|
|
|
|
#include "World.h"
|
|
|
|
|
#include "WorldLandBlock.h"
|
|
|
|
|
|
|
|
|
|
ServerCellManager::ServerCellManager()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ServerCellManager::~ServerCellManager()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-07 20:56:15 +00:00
|
|
|
CObjCell *ServerCellManager::GetObjCell(uint32_t cell_id, bool bDoPostLoad)
|
2018-03-29 17:01:57 -04:00
|
|
|
{
|
|
|
|
|
CWorldLandBlock *wlb = g_pWorld->GetLandblock((WORD)(cell_id >> 16), true);
|
2018-06-16 13:34:16 -05:00
|
|
|
return wlb->GetObjCell((WORD)(cell_id & 0xFFFF), bDoPostLoad);
|
2018-03-29 17:01:57 -04:00
|
|
|
}
|