1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 11:49:56 +00:00
openmw-tes3mp/apps/openmw/mwmp/processors/object/BaseObjectProcessor.hpp

33 lines
842 B
C++
Raw Normal View History

2017-04-18 03:37:32 +00:00
//
// Created by koncord on 18.04.17.
//
#ifndef OPENMW_BASEOBJECTPROCESSOR_HPP
#define OPENMW_BASEOBJECTPROCESSOR_HPP
#include "../ObjectProcessor.hpp"
2017-04-18 03:37:32 +00:00
#include "apps/openmw/mwmp/Main.hpp"
2017-04-18 04:17:58 +00:00
#include "apps/openmw/mwmp/CellController.hpp"
2017-04-18 03:37:32 +00:00
#include "apps/openmw/mwworld/cellstore.hpp"
namespace mwmp
{
class BaseObjectProcessor : public ObjectProcessor
2017-04-18 03:37:32 +00:00
{
public:
virtual void Do(ObjectPacket &packet, ObjectList &objectList)
2017-04-18 03:37:32 +00:00
{
ptrCellStore = Main::get().getCellController()->getCellStore(objectList.cell);
2017-04-18 03:37:32 +00:00
if (!ptrCellStore) return;
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Received %s about %s", strPacketID.c_str(), objectList.cell.getDescription().c_str());
2017-04-18 03:37:32 +00:00
}
protected:
MWWorld::CellStore *ptrCellStore;
};
}
#endif //OPENMW_BASEOBJECTPROCESSOR_HPP