mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 07:19:54 +00:00
32 lines
842 B
C++
32 lines
842 B
C++
//
|
|
// Created by koncord on 18.04.17.
|
|
//
|
|
|
|
#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(Log::LOG_VERBOSE, "Received %s about %s", strPacketID.c_str(), objectList.cell.getDescription().c_str());
|
|
}
|
|
protected:
|
|
MWWorld::CellStore *ptrCellStore;
|
|
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_BASEOBJECTPROCESSOR_HPP
|