2017-04-18 03:37:32 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 18.04.17.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef OPENMW_BASEOBJECTPROCESSOR_HPP
|
|
|
|
#define OPENMW_BASEOBJECTPROCESSOR_HPP
|
|
|
|
|
2018-05-15 19:56:47 +00:00
|
|
|
#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
|
|
|
|
{
|
2018-05-15 19:56:47 +00:00
|
|
|
class BaseObjectProcessor : public ObjectProcessor
|
2017-04-18 03:37:32 +00:00
|
|
|
{
|
|
|
|
public:
|
2018-05-12 21:42:24 +00:00
|
|
|
virtual void Do(ObjectPacket &packet, ObjectList &objectList)
|
2017-04-18 03:37:32 +00:00
|
|
|
{
|
2018-05-12 21:42:24 +00:00
|
|
|
ptrCellStore = Main::get().getCellController()->getCellStore(objectList.cell);
|
2017-04-18 03:37:32 +00:00
|
|
|
|
|
|
|
if (!ptrCellStore) return;
|
|
|
|
|
2018-05-12 21:42:24 +00:00
|
|
|
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
|