[Server] Rename WorldProcessor into ObjectProcessor

0.6.3
David Cernat 7 years ago
parent 1e749938fb
commit 02d8e08c58

@ -145,16 +145,16 @@ set(PROCESSORS_PLAYER
source_group(tes3mp-server\\processors\\player FILES ${PROCESSORS_PLAYER})
set(PROCESSORS_WORLD
processors/world/ProcessorContainer.hpp processors/world/ProcessorDoorState.hpp
processors/world/ProcessorMusicPlay.hpp processors/world/ProcessorObjectAnimPlay.hpp
processors/world/ProcessorObjectDelete.hpp processors/world/ProcessorObjectLock.hpp
processors/world/ProcessorObjectMove.hpp processors/world/ProcessorObjectPlace.hpp
processors/world/ProcessorObjectRotate.hpp processors/world/ProcessorObjectScale.hpp
processors/world/ProcessorObjectSpawn.hpp processors/world/ProcessorObjectState.hpp
processors/world/ProcessorObjectTrap.hpp processors/world/ProcessorScriptLocalShort.hpp
processors/world/ProcessorScriptLocalFloat.hpp processors/world/ProcessorScriptMemberShort.hpp
processors/world/ProcessorScriptMemberFloat.hpp processors/world/ProcessorScriptGlobalShort.hpp
processors/world/ProcessorScriptGlobalFloat.hpp processors/world/ProcessorVideoPlay.hpp
processors/object/ProcessorContainer.hpp processors/object/ProcessorDoorState.hpp
processors/object/ProcessorMusicPlay.hpp processors/object/ProcessorObjectAnimPlay.hpp
processors/object/ProcessorObjectDelete.hpp processors/object/ProcessorObjectLock.hpp
processors/object/ProcessorObjectMove.hpp processors/object/ProcessorObjectPlace.hpp
processors/object/ProcessorObjectRotate.hpp processors/object/ProcessorObjectScale.hpp
processors/object/ProcessorObjectSpawn.hpp processors/object/ProcessorObjectState.hpp
processors/object/ProcessorObjectTrap.hpp processors/object/ProcessorScriptLocalShort.hpp
processors/object/ProcessorScriptLocalFloat.hpp processors/object/ProcessorScriptMemberShort.hpp
processors/object/ProcessorScriptMemberFloat.hpp processors/object/ProcessorScriptGlobalShort.hpp
processors/object/ProcessorScriptGlobalFloat.hpp processors/object/ProcessorVideoPlay.hpp
)
source_group(tes3mp-server\\processors\\world FILES ${PROCESSORS_WORLD})
@ -163,7 +163,7 @@ set(PROCESSORS
processors/ProcessorInitializer.cpp
processors/PlayerProcessor.cpp
processors/ActorProcessor.cpp
processors/WorldProcessor.cpp
processors/ObjectProcessor.cpp
)
source_group(tes3mp-server\\processors FILES ${PROCESSORS})

@ -25,7 +25,7 @@
#include "CellController.hpp"
#include "processors/PlayerProcessor.hpp"
#include "processors/ActorProcessor.hpp"
#include "processors/WorldProcessor.hpp"
#include "processors/ObjectProcessor.hpp"
using namespace mwmp;
using namespace std;
@ -188,7 +188,7 @@ void Networking::processObjectPacket(RakNet::Packet *packet)
if (!player->isHandshaked() || player->getLoadState() != Player::POSTLOADED)
return;
if (!WorldProcessor::Process(*packet, baseObjectList))
if (!ObjectProcessor::Process(*packet, baseObjectList))
LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Unhandled ObjectPacket with identifier %i has arrived", packet->data[0]);
}

