mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 05:19:55 +00:00
28 lines
805 B
C++
28 lines
805 B
C++
#ifndef OPENMW_BASEOBJECTPROCESSOR_HPP
|
|
#define OPENMW_BASEOBJECTPROCESSOR_HPP
|
|
|
|
#include "../ObjectProcessor.hpp"
|
|
#include "apps/openmw/mwmp/Main.hpp"
|
|
#include "apps/openmw/mwmp/CellController.hpp"
|
|
#include "apps/openmw/mwworld/cellstore.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class BaseObjectProcessor : public ObjectProcessor
|
|
{
|
|
public:
|
|
virtual void Do(ObjectPacket &packet, ObjectList &objectList)
|
|
{
|
|
ptrCellStore = Main::get().getCellController()->getCellStore(objectList.cell);
|
|
|
|
if (!ptrCellStore) return;
|
|
|
|
LOG_MESSAGE_SIMPLE(TimedLog::LOG_VERBOSE, "Received %s about %s", strPacketID.c_str(), objectList.cell.getDescription().c_str());
|
|
}
|
|
protected:
|
|
MWWorld::CellStore *ptrCellStore;
|
|
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_BASEOBJECTPROCESSOR_HPP
|