Beispiel #1
0
void MapCell::CancelPendingUnload()
{
    //Log.Debug("MapCell", "Cancelling pending unload of cell %u %u", _x, _y);
    if (!_unloadpending)
        return;

    sEventMgr.RemoveEvents(_mapmgr, MAKE_CELL_EVENT(_x, _y));
}
Beispiel #2
0
void MapCell::QueueUnloadPending()
{
    if (_unloadpending)
        return;

    _unloadpending = true;
    //Log.Debug("MapCell", "Queueing pending unload of cell %u %u", _x, _y);
    sEventMgr.AddEvent(_mapmgr, &MapMgr::UnloadCell, (uint32)_x, (uint32)_y, MAKE_CELL_EVENT(_x, _y), sWorld.map_unload_time * 1000, 1, 0);
}
Beispiel #3
0
void MapCell::QueueUnloadPending()
{
	if(_unloadpending)
		return;

	_unloadpending = true;
	DEBUG_LOG("MapCell", "Queueing pending unload of cell %u %u", _x, _y);
	sEventMgr.AddEvent(_mapmgr, &MapMgr::UnloadCell,(uint32)_x,(uint32)_y,MAKE_CELL_EVENT(_x,_y), 60000,1,0);
}