@ -1,8 +1,4 @@
//
// Created by koncord on 03.04.17.
//
#include "WorldProcessor.hpp"
#include "ObjectProcessor.hpp"
#include "Networking.hpp"
using namespace mwmp;
@ -10,12 +6,12 @@ using namespace mwmp;
template<class T>
typename BasePacketProcessor<T>::processors_t BasePacketProcessor<T>::processors;
void WorldProcessor::Do(ObjectPacket &packet, Player &player, BaseObjectList &objectList)
void ObjectProcessor::Do(ObjectPacket &packet, Player &player, BaseObjectList &objectList)
{
packet.Send(true);
}
bool WorldProcessor::Process(RakNet::Packet &packet, BaseObjectList &objectList) noexcept
bool ObjectProcessor::Process(RakNet::Packet &packet, BaseObjectList &objectList) noexcept
{
// Clear our BaseObjectList before loading new data in it
objectList.cell.blank();

@ -1,9 +1,5 @@
//
// Created by koncord on 03.04.17.
//
#ifndef OPENMW_WORLDPROCESSOR_HPP
#define OPENMW_WORLDPROCESSOR_HPP
#ifndef OPENMW_OBJECTPROCESSOR_HPP
#define OPENMW_OBJECTPROCESSOR_HPP
#include <components/openmw-mp/Base/BasePacketProcessor.hpp>
@ -15,7 +11,7 @@
namespace mwmp
{
class WorldProcessor : public BasePacketProcessor<WorldProcessor>
class ObjectProcessor : public BasePacketProcessor<ObjectProcessor>
{
public:
@ -25,4 +21,4 @@ namespace mwmp
};
}
#endif //OPENMW_WORLDPROCESSOR_HPP
#endif //OPENMW_OBJECTPROCESSOR_HPP

@ -58,27 +58,27 @@
#include "actor/ProcessorActorStatsDynamic.hpp"
#include "actor/ProcessorActorPosition.hpp"
#include "actor/ProcessorActorSpeech.hpp"
#include "WorldProcessor.hpp"
#include "world/ProcessorContainer.hpp"
#include "world/ProcessorDoorState.hpp"
#include "world/ProcessorMusicPlay.hpp"
#include "world/ProcessorObjectAnimPlay.hpp"
#include "world/ProcessorObjectDelete.hpp"
#include "world/ProcessorObjectPlace.hpp"
#include "world/ProcessorObjectLock.hpp"
#include "world/ProcessorObjectMove.hpp"
#include "world/ProcessorObjectRotate.hpp"
#include "world/ProcessorObjectScale.hpp"
#include "world/ProcessorObjectSpawn.hpp"
#include "world/ProcessorObjectState.hpp"
#include "world/ProcessorObjectTrap.hpp"
#include "world/ProcessorScriptLocalShort.hpp"
#include "world/ProcessorScriptLocalFloat.hpp"
#include "world/ProcessorScriptMemberShort.hpp"
#include "world/ProcessorScriptMemberFloat.hpp"
#include "world/ProcessorScriptGlobalShort.hpp"
#include "world/ProcessorScriptGlobalFloat.hpp"
#include "world/ProcessorVideoPlay.hpp"
#include "ObjectProcessor.hpp"
#include "object/ProcessorContainer.hpp"
#include "object/ProcessorDoorState.hpp"
#include "object/ProcessorMusicPlay.hpp"
#include "object/ProcessorObjectAnimPlay.hpp"
#include "object/ProcessorObjectDelete.hpp"
#include "object/ProcessorObjectPlace.hpp"
#include "object/ProcessorObjectLock.hpp"
#include "object/ProcessorObjectMove.hpp"
#include "object/ProcessorObjectRotate.hpp"
#include "object/ProcessorObjectScale.hpp"
#include "object/ProcessorObjectSpawn.hpp"
#include "object/ProcessorObjectState.hpp"
#include "object/ProcessorObjectTrap.hpp"
#include "object/ProcessorScriptLocalShort.hpp"
#include "object/ProcessorScriptLocalFloat.hpp"
#include "object/ProcessorScriptMemberShort.hpp"
#include "object/ProcessorScriptMemberFloat.hpp"
#include "object/ProcessorScriptGlobalShort.hpp"
#include "object/ProcessorScriptGlobalFloat.hpp"
#include "object/ProcessorVideoPlay.hpp"
using namespace mwmp;
@ -136,24 +136,24 @@ void ProcessorInitializer()
ActorProcessor::AddProcessor(new ProcessorActorStatsDynamic());
ActorProcessor::AddProcessor(new ProcessorActorTest());
WorldProcessor::AddProcessor(new ProcessorContainer());
WorldProcessor::AddProcessor(new ProcessorDoorState());
WorldProcessor::AddProcessor(new ProcessorMusicPlay());
WorldProcessor::AddProcessor(new ProcessorObjectAnimPlay());
WorldProcessor::AddProcessor(new ProcessorObjectDelete());
WorldProcessor::AddProcessor(new ProcessorObjectLock());
WorldProcessor::AddProcessor(new ProcessorObjectMove());
WorldProcessor::AddProcessor(new ProcessorObjectPlace());
WorldProcessor::AddProcessor(new ProcessorObjectRotate());
WorldProcessor::AddProcessor(new ProcessorObjectScale());
WorldProcessor::AddProcessor(new ProcessorObjectSpawn());
WorldProcessor::AddProcessor(new ProcessorObjectState());
WorldProcessor::AddProcessor(new ProcessorObjectTrap());
WorldProcessor::AddProcessor(new ProcessorScriptLocalShort());
WorldProcessor::AddProcessor(new ProcessorScriptLocalFloat());
WorldProcessor::AddProcessor(new ProcessorScriptMemberShort());
WorldProcessor::AddProcessor(new ProcessorScriptMemberFloat());
WorldProcessor::AddProcessor(new ProcessorScriptGlobalShort());
WorldProcessor::AddProcessor(new ProcessorScriptGlobalFloat());
WorldProcessor::AddProcessor(new ProcessorVideoPlay());
ObjectProcessor::AddProcessor(new ProcessorContainer());
ObjectProcessor::AddProcessor(new ProcessorDoorState());
ObjectProcessor::AddProcessor(new ProcessorMusicPlay());
ObjectProcessor::AddProcessor(new ProcessorObjectAnimPlay());
ObjectProcessor::AddProcessor(new ProcessorObjectDelete());
ObjectProcessor::AddProcessor(new ProcessorObjectLock());
ObjectProcessor::AddProcessor(new ProcessorObjectMove());
ObjectProcessor::AddProcessor(new ProcessorObjectPlace());
ObjectProcessor::AddProcessor(new ProcessorObjectRotate());
ObjectProcessor::AddProcessor(new ProcessorObjectScale());
ObjectProcessor::AddProcessor(new ProcessorObjectSpawn());
ObjectProcessor::AddProcessor(new ProcessorObjectState());
ObjectProcessor::AddProcessor(new ProcessorObjectTrap());
ObjectProcessor::AddProcessor(new ProcessorScriptLocalShort());
ObjectProcessor::AddProcessor(new ProcessorScriptLocalFloat());
ObjectProcessor::AddProcessor(new ProcessorScriptMemberShort());
ObjectProcessor::AddProcessor(new ProcessorScriptMemberFloat());
ObjectProcessor::AddProcessor(new ProcessorScriptGlobalShort());
ObjectProcessor::AddProcessor(new ProcessorScriptGlobalFloat());
ObjectProcessor::AddProcessor(new ProcessorVideoPlay());
}

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSORCONTAINER_HPP
#define OPENMW_PROCESSORCONTAINER_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorContainer : public WorldProcessor
class ProcessorContainer : public ObjectProcessor
{
public:
ProcessorContainer()

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSORDOORSTATE_HPP
#define OPENMW_PROCESSORDOORSTATE_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorDoorState : public WorldProcessor
class ProcessorDoorState : public ObjectProcessor
{
public:
ProcessorDoorState()

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSORMUSICPLAY_HPP
#define OPENMW_PROCESSORMUSICPLAY_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorMusicPlay : public WorldProcessor
class ProcessorMusicPlay : public ObjectProcessor
{
public:
ProcessorMusicPlay()

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSOROBJECTANIMPLAY_HPP
#define OPENMW_PROCESSOROBJECTANIMPLAY_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorObjectAnimPlay : public WorldProcessor
class ProcessorObjectAnimPlay : public ObjectProcessor
{
public:
ProcessorObjectAnimPlay()

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSOROBJECTDELETE_HPP
#define OPENMW_PROCESSOROBJECTDELETE_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorObjectDelete : public WorldProcessor
class ProcessorObjectDelete : public ObjectProcessor
{
public:
ProcessorObjectDelete()

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSOROBJECTLOCK_HPP
#define OPENMW_PROCESSOROBJECTLOCK_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorObjectLock : public WorldProcessor
class ProcessorObjectLock : public ObjectProcessor
{
public:
ProcessorObjectLock()

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSOROBJECTMOVE_HPP
#define OPENMW_PROCESSOROBJECTMOVE_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorObjectMove : public WorldProcessor
class ProcessorObjectMove : public ObjectProcessor
{
public:
ProcessorObjectMove()

@ -1,12 +1,12 @@
#ifndef OPENMW_PROCESSOROBJECTPLACE_HPP
#define OPENMW_PROCESSOROBJECTPLACE_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
#include <apps/openmw-mp/Networking.hpp>
namespace mwmp
{
class ProcessorObjectPlace : public WorldProcessor
class ProcessorObjectPlace : public ObjectProcessor
{
public:
ProcessorObjectPlace()

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSOROBJECTROTATE_HPP
#define OPENMW_PROCESSOROBJECTROTATE_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorObjectRotate : public WorldProcessor
class ProcessorObjectRotate : public ObjectProcessor
{
public:
ProcessorObjectRotate()

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSOROBJECTSCALE_HPP
#define OPENMW_PROCESSOROBJECTSCALE_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorObjectScale : public WorldProcessor
class ProcessorObjectScale : public ObjectProcessor
{
public:
ProcessorObjectScale()

@ -1,12 +1,12 @@
#ifndef OPENMW_PROCESSOROBJECTSPAWN_HPP
#define OPENMW_PROCESSOROBJECTSPAWN_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
#include <apps/openmw-mp/Networking.hpp>
namespace mwmp
{
class ProcessorObjectSpawn : public WorldProcessor
class ProcessorObjectSpawn : public ObjectProcessor
{
public:
ProcessorObjectSpawn()

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSOROBJECTSTATE_HPP
#define OPENMW_PROCESSOROBJECTSTATE_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorObjectState : public WorldProcessor
class ProcessorObjectState : public ObjectProcessor
{
public:
ProcessorObjectState()

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSOROBJECTTRAP_HPP
#define OPENMW_PROCESSOROBJECTTRAP_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorObjectTrap : public WorldProcessor
class ProcessorObjectTrap : public ObjectProcessor
{
public:
ProcessorObjectTrap()

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSORSCRIPTGLOBALFLOAT_HPP
#define OPENMW_PROCESSORSCRIPTGLOBALFLOAT_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorScriptGlobalFloat : public WorldProcessor
class ProcessorScriptGlobalFloat : public ObjectProcessor
{
public:
ProcessorScriptGlobalFloat()

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSORSCRIPTGLOBALSHORT_HPP
#define OPENMW_PROCESSORSCRIPTGLOBALSHORT_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorScriptGlobalShort : public WorldProcessor
class ProcessorScriptGlobalShort : public ObjectProcessor
{
public:
ProcessorScriptGlobalShort()

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSORSCRIPTLOCALFLOAT_HPP
#define OPENMW_PROCESSORSCRIPTLOCALFLOAT_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorScriptLocalFloat : public WorldProcessor
class ProcessorScriptLocalFloat : public ObjectProcessor
{
public:
ProcessorScriptLocalFloat()

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSORSCRIPTLOCALSHORT_HPP
#define OPENMW_PROCESSORSCRIPTLOCALSHORT_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorScriptLocalShort : public WorldProcessor
class ProcessorScriptLocalShort : public ObjectProcessor
{
public:
ProcessorScriptLocalShort()

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSORSCRIPTMEMBERFLOAT_HPP
#define OPENMW_PROCESSORSCRIPTMEMBERFLOAT_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorScriptMemberFloat : public WorldProcessor
class ProcessorScriptMemberFloat : public ObjectProcessor
{
public:
ProcessorScriptMemberFloat()

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSORSCRIPTMEMBERSHORT_HPP
#define OPENMW_PROCESSORSCRIPTMEMBERSHORT_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorScriptMemberShort : public WorldProcessor
class ProcessorScriptMemberShort : public ObjectProcessor
{
public:
ProcessorScriptMemberShort()

@ -1,11 +1,11 @@
#ifndef OPENMW_PROCESSORVIDEOPLAY_HPP
#define OPENMW_PROCESSORVIDEOPLAY_HPP
#include "../WorldProcessor.hpp"
#include "../ObjectProcessor.hpp"
namespace mwmp
{
class ProcessorVideoPlay : public WorldProcessor
class ProcessorVideoPlay : public ObjectProcessor
{
public:
ProcessorVideoPlay()
Loading…
Cancel
Save