diff --git a/apps/openmw/CMakeLists.txt b/apps/openmw/CMakeLists.txt index 958c23d89..520b9ec9e 100644 --- a/apps/openmw/CMakeLists.txt +++ b/apps/openmw/CMakeLists.txt @@ -96,7 +96,8 @@ add_openmw_dir (mwbase inputmanager windowmanager statemanager ) -add_openmw_dir (mwmp Main Networking LocalPlayer DedicatedPlayer LocalActor DedicatedActor ActorList WorldEvent Cell CellController MechanicsHelper GUIChat GUILogin GUIController PlayerMarkerCollection GUIDialogList) +add_openmw_dir (mwmp Main Networking LocalPlayer DedicatedPlayer LocalActor DedicatedActor ActorList WorldEvent Cell CellController MechanicsHelper GUIChat GUILogin + GUIController PlayerMarkerCollection GUIDialogList WorldController PlayerProcessor WorldProcesssor ProcessorInitializer) # Main executable diff --git a/apps/openmw/mwmp/ProcessorInitializer.cpp b/apps/openmw/mwmp/ProcessorInitializer.cpp new file mode 100644 index 000000000..5a10951b9 --- /dev/null +++ b/apps/openmw/mwmp/ProcessorInitializer.cpp @@ -0,0 +1,95 @@ +// +// Created by koncord on 31.03.17. +// + +#include "ProcessorInitializer.hpp" + +#include "PlayerProcessor.hpp" +#include "processors/player/ProcessorPlayerPos.hpp" +#include "processors/player/ProcessorPlayerCellChange.hpp" +#include "processors/player/ProcessorPlayerCellState.hpp" +#include "processors/player/ProcessorPlayerAttribute.hpp" +#include "processors/player/ProcessorPlayerSkill.hpp" +#include "processors/player/ProcessorPlayerLevel.hpp" +#include "processors/player/ProcessorPlayerEquipment.hpp" +#include "processors/player/ProcessorPlayerInventory.hpp" +#include "processors/player/ProcessorPlayerSpellbook.hpp" +#include "processors/player/ProcessorPlayerJournal.hpp" +#include "processors/player/ProcessorPlayerAttack.hpp" +#include "processors/player/ProcessorPlayerDynamicStats.hpp" +#include "processors/player/ProcessorPlayerDeath.hpp" +#include "processors/player/ProcessorPlayerResurrect.hpp" +#include "processors/player/ProcessorPlayerDrawState.hpp" +#include "processors/player/ProcessorChatMessage.hpp" +#include "processors/player/ProcessorPlayerCharGen.hpp" +#include "processors/player/ProcessorGUIMessageBox.hpp" +#include "processors/player/ProcessorPlayerCharClass.hpp" +#include "processors/player/ProcessorHandshake.hpp" +#include "processors/player/ProcessorPlayerBaseInfo.hpp" +#include "processors/player/ProcessorUserDisconnected.hpp" +#include "processors/player/ProcessorUserMyID.hpp" + +/*#include "WorldProcessor.hpp" +#include "processors/world/ProcessorContainer.hpp" +#include "processors/world/ProcessorDoorState.hpp" +#include "processors/world/ProcessorMusicPlay.hpp" +#include "processors/world/ProcessorObjectAnimPlay.hpp" +#include "processors/world/ProcessorObjectDelete.hpp" +#include "processors/world/ProcessorObjectLock.hpp" +#include "processors/world/ProcessorObjectMove.hpp" +#include "processors/world/ProcessorObjectPlace.hpp" +#include "processors/world/ProcessorObjectRotate.hpp" +#include "processors/world/ProcessorObjectScale.hpp" +#include "processors/world/ProcessorObjectUnlock.hpp" +#include "processors/world/ProcessorScriptGlobalShort.hpp" +#include "processors/world/ProcessorScriptLocalFloat.hpp" +#include "processors/world/ProcessorScriptLocalShort.hpp" +#include "processors/world/ProcessorScriptMemberShort.hpp" +#include "processors/world/ProcessorVideoPlay.hpp"*/ + + +using namespace mwmp; + +void ProcessorInitializer() +{ + PlayerProcessor::AddProcessor(new ProcessorPlayerPos()); + PlayerProcessor::AddProcessor(new ProcessorPlayerCellChange()); + PlayerProcessor::AddProcessor(new ProcessorPlayerCellState()); + PlayerProcessor::AddProcessor(new ProcessorPlayerAttribute()); + PlayerProcessor::AddProcessor(new ProcessorPlayerSkill()); + PlayerProcessor::AddProcessor(new ProcessorPlayerLevel()); + PlayerProcessor::AddProcessor(new ProcessorPlayerEquipment()); + PlayerProcessor::AddProcessor(new ProcessorPlayerInventory()); + PlayerProcessor::AddProcessor(new ProcessorPlayerSpellbook()); + PlayerProcessor::AddProcessor(new ProcessorPlayerJournal()); + PlayerProcessor::AddProcessor(new ProcessorPlayerAttack()); + PlayerProcessor::AddProcessor(new ProcessorPlayerDynamicStats()); + PlayerProcessor::AddProcessor(new ProcessorPlayerDeath()); + PlayerProcessor::AddProcessor(new ProcessorPlayerResurrect()); + PlayerProcessor::AddProcessor(new ProcessorPlayerDrawState()); + PlayerProcessor::AddProcessor(new ProcessorChatMessage()); + PlayerProcessor::AddProcessor(new ProcessorPlayerCharGen()); + PlayerProcessor::AddProcessor(new ProcessorGUIMessageBox()); + PlayerProcessor::AddProcessor(new ProcessorPlayerCharClass()); + PlayerProcessor::AddProcessor(new ProcessorHandshake()); + PlayerProcessor::AddProcessor(new ProcessorPlayerBaseInfo()); + PlayerProcessor::AddProcessor(new ProcessorUserDisconnected()); + PlayerProcessor::AddProcessor(new ProcessorUserMyID()); + + /*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 ProcessorObjectUnlock()); + WorldProcessor::AddProcessor(new ProcessorScriptGlobalShort()); + WorldProcessor::AddProcessor(new ProcessorScriptLocalFloat()); + WorldProcessor::AddProcessor(new ProcessorScriptLocalShort()); + WorldProcessor::AddProcessor(new ProcessorScriptMemberShort()); + WorldProcessor::AddProcessor(new ProcessorVideoPlay());*/ +} \ No newline at end of file diff --git a/apps/openmw/mwmp/ProcessorInitializer.hpp b/apps/openmw/mwmp/ProcessorInitializer.hpp new file mode 100644 index 000000000..f4a5aa515 --- /dev/null +++ b/apps/openmw/mwmp/ProcessorInitializer.hpp @@ -0,0 +1,11 @@ +// +// Created by koncord on 31.03.17. +// + +#ifndef OPENMW_INIT_PROCESSORS_HPP +#define OPENMW_INIT_PROCESSORS_HPP + +void ProcessorInitializer(); + + +#endif //OPENMW_INIT_PROCESSORS_HPP