forked from mirror/openmw-tes3mp
[General] Add placeholders for new packet types
This commit is contained in:
parent
78df8c5ebe
commit
02af7f6ba1
52 changed files with 938 additions and 64 deletions
|
@ -111,30 +111,33 @@ source_group(tes3mp-server FILES ${SERVER} ${SERVER_HEADER})
|
||||||
set(PROCESSORS_ACTOR
|
set(PROCESSORS_ACTOR
|
||||||
processors/actor/ProcessorActorAnimFlags.hpp processors/actor/ProcessorActorAnimPlay.hpp
|
processors/actor/ProcessorActorAnimFlags.hpp processors/actor/ProcessorActorAnimPlay.hpp
|
||||||
processors/actor/ProcessorActorAttack.hpp processors/actor/ProcessorActorCellChange.hpp
|
processors/actor/ProcessorActorAttack.hpp processors/actor/ProcessorActorCellChange.hpp
|
||||||
processors/actor/ProcessorActorEquipment.hpp processors/actor/ProcessorActorList.hpp
|
processors/actor/ProcessorActorEquipment.hpp processors/actor/ProcessorActorInteraction.hpp
|
||||||
processors/actor/ProcessorActorPosition.hpp processors/actor/ProcessorActorSpeech.hpp
|
processors/actor/ProcessorActorList.hpp processors/actor/ProcessorActorPosition.hpp
|
||||||
processors/actor/ProcessorActorStatsDynamic.hpp processors/actor/ProcessorActorTest.hpp
|
processors/actor/ProcessorActorSpeech.hpp processors/actor/ProcessorActorStatsDynamic.hpp
|
||||||
|
processors/actor/ProcessorActorTest.hpp
|
||||||
)
|
)
|
||||||
|
|
||||||
source_group(tes3mp-server\\processors\\actor FILES ${PROCESSORS_ACTOR})
|
source_group(tes3mp-server\\processors\\actor FILES ${PROCESSORS_ACTOR})
|
||||||
|
|
||||||
set(PROCESSORS_PLAYER
|
set(PROCESSORS_PLAYER
|
||||||
processors/player/ProcessorChatMsg.hpp processors/player/ProcessorGUIMessageBox.hpp
|
processors/player/ProcessorChatMsg.hpp processors/player/ProcessorGUIMessageBox.hpp
|
||||||
processors/player/ProcessorGameWeather.hpp processors/player/ProcessorPlayerAnimFlags.hpp
|
processors/player/ProcessorRecordDynamic.hpp processors/player/ProcessorGameWeather.hpp
|
||||||
processors/player/ProcessorPlayerAnimPlay.hpp processors/player/ProcessorPlayerAttack.hpp
|
processors/player/ProcessorPlayerAnimFlags.hpp processors/player/ProcessorPlayerAnimPlay.hpp
|
||||||
processors/player/ProcessorPlayerAttribute.hpp processors/player/ProcessorPlayerBook.hpp
|
processors/player/ProcessorPlayerAttack.hpp processors/player/ProcessorPlayerAttribute.hpp
|
||||||
processors/player/ProcessorPlayerBounty.hpp processors/player/ProcessorPlayerCellChange.hpp
|
processors/player/ProcessorPlayerBook.hpp processors/player/ProcessorPlayerBounty.hpp
|
||||||
processors/player/ProcessorPlayerCellState.hpp processors/player/ProcessorPlayerCharClass.hpp
|
processors/player/ProcessorPlayerCellChange.hpp processors/player/ProcessorPlayerCellState.hpp
|
||||||
processors/player/ProcessorPlayerCharGen.hpp processors/player/ProcessorPlayerDeath.hpp
|
processors/player/ProcessorPlayerCharClass.hpp processors/player/ProcessorPlayerCharGen.hpp
|
||||||
processors/player/ProcessorPlayerDisposition.hpp processors/player/ProcessorPlayerEquipment.hpp
|
processors/player/ProcessorPlayerDeath.hpp processors/player/ProcessorPlayerDisposition.hpp
|
||||||
processors/player/ProcessorPlayerFaction.hpp processors/player/ProcessorPlayerInventory.hpp
|
processors/player/ProcessorPlayerEquipment.hpp processors/player/ProcessorPlayerFaction.hpp
|
||||||
|
processors/player/ProcessorPlayerInteraction.hpp processors/player/ProcessorPlayerInventory.hpp
|
||||||
processors/player/ProcessorPlayerJournal.hpp processors/player/ProcessorPlayerKillCount.hpp
|
processors/player/ProcessorPlayerJournal.hpp processors/player/ProcessorPlayerKillCount.hpp
|
||||||
processors/player/ProcessorPlayerLevel.hpp processors/player/ProcessorPlayerMap.hpp
|
processors/player/ProcessorPlayerLevel.hpp processors/player/ProcessorPlayerMap.hpp
|
||||||
processors/player/ProcessorPlayerPosition.hpp processors/player/ProcessorPlayerQuickKeys.hpp
|
processors/player/ProcessorPlayerMiscellaneous.hpp processors/player/ProcessorPlayerPosition.hpp
|
||||||
processors/player/ProcessorPlayerRest.hpp processors/player/ProcessorPlayerResurrect.hpp
|
processors/player/ProcessorPlayerQuickKeys.hpp processors/player/ProcessorPlayerRest.hpp
|
||||||
processors/player/ProcessorPlayerShapeshift.hpp processors/player/ProcessorPlayerSkill.hpp
|
processors/player/ProcessorPlayerResurrect.hpp processors/player/ProcessorPlayerShapeshift.hpp
|
||||||
processors/player/ProcessorPlayerSpeech.hpp processors/player/ProcessorPlayerSpellbook.hpp
|
processors/player/ProcessorPlayerSkill.hpp processors/player/ProcessorPlayerSpeech.hpp
|
||||||
processors/player/ProcessorPlayerStatsDynamic.hpp processors/player/ProcessorPlayerTopic.hpp
|
processors/player/ProcessorPlayerSpellbook.hpp processors/player/ProcessorPlayerStatsDynamic.hpp
|
||||||
|
processors/player/ProcessorPlayerTopic.hpp
|
||||||
)
|
)
|
||||||
|
|
||||||
source_group(tes3mp-server\\processors\\player FILES ${PROCESSORS_PLAYER})
|
source_group(tes3mp-server\\processors\\player FILES ${PROCESSORS_PLAYER})
|
||||||
|
@ -148,7 +151,8 @@ set(PROCESSORS_WORLD
|
||||||
processors/world/ProcessorObjectSpawn.hpp processors/world/ProcessorObjectState.hpp
|
processors/world/ProcessorObjectSpawn.hpp processors/world/ProcessorObjectState.hpp
|
||||||
processors/world/ProcessorObjectTrap.hpp processors/world/ProcessorScriptLocalShort.hpp
|
processors/world/ProcessorObjectTrap.hpp processors/world/ProcessorScriptLocalShort.hpp
|
||||||
processors/world/ProcessorScriptLocalFloat.hpp processors/world/ProcessorScriptMemberShort.hpp
|
processors/world/ProcessorScriptLocalFloat.hpp processors/world/ProcessorScriptMemberShort.hpp
|
||||||
processors/world/ProcessorScriptGlobalShort.hpp processors/world/ProcessorVideoPlay.hpp
|
processors/world/ProcessorScriptMemberFloat.hpp processors/world/ProcessorScriptGlobalShort.hpp
|
||||||
|
processors/world/ProcessorScriptGlobalFloat.hpp processors/world/ProcessorVideoPlay.hpp
|
||||||
)
|
)
|
||||||
|
|
||||||
source_group(tes3mp-server\\processors\\world FILES ${PROCESSORS_WORLD})
|
source_group(tes3mp-server\\processors\\world FILES ${PROCESSORS_WORLD})
|
||||||
|
|
|
@ -148,6 +148,7 @@ public:
|
||||||
{"OnPlayerSkill", Function<void, unsigned short>()},
|
{"OnPlayerSkill", Function<void, unsigned short>()},
|
||||||
{"OnPlayerLevel", Function<void, unsigned short>()},
|
{"OnPlayerLevel", Function<void, unsigned short>()},
|
||||||
{"OnPlayerBounty", Function<void, unsigned short>()},
|
{"OnPlayerBounty", Function<void, unsigned short>()},
|
||||||
|
{"OnPlayerReputation", Function<void, unsigned short>()},
|
||||||
{"OnPlayerEquipment", Function<void, unsigned short>()},
|
{"OnPlayerEquipment", Function<void, unsigned short>()},
|
||||||
{"OnPlayerInventory", Function<void, unsigned short>()},
|
{"OnPlayerInventory", Function<void, unsigned short>()},
|
||||||
{"OnPlayerJournal", Function<void, unsigned short>()},
|
{"OnPlayerJournal", Function<void, unsigned short>()},
|
||||||
|
@ -158,7 +159,9 @@ public:
|
||||||
{"OnPlayerTopic", Function<void, unsigned short>()},
|
{"OnPlayerTopic", Function<void, unsigned short>()},
|
||||||
{"OnPlayerDisposition", Function<void, unsigned short>()},
|
{"OnPlayerDisposition", Function<void, unsigned short>()},
|
||||||
{"OnPlayerBook", Function<void, unsigned short>()},
|
{"OnPlayerBook", Function<void, unsigned short>()},
|
||||||
|
{"OnPlayerMiscellaneous", Function<void, unsigned short>()},
|
||||||
{"OnPlayerMap", Function<void, unsigned short>()},
|
{"OnPlayerMap", Function<void, unsigned short>()},
|
||||||
|
{"OnPlayerInteraction", Function<void, unsigned short>()},
|
||||||
{"OnPlayerRest", Function<void, unsigned short>()},
|
{"OnPlayerRest", Function<void, unsigned short>()},
|
||||||
{"OnCellLoad", Function<void, unsigned short, const char*>()},
|
{"OnCellLoad", Function<void, unsigned short, const char*>()},
|
||||||
{"OnCellUnload", Function<void, unsigned short, const char*>()},
|
{"OnCellUnload", Function<void, unsigned short, const char*>()},
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
#ifndef OPENMW_PROCESSORACTORINTERACTION_HPP
|
||||||
|
#define OPENMW_PROCESSORACTORINTERACTION_HPP
|
||||||
|
|
||||||
|
#include "../ActorProcessor.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorActorInteraction : public ActorProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorActorInteraction()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_ACTOR_INTERACTION)
|
||||||
|
}
|
||||||
|
|
||||||
|
void Do(ActorPacket &packet, Player &player, BaseActorList &actorList) override
|
||||||
|
{
|
||||||
|
// Send only to players who have the cell loaded
|
||||||
|
Cell *serverCell = CellController::get()->getCell(&actorList.cell);
|
||||||
|
|
||||||
|
if (serverCell != nullptr && *serverCell->getAuthority() == actorList.guid)
|
||||||
|
serverCell->sendToLoaded(&packet, &actorList);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSORACTORINTERACTION_HPP
|
|
@ -1,7 +1,3 @@
|
||||||
//
|
|
||||||
// Created by koncord on 01.04.17.
|
|
||||||
//
|
|
||||||
|
|
||||||
#ifndef OPENMW_PROCESSORPLAYERATTACK_HPP
|
#ifndef OPENMW_PROCESSORPLAYERATTACK_HPP
|
||||||
#define OPENMW_PROCESSORPLAYERATTACK_HPP
|
#define OPENMW_PROCESSORPLAYERATTACK_HPP
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
#ifndef OPENMW_PROCESSORPLAYERINTERACTION_HPP
|
||||||
|
#define OPENMW_PROCESSORPLAYERINTERACTION_HPP
|
||||||
|
|
||||||
|
#include "../PlayerProcessor.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorPlayerInteraction : public PlayerProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorPlayerInteraction()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_PLAYER_INTERACTION)
|
||||||
|
}
|
||||||
|
|
||||||
|
void Do(PlayerPacket &packet, Player &player) override
|
||||||
|
{
|
||||||
|
DEBUG_PRINTF(strPacketID.c_str());
|
||||||
|
|
||||||
|
Script::Call<Script::CallbackIdentity("OnPlayerInteraction")>(player.getId());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSORPLAYERINTERACTION_HPP
|
|
@ -0,0 +1,25 @@
|
||||||
|
#ifndef OPENMW_PROCESSORPLAYERMISCELLANEOUS_HPP
|
||||||
|
#define OPENMW_PROCESSORPLAYERMISCELLANEOUS_HPP
|
||||||
|
|
||||||
|
#include "../PlayerProcessor.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorPlayerMiscellaneous : public PlayerProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorPlayerMiscellaneous()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_PLAYER_MISCELLANEOUS)
|
||||||
|
}
|
||||||
|
|
||||||
|
void Do(PlayerPacket &packet, Player &player) override
|
||||||
|
{
|
||||||
|
DEBUG_PRINTF(strPacketID.c_str());
|
||||||
|
|
||||||
|
Script::Call<Script::CallbackIdentity("OnPlayerMiscellaneous")>(player.getId());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSORPLAYERMISCELLANEOUS_HPP
|
|
@ -0,0 +1,23 @@
|
||||||
|
#ifndef OPENMW_PROCESSORPLAYERREPUTATION_HPP
|
||||||
|
#define OPENMW_PROCESSORPLAYERREPUTATION_HPP
|
||||||
|
|
||||||
|
#include "../PlayerProcessor.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorPlayerReputation : public PlayerProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorPlayerReputation()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_PLAYER_REPUTATION)
|
||||||
|
}
|
||||||
|
|
||||||
|
void Do(PlayerPacket &packet, Player &player) override
|
||||||
|
{
|
||||||
|
Script::Call<Script::CallbackIdentity("OnPlayerReputation")>(player.getId());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSORPLAYERREPUTATION_HPP
|
25
apps/openmw-mp/processors/player/ProcessorRecordDynamic.hpp
Normal file
25
apps/openmw-mp/processors/player/ProcessorRecordDynamic.hpp
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#ifndef OPENMW_PROCESSORPLAYERRECORDDYNAMIC_HPP
|
||||||
|
#define OPENMW_PROCESSORPLAYERRECORDDYNAMIC_HPP
|
||||||
|
|
||||||
|
#include "../PlayerProcessor.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorPlayerRecordDynamic : public PlayerProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorPlayerRecordDynamic()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_RECORD_DYNAMIC)
|
||||||
|
}
|
||||||
|
|
||||||
|
void Do(PlayerPacket &packet, Player &player) override
|
||||||
|
{
|
||||||
|
DEBUG_PRINTF(strPacketID.c_str());
|
||||||
|
|
||||||
|
Script::Call<Script::CallbackIdentity("OnRecordDynamic")>(player.getId());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSORPLAYERRECORDDYNAMIC_HPP
|
|
@ -0,0 +1,18 @@
|
||||||
|
#ifndef OPENMW_PROCESSORSCRIPTGLOBALFLOAT_HPP
|
||||||
|
#define OPENMW_PROCESSORSCRIPTGLOBALFLOAT_HPP
|
||||||
|
|
||||||
|
#include "../WorldProcessor.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorScriptGlobalFloat : public WorldProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorScriptGlobalFloat()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_SCRIPT_GLOBAL_FLOAT)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSORSCRIPTGLOBALFLOAT_HPP
|
|
@ -0,0 +1,18 @@
|
||||||
|
#ifndef OPENMW_PROCESSORSCRIPTMEMBERFLOAT_HPP
|
||||||
|
#define OPENMW_PROCESSORSCRIPTMEMBERFLOAT_HPP
|
||||||
|
|
||||||
|
#include "../WorldProcessor.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorScriptMemberFloat : public WorldProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorScriptMemberFloat()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_SCRIPT_MEMBER_FLOAT)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSORSCRIPTMEMBERFLOAT_HPP
|
|
@ -108,25 +108,27 @@ add_openmw_dir(mwmp/processors BaseClientPacketProcessor PlayerProcessor WorldPr
|
||||||
)
|
)
|
||||||
|
|
||||||
add_openmw_dir (mwmp/processors/actor ProcessorActorAI ProcessorActorAnimFlags ProcessorActorAnimPlay ProcessorActorAttack
|
add_openmw_dir (mwmp/processors/actor ProcessorActorAI ProcessorActorAnimFlags ProcessorActorAnimPlay ProcessorActorAttack
|
||||||
ProcessorActorAuthority ProcessorActorCellChange ProcessorActorDeath ProcessorActorEquipment ProcessorActorList
|
ProcessorActorAuthority ProcessorActorCellChange ProcessorActorDeath ProcessorActorEquipment ProcessorActorInteraction
|
||||||
ProcessorActorPosition ProcessorActorSpeech ProcessorActorStatsDynamic ProcessorActorTest
|
ProcessorActorList ProcessorActorPosition ProcessorActorSpeech ProcessorActorStatsDynamic ProcessorActorTest
|
||||||
)
|
)
|
||||||
|
|
||||||
add_openmw_dir (mwmp/processors/player ProcessorChatMessage ProcessorGUIMessageBox ProcessorHandshake
|
add_openmw_dir (mwmp/processors/player ProcessorChatMessage ProcessorGUIMessageBox ProcessorHandshake
|
||||||
ProcessorUserDisconnected ProcessorUserMyID ProcessorGameSettings ProcessorGameTime ProcessorGameWeather
|
ProcessorUserDisconnected ProcessorUserMyID ProcessorCellCreate ProcessorRecordDynamic ProcessorGameSettings
|
||||||
ProcessorPlayerBaseInfo ProcessorPlayerAnimFlags ProcessorPlayerAnimPlay ProcessorPlayerAttack ProcessorPlayerAttribute
|
ProcessorGameTime ProcessorGameWeather ProcessorPlayerAnimFlags ProcessorPlayerAnimPlay ProcessorPlayerAttack
|
||||||
ProcessorPlayerBook ProcessorPlayerBounty ProcessorPlayerCellChange ProcessorPlayerCellState ProcessorPlayerCharClass
|
ProcessorPlayerAttribute ProcessorPlayerBaseInfo ProcessorPlayerBehavior ProcessorPlayerBook ProcessorPlayerBounty
|
||||||
ProcessorPlayerCharGen ProcessorPlayerDeath ProcessorPlayerDisposition ProcessorPlayerEquipment ProcessorPlayerFaction
|
ProcessorPlayerCellChange ProcessorPlayerCellState ProcessorPlayerCharClass ProcessorPlayerCharGen ProcessorPlayerDeath
|
||||||
|
ProcessorPlayerDisposition ProcessorPlayerEquipment ProcessorPlayerFaction ProcessorPlayerInteraction
|
||||||
ProcessorPlayerInventory ProcessorPlayerJail ProcessorPlayerJournal ProcessorPlayerKillCount ProcessorPlayerLevel
|
ProcessorPlayerInventory ProcessorPlayerJail ProcessorPlayerJournal ProcessorPlayerKillCount ProcessorPlayerLevel
|
||||||
ProcessorPlayerMap ProcessorPlayerPosition ProcessorPlayerQuickKeys ProcessorPlayerResurrect ProcessorPlayerShapeshift
|
ProcessorPlayerMap ProcessorPlayerMiscellaneous ProcessorPlayerPosition ProcessorPlayerQuickKeys
|
||||||
ProcessorPlayerSkill ProcessorPlayerSpeech ProcessorPlayerSpellbook ProcessorPlayerStatsDynamic ProcessorPlayerTopic
|
ProcessorPlayerReputation ProcessorPlayerResurrect ProcessorPlayerShapeshift ProcessorPlayerSkill ProcessorPlayerSpeech
|
||||||
|
ProcessorPlayerSpellbook ProcessorPlayerStatsDynamic ProcessorPlayerTopic
|
||||||
)
|
)
|
||||||
|
|
||||||
add_openmw_dir (mwmp/processors/world BaseObjectProcessor ProcessorConsoleCommand ProcessorContainer ProcessorDoorState
|
add_openmw_dir (mwmp/processors/world BaseObjectProcessor ProcessorConsoleCommand ProcessorContainer ProcessorDoorState
|
||||||
ProcessorMusicPlay ProcessorVideoPlay ProcessorObjectAnimPlay ProcessorObjectDelete ProcessorObjectLock
|
ProcessorMusicPlay ProcessorVideoPlay ProcessorObjectAnimPlay ProcessorObjectDelete ProcessorObjectLock
|
||||||
ProcessorObjectMove ProcessorObjectPlace ProcessorObjectRotate ProcessorObjectScale ProcessorObjectSpawn
|
ProcessorObjectMove ProcessorObjectPlace ProcessorObjectReset ProcessorObjectRotate ProcessorObjectScale
|
||||||
ProcessorObjectState ProcessorObjectTrap ProcessorScriptLocalShort ProcessorScriptLocalFloat ProcessorScriptMemberShort
|
ProcessorObjectSpawn ProcessorObjectState ProcessorObjectTrap ProcessorScriptLocalShort ProcessorScriptLocalFloat
|
||||||
ProcessorScriptGlobalShort
|
ProcessorScriptMemberShort ProcessorScriptMemberFloat ProcessorScriptGlobalShort ProcessorScriptGlobalFloat
|
||||||
)
|
)
|
||||||
|
|
||||||
# Main executable
|
# Main executable
|
||||||
|
|
|
@ -10,33 +10,39 @@
|
||||||
#include "player/ProcessorGUIMessageBox.hpp"
|
#include "player/ProcessorGUIMessageBox.hpp"
|
||||||
#include "player/ProcessorHandshake.hpp"
|
#include "player/ProcessorHandshake.hpp"
|
||||||
#include "player/ProcessorUserDisconnected.hpp"
|
#include "player/ProcessorUserDisconnected.hpp"
|
||||||
|
#include "player/ProcessorCellCreate.hpp"
|
||||||
|
#include "player/ProcessorRecordDynamic.hpp"
|
||||||
#include "player/ProcessorGameSettings.hpp"
|
#include "player/ProcessorGameSettings.hpp"
|
||||||
#include "player/ProcessorGameTime.hpp"
|
#include "player/ProcessorGameTime.hpp"
|
||||||
#include "player/ProcessorGameWeather.hpp"
|
#include "player/ProcessorGameWeather.hpp"
|
||||||
#include "player/ProcessorPlayerBaseInfo.hpp"
|
|
||||||
#include "player/ProcessorPlayerCharGen.hpp"
|
|
||||||
#include "player/ProcessorPlayerAnimFlags.hpp"
|
#include "player/ProcessorPlayerAnimFlags.hpp"
|
||||||
#include "player/ProcessorPlayerAnimPlay.hpp"
|
#include "player/ProcessorPlayerAnimPlay.hpp"
|
||||||
#include "player/ProcessorPlayerAttack.hpp"
|
#include "player/ProcessorPlayerAttack.hpp"
|
||||||
#include "player/ProcessorPlayerAttribute.hpp"
|
#include "player/ProcessorPlayerAttribute.hpp"
|
||||||
|
#include "player/ProcessorPlayerBaseInfo.hpp"
|
||||||
|
#include "player/ProcessorPlayerBehavior.hpp"
|
||||||
#include "player/ProcessorPlayerBook.hpp"
|
#include "player/ProcessorPlayerBook.hpp"
|
||||||
#include "player/ProcessorPlayerBounty.hpp"
|
#include "player/ProcessorPlayerBounty.hpp"
|
||||||
#include "player/ProcessorPlayerCellChange.hpp"
|
#include "player/ProcessorPlayerCellChange.hpp"
|
||||||
#include "player/ProcessorPlayerCellState.hpp"
|
#include "player/ProcessorPlayerCellState.hpp"
|
||||||
#include "player/ProcessorPlayerCharClass.hpp"
|
#include "player/ProcessorPlayerCharClass.hpp"
|
||||||
|
#include "player/ProcessorPlayerCharGen.hpp"
|
||||||
#include "player/ProcessorPlayerDeath.hpp"
|
#include "player/ProcessorPlayerDeath.hpp"
|
||||||
#include "player/ProcessorPlayerDisposition.hpp"
|
#include "player/ProcessorPlayerDisposition.hpp"
|
||||||
#include "player/ProcessorPlayerEquipment.hpp"
|
#include "player/ProcessorPlayerEquipment.hpp"
|
||||||
#include "player/ProcessorPlayerFaction.hpp"
|
#include "player/ProcessorPlayerFaction.hpp"
|
||||||
|
#include "player/ProcessorPlayerInteraction.hpp"
|
||||||
#include "player/ProcessorPlayerInventory.hpp"
|
#include "player/ProcessorPlayerInventory.hpp"
|
||||||
#include "player/ProcessorPlayerJail.hpp"
|
#include "player/ProcessorPlayerJail.hpp"
|
||||||
#include "player/ProcessorPlayerJournal.hpp"
|
#include "player/ProcessorPlayerJournal.hpp"
|
||||||
#include "player/ProcessorPlayerKillCount.hpp"
|
#include "player/ProcessorPlayerKillCount.hpp"
|
||||||
#include "player/ProcessorPlayerLevel.hpp"
|
#include "player/ProcessorPlayerLevel.hpp"
|
||||||
#include "player/ProcessorPlayerMap.hpp"
|
#include "player/ProcessorPlayerMap.hpp"
|
||||||
|
#include "player/ProcessorPlayerMiscellaneous.hpp"
|
||||||
#include "player/ProcessorPlayerPosition.hpp"
|
#include "player/ProcessorPlayerPosition.hpp"
|
||||||
#include "player/ProcessorPlayerQuickKeys.hpp"
|
#include "player/ProcessorPlayerQuickKeys.hpp"
|
||||||
#include "player/ProcessorPlayerRegionAuthority.hpp"
|
#include "player/ProcessorPlayerRegionAuthority.hpp"
|
||||||
|
#include "player/ProcessorPlayerReputation.hpp"
|
||||||
#include "player/ProcessorPlayerRest.hpp"
|
#include "player/ProcessorPlayerRest.hpp"
|
||||||
#include "player/ProcessorPlayerResurrect.hpp"
|
#include "player/ProcessorPlayerResurrect.hpp"
|
||||||
#include "player/ProcessorPlayerShapeshift.hpp"
|
#include "player/ProcessorPlayerShapeshift.hpp"
|
||||||
|
@ -49,6 +55,7 @@
|
||||||
#include "WorldProcessor.hpp"
|
#include "WorldProcessor.hpp"
|
||||||
#include "world/ProcessorConsoleCommand.hpp"
|
#include "world/ProcessorConsoleCommand.hpp"
|
||||||
#include "world/ProcessorContainer.hpp"
|
#include "world/ProcessorContainer.hpp"
|
||||||
|
#include "world/ProcessorDoorDestination.hpp"
|
||||||
#include "world/ProcessorDoorState.hpp"
|
#include "world/ProcessorDoorState.hpp"
|
||||||
#include "world/ProcessorMusicPlay.hpp"
|
#include "world/ProcessorMusicPlay.hpp"
|
||||||
#include "world/ProcessorObjectAnimPlay.hpp"
|
#include "world/ProcessorObjectAnimPlay.hpp"
|
||||||
|
@ -56,6 +63,7 @@
|
||||||
#include "world/ProcessorObjectLock.hpp"
|
#include "world/ProcessorObjectLock.hpp"
|
||||||
#include "world/ProcessorObjectMove.hpp"
|
#include "world/ProcessorObjectMove.hpp"
|
||||||
#include "world/ProcessorObjectPlace.hpp"
|
#include "world/ProcessorObjectPlace.hpp"
|
||||||
|
#include "world/ProcessorObjectReset.hpp"
|
||||||
#include "world/ProcessorObjectRotate.hpp"
|
#include "world/ProcessorObjectRotate.hpp"
|
||||||
#include "world/ProcessorObjectScale.hpp"
|
#include "world/ProcessorObjectScale.hpp"
|
||||||
#include "world/ProcessorObjectSpawn.hpp"
|
#include "world/ProcessorObjectSpawn.hpp"
|
||||||
|
@ -64,7 +72,9 @@
|
||||||
#include "world/ProcessorScriptLocalShort.hpp"
|
#include "world/ProcessorScriptLocalShort.hpp"
|
||||||
#include "world/ProcessorScriptLocalFloat.hpp"
|
#include "world/ProcessorScriptLocalFloat.hpp"
|
||||||
#include "world/ProcessorScriptMemberShort.hpp"
|
#include "world/ProcessorScriptMemberShort.hpp"
|
||||||
|
#include "world/ProcessorScriptMemberFloat.hpp"
|
||||||
#include "world/ProcessorScriptGlobalShort.hpp"
|
#include "world/ProcessorScriptGlobalShort.hpp"
|
||||||
|
#include "world/ProcessorScriptGlobalFloat.hpp"
|
||||||
#include "world/ProcessorVideoPlay.hpp"
|
#include "world/ProcessorVideoPlay.hpp"
|
||||||
|
|
||||||
#include "actor/ProcessorActorAI.hpp"
|
#include "actor/ProcessorActorAI.hpp"
|
||||||
|
@ -75,6 +85,7 @@
|
||||||
#include "actor/ProcessorActorCellChange.hpp"
|
#include "actor/ProcessorActorCellChange.hpp"
|
||||||
#include "actor/ProcessorActorDeath.hpp"
|
#include "actor/ProcessorActorDeath.hpp"
|
||||||
#include "actor/ProcessorActorEquipment.hpp"
|
#include "actor/ProcessorActorEquipment.hpp"
|
||||||
|
#include "actor/ProcessorActorInteraction.hpp"
|
||||||
#include "actor/ProcessorActorList.hpp"
|
#include "actor/ProcessorActorList.hpp"
|
||||||
#include "actor/ProcessorActorPosition.hpp"
|
#include "actor/ProcessorActorPosition.hpp"
|
||||||
#include "actor/ProcessorActorSpeech.hpp"
|
#include "actor/ProcessorActorSpeech.hpp"
|
||||||
|
@ -89,33 +100,39 @@ void ProcessorInitializer()
|
||||||
PlayerProcessor::AddProcessor(new ProcessorGUIMessageBox());
|
PlayerProcessor::AddProcessor(new ProcessorGUIMessageBox());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorHandshake());
|
PlayerProcessor::AddProcessor(new ProcessorHandshake());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorUserDisconnected());
|
PlayerProcessor::AddProcessor(new ProcessorUserDisconnected());
|
||||||
|
PlayerProcessor::AddProcessor(new ProcessorCellCreate());
|
||||||
|
PlayerProcessor::AddProcessor(new ProcessorRecordDynamic());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorGameSettings());
|
PlayerProcessor::AddProcessor(new ProcessorGameSettings());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorGameTime());
|
PlayerProcessor::AddProcessor(new ProcessorGameTime());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorGameWeather());
|
PlayerProcessor::AddProcessor(new ProcessorGameWeather());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerBaseInfo());
|
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerCharGen());
|
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerAnimFlags());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerAnimFlags());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerAnimPlay());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerAnimPlay());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerAttack());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerAttack());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerAttribute());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerAttribute());
|
||||||
|
PlayerProcessor::AddProcessor(new ProcessorPlayerBaseInfo());
|
||||||
|
PlayerProcessor::AddProcessor(new ProcessorPlayerBehavior());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerBook());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerBook());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerBounty());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerBounty());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerCellChange());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerCellChange());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerCellState());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerCellState());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerCharClass());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerCharClass());
|
||||||
|
PlayerProcessor::AddProcessor(new ProcessorPlayerCharGen());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerDeath());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerDeath());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerDisposition());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerDisposition());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerEquipment());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerEquipment());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerFaction());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerFaction());
|
||||||
|
PlayerProcessor::AddProcessor(new ProcessorPlayerInteraction());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerInventory());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerInventory());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerJail());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerJail());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerJournal());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerJournal());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerKillCount());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerKillCount());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerLevel());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerLevel());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerMap());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerMap());
|
||||||
|
PlayerProcessor::AddProcessor(new ProcessorPlayerMiscellaneous());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerPosition());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerPosition());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerQuickKeys());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerQuickKeys());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerRegionAuthority());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerRegionAuthority());
|
||||||
|
PlayerProcessor::AddProcessor(new ProcessorPlayerReputation());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerRest());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerRest());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerResurrect());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerResurrect());
|
||||||
PlayerProcessor::AddProcessor(new ProcessorPlayerShapeshift());
|
PlayerProcessor::AddProcessor(new ProcessorPlayerShapeshift());
|
||||||
|
@ -127,6 +144,7 @@ void ProcessorInitializer()
|
||||||
|
|
||||||
WorldProcessor::AddProcessor(new ProcessorConsoleCommand());
|
WorldProcessor::AddProcessor(new ProcessorConsoleCommand());
|
||||||
WorldProcessor::AddProcessor(new ProcessorContainer());
|
WorldProcessor::AddProcessor(new ProcessorContainer());
|
||||||
|
WorldProcessor::AddProcessor(new ProcessorDoorDestination());
|
||||||
WorldProcessor::AddProcessor(new ProcessorDoorState());
|
WorldProcessor::AddProcessor(new ProcessorDoorState());
|
||||||
WorldProcessor::AddProcessor(new ProcessorMusicPlay());
|
WorldProcessor::AddProcessor(new ProcessorMusicPlay());
|
||||||
WorldProcessor::AddProcessor(new ProcessorObjectAnimPlay());
|
WorldProcessor::AddProcessor(new ProcessorObjectAnimPlay());
|
||||||
|
@ -134,6 +152,7 @@ void ProcessorInitializer()
|
||||||
WorldProcessor::AddProcessor(new ProcessorObjectLock());
|
WorldProcessor::AddProcessor(new ProcessorObjectLock());
|
||||||
WorldProcessor::AddProcessor(new ProcessorObjectMove());
|
WorldProcessor::AddProcessor(new ProcessorObjectMove());
|
||||||
WorldProcessor::AddProcessor(new ProcessorObjectPlace());
|
WorldProcessor::AddProcessor(new ProcessorObjectPlace());
|
||||||
|
WorldProcessor::AddProcessor(new ProcessorObjectReset());
|
||||||
WorldProcessor::AddProcessor(new ProcessorObjectRotate());
|
WorldProcessor::AddProcessor(new ProcessorObjectRotate());
|
||||||
WorldProcessor::AddProcessor(new ProcessorObjectScale());
|
WorldProcessor::AddProcessor(new ProcessorObjectScale());
|
||||||
WorldProcessor::AddProcessor(new ProcessorObjectSpawn());
|
WorldProcessor::AddProcessor(new ProcessorObjectSpawn());
|
||||||
|
@ -142,7 +161,9 @@ void ProcessorInitializer()
|
||||||
WorldProcessor::AddProcessor(new ProcessorScriptLocalShort());
|
WorldProcessor::AddProcessor(new ProcessorScriptLocalShort());
|
||||||
WorldProcessor::AddProcessor(new ProcessorScriptLocalFloat());
|
WorldProcessor::AddProcessor(new ProcessorScriptLocalFloat());
|
||||||
WorldProcessor::AddProcessor(new ProcessorScriptMemberShort());
|
WorldProcessor::AddProcessor(new ProcessorScriptMemberShort());
|
||||||
|
WorldProcessor::AddProcessor(new ProcessorScriptMemberFloat());
|
||||||
WorldProcessor::AddProcessor(new ProcessorScriptGlobalShort());
|
WorldProcessor::AddProcessor(new ProcessorScriptGlobalShort());
|
||||||
|
WorldProcessor::AddProcessor(new ProcessorScriptGlobalFloat());
|
||||||
WorldProcessor::AddProcessor(new ProcessorVideoPlay());
|
WorldProcessor::AddProcessor(new ProcessorVideoPlay());
|
||||||
|
|
||||||
ActorProcessor::AddProcessor(new ProcessorActorAI());
|
ActorProcessor::AddProcessor(new ProcessorActorAI());
|
||||||
|
@ -153,6 +174,7 @@ void ProcessorInitializer()
|
||||||
ActorProcessor::AddProcessor(new ProcessorActorCellChange());
|
ActorProcessor::AddProcessor(new ProcessorActorCellChange());
|
||||||
ActorProcessor::AddProcessor(new ProcessorActorDeath());
|
ActorProcessor::AddProcessor(new ProcessorActorDeath());
|
||||||
ActorProcessor::AddProcessor(new ProcessorActorEquipment());
|
ActorProcessor::AddProcessor(new ProcessorActorEquipment());
|
||||||
|
ActorProcessor::AddProcessor(new ProcessorActorInteraction());
|
||||||
ActorProcessor::AddProcessor(new ProcessorActorList());
|
ActorProcessor::AddProcessor(new ProcessorActorList());
|
||||||
ActorProcessor::AddProcessor(new ProcessorActorPosition());
|
ActorProcessor::AddProcessor(new ProcessorActorPosition());
|
||||||
ActorProcessor::AddProcessor(new ProcessorActorSpeech());
|
ActorProcessor::AddProcessor(new ProcessorActorSpeech());
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
#ifndef OPENMW_PROCESSORACTORINTERACTION_HPP
|
||||||
|
#define OPENMW_PROCESSORACTORINTERACTION_HPP
|
||||||
|
|
||||||
|
#include "../ActorProcessor.hpp"
|
||||||
|
#include "apps/openmw/mwmp/Main.hpp"
|
||||||
|
#include "apps/openmw/mwmp/CellController.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorActorInteraction : public ActorProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorActorInteraction()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_ACTOR_INTERACTION);
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual void Do(ActorPacket &packet, ActorList &actorList)
|
||||||
|
{
|
||||||
|
//Main::get().getCellController()->readInteraction(actorList);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSORACTORINTERACTION_HPP
|
23
apps/openmw/mwmp/processors/player/ProcessorCellCreate.hpp
Normal file
23
apps/openmw/mwmp/processors/player/ProcessorCellCreate.hpp
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
#ifndef OPENMW_PROCESSORCELLCREATE_HPP
|
||||||
|
#define OPENMW_PROCESSORCELLCREATE_HPP
|
||||||
|
|
||||||
|
#include "../PlayerProcessor.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorCellCreate : public PlayerProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorCellCreate()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_CELL_CREATE)
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
||||||
|
{
|
||||||
|
// Placeholder
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSORCELLCREATE_HPP
|
|
@ -1,19 +1,9 @@
|
||||||
//
|
|
||||||
// Created by koncord on 16.04.17.
|
|
||||||
//
|
|
||||||
|
|
||||||
#ifndef OPENMW_PROCESSORPLAYERATTACK_HPP
|
#ifndef OPENMW_PROCESSORPLAYERATTACK_HPP
|
||||||
#define OPENMW_PROCESSORPLAYERATTACK_HPP
|
#define OPENMW_PROCESSORPLAYERATTACK_HPP
|
||||||
|
|
||||||
#include "apps/openmw/mwmp/Main.hpp"
|
#include "apps/openmw/mwmp/Main.hpp"
|
||||||
#include "../PlayerProcessor.hpp"
|
#include "../PlayerProcessor.hpp"
|
||||||
#include "apps/openmw/mwmp/MechanicsHelper.hpp"
|
#include "apps/openmw/mwmp/MechanicsHelper.hpp"
|
||||||
#include "apps/openmw/mwbase/world.hpp"
|
|
||||||
#include "apps/openmw/mwworld/containerstore.hpp"
|
|
||||||
#include "apps/openmw/mwworld/inventorystore.hpp"
|
|
||||||
#include "apps/openmw/mwmechanics/combat.hpp"
|
|
||||||
|
|
||||||
#include "apps/openmw/mwbase/environment.hpp"
|
|
||||||
|
|
||||||
namespace mwmp
|
namespace mwmp
|
||||||
{
|
{
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
#ifndef OPENMW_PROCESSORPLAYERBEHAVIOR_HPP
|
||||||
|
#define OPENMW_PROCESSORPLAYERBEHAVIOR_HPP
|
||||||
|
|
||||||
|
#include "../PlayerProcessor.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorPlayerBehavior : public PlayerProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorPlayerBehavior()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_PLAYER_BEHAVIOR)
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
||||||
|
{
|
||||||
|
if (isLocal())
|
||||||
|
{
|
||||||
|
//static_cast<LocalPlayer *>(player)->setBehavior();
|
||||||
|
}
|
||||||
|
else if (player != 0)
|
||||||
|
{
|
||||||
|
//static_cast<DedicatedPlayer *>(player)->setBehavior();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSORPLAYERBEHAVIOR_HPP
|
|
@ -0,0 +1,27 @@
|
||||||
|
#ifndef OPENMW_PROCESSORPLAYERINTERACTION_HPP
|
||||||
|
#define OPENMW_PROCESSORPLAYERINTERACTION_HPP
|
||||||
|
|
||||||
|
#include "apps/openmw/mwmp/Main.hpp"
|
||||||
|
#include "../PlayerProcessor.hpp"
|
||||||
|
#include "apps/openmw/mwmp/MechanicsHelper.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorPlayerInteraction : public PlayerProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorPlayerInteraction()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_PLAYER_INTERACTION)
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
||||||
|
{
|
||||||
|
//if (player != 0)
|
||||||
|
// MechanicsHelper::processInteraction(player->interaction, static_cast<DedicatedPlayer*>(player)->getPtr());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSORPLAYERINTERACTION_HPP
|
|
@ -1,7 +1,3 @@
|
||||||
//
|
|
||||||
// Created by koncord on 16.04.17.
|
|
||||||
//
|
|
||||||
|
|
||||||
#ifndef OPENMW_PROCESSORPLAYERLEVEL_HPP
|
#ifndef OPENMW_PROCESSORPLAYERLEVEL_HPP
|
||||||
#define OPENMW_PROCESSORPLAYERLEVEL_HPP
|
#define OPENMW_PROCESSORPLAYERLEVEL_HPP
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
#ifndef OPENMW_PROCESSORPLAYERMISCELLANEOUS_HPP
|
||||||
|
#define OPENMW_PROCESSORPLAYERMISCELLANEOUS_HPP
|
||||||
|
|
||||||
|
|
||||||
|
#include "../PlayerProcessor.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorPlayerMiscellaneous : public PlayerProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorPlayerMiscellaneous()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_PLAYER_MISCELLANEOUS)
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
||||||
|
{
|
||||||
|
if (!isLocal()) return;
|
||||||
|
|
||||||
|
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received ID_PLAYER_MISCELLANEOUS about LocalPlayer from server");
|
||||||
|
|
||||||
|
if (!isRequest())
|
||||||
|
{
|
||||||
|
LocalPlayer &localPlayer = static_cast<LocalPlayer&>(*player);
|
||||||
|
//localPlayer.setMiscellaneous();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSORPLAYERMISCELLANEOUS_HPP
|
|
@ -0,0 +1,38 @@
|
||||||
|
#ifndef OPENMW_PROCESSORPLAYERREPUTATION_HPP
|
||||||
|
#define OPENMW_PROCESSORPLAYERREPUTATION_HPP
|
||||||
|
|
||||||
|
|
||||||
|
#include "../PlayerProcessor.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorPlayerReputation : public PlayerProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorPlayerReputation()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_PLAYER_REPUTATION)
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
||||||
|
{
|
||||||
|
if (isLocal())
|
||||||
|
{
|
||||||
|
//if (isRequest())
|
||||||
|
// static_cast<LocalPlayer *>(player)->updateReputation(true);
|
||||||
|
//else
|
||||||
|
// static_cast<LocalPlayer *>(player)->setReputation();
|
||||||
|
}
|
||||||
|
else if (player != 0)
|
||||||
|
{
|
||||||
|
MWWorld::Ptr ptrPlayer = static_cast<DedicatedPlayer *>(player)->getPtr();
|
||||||
|
MWMechanics::NpcStats *ptrNpcStats = &ptrPlayer.getClass().getNpcStats(ptrPlayer);
|
||||||
|
|
||||||
|
ptrNpcStats->setReputation(player->npcStats.mReputation);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSORPLAYERREPUTATION_HPP
|
|
@ -0,0 +1,23 @@
|
||||||
|
#ifndef OPENMW_PROCESSORRECORDDYNAMIC_HPP
|
||||||
|
#define OPENMW_PROCESSORRECORDDYNAMIC_HPP
|
||||||
|
|
||||||
|
#include "../PlayerProcessor.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorRecordDynamic : public PlayerProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorRecordDynamic()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_RECORD_DYNAMIC)
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
||||||
|
{
|
||||||
|
// Placeholder
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSORRECORDDYNAMIC_HPP
|
|
@ -0,0 +1,25 @@
|
||||||
|
#ifndef OPENMW_PROCESSDOORDESTINATION_HPP
|
||||||
|
#define OPENMW_PROCESSDOORDESTINATION_HPP
|
||||||
|
|
||||||
|
#include "BaseObjectProcessor.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorDoorDestination : public BaseObjectProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorDoorDestination()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_DOOR_DESTINATION)
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual void Do(WorldPacket &packet, WorldEvent &event)
|
||||||
|
{
|
||||||
|
BaseObjectProcessor::Do(packet, event);
|
||||||
|
|
||||||
|
//event.setDoorDestinations(ptrCellStore);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSDOORDESTINATION_HPP
|
26
apps/openmw/mwmp/processors/world/ProcessorObjectReset.hpp
Normal file
26
apps/openmw/mwmp/processors/world/ProcessorObjectReset.hpp
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
#ifndef OPENMW_PROCESSOROBJECTRESET_HPP
|
||||||
|
#define OPENMW_PROCESSOROBJECTRESET_HPP
|
||||||
|
|
||||||
|
#include "BaseObjectProcessor.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorObjectReset : public BaseObjectProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorObjectReset()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_OBJECT_RESET)
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual void Do(WorldPacket &packet, WorldEvent &event)
|
||||||
|
{
|
||||||
|
BaseObjectProcessor::Do(packet, event);
|
||||||
|
|
||||||
|
//event.resetObjects(ptrCellStore);
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSOROBJECTRESET_HPP
|
|
@ -0,0 +1,24 @@
|
||||||
|
#ifndef OPENMW_PROCESSORSCRIPTGLOBALFLOAT_HPP
|
||||||
|
#define OPENMW_PROCESSORSCRIPTGLOBALFLOAT_HPP
|
||||||
|
|
||||||
|
#include "../WorldProcessor.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorScriptGlobalFloat : public WorldProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorScriptGlobalFloat()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_SCRIPT_GLOBAL_FLOAT)
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual void Do(WorldPacket &packet, WorldEvent &event)
|
||||||
|
{
|
||||||
|
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Received %s", strPacketID.c_str());
|
||||||
|
//event.setGlobalFloats();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSORSCRIPTGLOBALFLOAT_HPP
|
|
@ -0,0 +1,24 @@
|
||||||
|
#ifndef OPENMW_PROCESSORSCRIPTMEMBERFLOAT_HPP
|
||||||
|
#define OPENMW_PROCESSORSCRIPTMEMBERFLOAT_HPP
|
||||||
|
|
||||||
|
#include "../WorldProcessor.hpp"
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class ProcessorScriptMemberFloat : public WorldProcessor
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ProcessorScriptMemberFloat()
|
||||||
|
{
|
||||||
|
BPP_INIT(ID_SCRIPT_MEMBER_FLOAT)
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual void Do(WorldPacket &packet, WorldEvent &event)
|
||||||
|
{
|
||||||
|
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Received %s", strPacketID.c_str());
|
||||||
|
//event.setMemberFloats();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PROCESSORSCRIPTMEMBERFLOAT_HPP
|
|
@ -176,28 +176,32 @@ add_component_dir (openmw-mp/Packets
|
||||||
add_component_dir (openmw-mp/Packets/Actor
|
add_component_dir (openmw-mp/Packets/Actor
|
||||||
ActorPacket
|
ActorPacket
|
||||||
PacketActorList PacketActorAuthority PacketActorTest PacketActorAI PacketActorAnimFlags PacketActorAnimPlay
|
PacketActorList PacketActorAuthority PacketActorTest PacketActorAI PacketActorAnimFlags PacketActorAnimPlay
|
||||||
PacketActorAttack PacketActorCellChange PacketActorDeath PacketActorEquipment PacketActorPosition PacketActorSpeech
|
PacketActorAttack PacketActorCellChange PacketActorDeath PacketActorEquipment PacketActorInteraction PacketActorPosition
|
||||||
PacketActorStatsDynamic
|
PacketActorSpeech PacketActorStatsDynamic
|
||||||
)
|
)
|
||||||
|
|
||||||
add_component_dir (openmw-mp/Packets/Player
|
add_component_dir (openmw-mp/Packets/Player
|
||||||
PlayerPacket
|
PlayerPacket
|
||||||
PacketHandshake PacketChatMessage PacketGUIBoxes PacketGameSettings PacketGameTime PacketGameWeather
|
PacketHandshake PacketChatMessage PacketGUIBoxes PacketGameSettings PacketGameTime PacketGameWeather
|
||||||
|
|
||||||
|
PacketCellCreate PacketRecordDynamic
|
||||||
|
|
||||||
PacketPlayerBaseInfo PacketPlayerCharGen PacketPlayerActiveSkills PacketPlayerAnimFlags PacketPlayerAnimPlay
|
PacketPlayerBaseInfo PacketPlayerCharGen PacketPlayerActiveSkills PacketPlayerAnimFlags PacketPlayerAnimPlay
|
||||||
PacketPlayerAttack PacketPlayerAttribute PacketPlayerBook PacketPlayerBounty PacketPlayerCellChange
|
PacketPlayerAttack PacketPlayerAttribute PacketPlayerBehavior PacketPlayerBook PacketPlayerBounty PacketPlayerCellChange
|
||||||
PacketPlayerCellState PacketPlayerClass PacketPlayerDeath PacketPlayerEquipment PacketPlayerFaction
|
PacketPlayerCellState PacketPlayerClass PacketPlayerDeath PacketPlayerEquipment PacketPlayerFaction
|
||||||
PacketPlayerInventory PacketPlayerJail PacketPlayerJournal PacketPlayerKillCount PacketPlayerLevel
|
PacketPlayerInteraction PacketPlayerInventory PacketPlayerJail PacketPlayerJournal PacketPlayerKillCount PacketPlayerLevel
|
||||||
PacketPlayerMap PacketPlayerPosition PacketPlayerQuickKeys PacketPlayerRegionAuthority PacketPlayerRest
|
PacketPlayerMap PacketPlayerMiscellaneous PacketPlayerPosition PacketPlayerQuickKeys PacketPlayerRegionAuthority
|
||||||
PacketPlayerResurrect PacketPlayerShapeshift PacketPlayerSkill PacketPlayerSpeech PacketPlayerSpellbook
|
PacketPlayerReputation PacketPlayerRest PacketPlayerResurrect PacketPlayerShapeshift PacketPlayerSkill PacketPlayerSpeech
|
||||||
PacketPlayerStatsDynamic PacketPlayerTopic
|
PacketPlayerSpellbook PacketPlayerStatsDynamic PacketPlayerTopic
|
||||||
)
|
)
|
||||||
|
|
||||||
add_component_dir (openmw-mp/Packets/World
|
add_component_dir (openmw-mp/Packets/World
|
||||||
WorldPacket
|
WorldPacket
|
||||||
PacketConsoleCommand PacketContainer PacketObjectAnimPlay PacketObjectDelete PacketDoorState PacketObjectLock
|
PacketConsoleCommand PacketContainer PacketObjectAnimPlay PacketObjectDelete PacketDoorDestination
|
||||||
PacketObjectMove PacketObjectPlace PacketObjectRotate PacketObjectScale PacketObjectSpawn PacketObjectState
|
PacketDoorState PacketObjectLock PacketObjectMove PacketObjectPlace PacketObjectReset PacketObjectRotate
|
||||||
PacketObjectTrap PacketMusicPlay PacketVideoPlay PacketScriptLocalShort PacketScriptLocalFloat
|
PacketObjectScale PacketObjectSpawn PacketObjectState PacketObjectTrap PacketMusicPlay PacketVideoPlay
|
||||||
PacketScriptMemberShort PacketScriptGlobalShort
|
PacketScriptLocalShort PacketScriptLocalFloat PacketScriptMemberShort PacketScriptMemberFloat PacketScriptGlobalShort
|
||||||
|
PacketScriptGlobalFloat
|
||||||
)
|
)
|
||||||
|
|
||||||
add_component_dir (fallback
|
add_component_dir (fallback
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include "../Packets/Actor/PacketActorCellChange.hpp"
|
#include "../Packets/Actor/PacketActorCellChange.hpp"
|
||||||
#include "../Packets/Actor/PacketActorDeath.hpp"
|
#include "../Packets/Actor/PacketActorDeath.hpp"
|
||||||
#include "../Packets/Actor/PacketActorEquipment.hpp"
|
#include "../Packets/Actor/PacketActorEquipment.hpp"
|
||||||
|
#include "../Packets/Actor/PacketActorInteraction.hpp"
|
||||||
#include "../Packets/Actor/PacketActorPosition.hpp"
|
#include "../Packets/Actor/PacketActorPosition.hpp"
|
||||||
#include "../Packets/Actor/PacketActorStatsDynamic.hpp"
|
#include "../Packets/Actor/PacketActorStatsDynamic.hpp"
|
||||||
#include "../Packets/Actor/PacketActorSpeech.hpp"
|
#include "../Packets/Actor/PacketActorSpeech.hpp"
|
||||||
|
@ -35,6 +36,7 @@ mwmp::ActorPacketController::ActorPacketController(RakNet::RakPeerInterface *pee
|
||||||
AddPacket<PacketActorCellChange>(&packets, peer);
|
AddPacket<PacketActorCellChange>(&packets, peer);
|
||||||
AddPacket<PacketActorDeath>(&packets, peer);
|
AddPacket<PacketActorDeath>(&packets, peer);
|
||||||
AddPacket<PacketActorEquipment>(&packets, peer);
|
AddPacket<PacketActorEquipment>(&packets, peer);
|
||||||
|
AddPacket<PacketActorInteraction>(&packets, peer);
|
||||||
AddPacket<PacketActorPosition>(&packets, peer);
|
AddPacket<PacketActorPosition>(&packets, peer);
|
||||||
AddPacket<PacketActorSpeech>(&packets, peer);
|
AddPacket<PacketActorSpeech>(&packets, peer);
|
||||||
AddPacket<PacketActorStatsDynamic>(&packets, peer);
|
AddPacket<PacketActorStatsDynamic>(&packets, peer);
|
||||||
|
|
|
@ -4,15 +4,18 @@
|
||||||
#include "../Packets/Player/PacketHandshake.hpp"
|
#include "../Packets/Player/PacketHandshake.hpp"
|
||||||
#include "../Packets/Player/PacketGUIBoxes.hpp"
|
#include "../Packets/Player/PacketGUIBoxes.hpp"
|
||||||
#include "../Packets/Player/PacketLoaded.hpp"
|
#include "../Packets/Player/PacketLoaded.hpp"
|
||||||
|
#include "../Packets/Player/PacketCellCreate.hpp"
|
||||||
|
#include "../Packets/Player/PacketRecordDynamic.hpp"
|
||||||
#include "../Packets/Player/PacketGameSettings.hpp"
|
#include "../Packets/Player/PacketGameSettings.hpp"
|
||||||
#include "../Packets/Player/PacketGameTime.hpp"
|
#include "../Packets/Player/PacketGameTime.hpp"
|
||||||
#include "../Packets/Player/PacketGameWeather.hpp"
|
#include "../Packets/Player/PacketGameWeather.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerActiveSkills.hpp"
|
#include "../Packets/Player/PacketPlayerActiveSkills.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerBaseInfo.hpp"
|
|
||||||
#include "../Packets/Player/PacketPlayerAnimFlags.hpp"
|
#include "../Packets/Player/PacketPlayerAnimFlags.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerAnimPlay.hpp"
|
#include "../Packets/Player/PacketPlayerAnimPlay.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerAttack.hpp"
|
#include "../Packets/Player/PacketPlayerAttack.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerAttribute.hpp"
|
#include "../Packets/Player/PacketPlayerAttribute.hpp"
|
||||||
|
#include "../Packets/Player/PacketPlayerBaseInfo.hpp"
|
||||||
|
#include "../Packets/Player/PacketPlayerBehavior.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerBook.hpp"
|
#include "../Packets/Player/PacketPlayerBook.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerBounty.hpp"
|
#include "../Packets/Player/PacketPlayerBounty.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerCellChange.hpp"
|
#include "../Packets/Player/PacketPlayerCellChange.hpp"
|
||||||
|
@ -21,15 +24,18 @@
|
||||||
#include "../Packets/Player/PacketPlayerDeath.hpp"
|
#include "../Packets/Player/PacketPlayerDeath.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerEquipment.hpp"
|
#include "../Packets/Player/PacketPlayerEquipment.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerFaction.hpp"
|
#include "../Packets/Player/PacketPlayerFaction.hpp"
|
||||||
|
#include "../Packets/Player/PacketPlayerInteraction.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerInventory.hpp"
|
#include "../Packets/Player/PacketPlayerInventory.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerJail.hpp"
|
#include "../Packets/Player/PacketPlayerJail.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerJournal.hpp"
|
#include "../Packets/Player/PacketPlayerJournal.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerKillCount.hpp"
|
#include "../Packets/Player/PacketPlayerKillCount.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerLevel.hpp"
|
#include "../Packets/Player/PacketPlayerLevel.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerMap.hpp"
|
#include "../Packets/Player/PacketPlayerMap.hpp"
|
||||||
|
#include "../Packets/Player/PacketPlayerMiscellaneous.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerPosition.hpp"
|
#include "../Packets/Player/PacketPlayerPosition.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerQuickKeys.hpp"
|
#include "../Packets/Player/PacketPlayerQuickKeys.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerRegionAuthority.hpp"
|
#include "../Packets/Player/PacketPlayerRegionAuthority.hpp"
|
||||||
|
#include "../Packets/Player/PacketPlayerReputation.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerRest.hpp"
|
#include "../Packets/Player/PacketPlayerRest.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerResurrect.hpp"
|
#include "../Packets/Player/PacketPlayerResurrect.hpp"
|
||||||
#include "../Packets/Player/PacketPlayerShapeshift.hpp"
|
#include "../Packets/Player/PacketPlayerShapeshift.hpp"
|
||||||
|
@ -56,34 +62,40 @@ mwmp::PlayerPacketController::PlayerPacketController(RakNet::RakPeerInterface *p
|
||||||
AddPacket<PacketHandshake>(&packets, peer);
|
AddPacket<PacketHandshake>(&packets, peer);
|
||||||
AddPacket<PacketGUIBoxes>(&packets, peer);
|
AddPacket<PacketGUIBoxes>(&packets, peer);
|
||||||
AddPacket<PacketLoaded>(&packets, peer);
|
AddPacket<PacketLoaded>(&packets, peer);
|
||||||
|
AddPacket<PacketCellCreate>(&packets, peer);
|
||||||
|
AddPacket<PacketRecordDynamic>(&packets, peer);
|
||||||
AddPacket<PacketGameSettings>(&packets, peer);
|
AddPacket<PacketGameSettings>(&packets, peer);
|
||||||
AddPacket<PacketGameTime>(&packets, peer);
|
AddPacket<PacketGameTime>(&packets, peer);
|
||||||
AddPacket<PacketGameWeather>(&packets, peer);
|
AddPacket<PacketGameWeather>(&packets, peer);
|
||||||
AddPacket<PacketPlayerActiveSkills>(&packets, peer);
|
AddPacket<PacketPlayerActiveSkills>(&packets, peer);
|
||||||
|
|
||||||
AddPacket<PacketPlayerBaseInfo>(&packets, peer);
|
|
||||||
AddPacket<PacketPlayerCharGen>(&packets, peer);
|
|
||||||
AddPacket<PacketPlayerAnimFlags>(&packets, peer);
|
AddPacket<PacketPlayerAnimFlags>(&packets, peer);
|
||||||
AddPacket<PacketPlayerAnimPlay>(&packets, peer);
|
AddPacket<PacketPlayerAnimPlay>(&packets, peer);
|
||||||
AddPacket<PacketPlayerAttack>(&packets, peer);
|
AddPacket<PacketPlayerAttack>(&packets, peer);
|
||||||
AddPacket<PacketPlayerAttribute>(&packets, peer);
|
AddPacket<PacketPlayerAttribute>(&packets, peer);
|
||||||
|
AddPacket<PacketPlayerBaseInfo>(&packets, peer);
|
||||||
|
AddPacket<PacketPlayerBehavior>(&packets, peer);
|
||||||
AddPacket<PacketPlayerBook>(&packets, peer);
|
AddPacket<PacketPlayerBook>(&packets, peer);
|
||||||
AddPacket<PacketPlayerBounty>(&packets, peer);
|
AddPacket<PacketPlayerBounty>(&packets, peer);
|
||||||
AddPacket<PacketPlayerCellChange>(&packets, peer);
|
AddPacket<PacketPlayerCellChange>(&packets, peer);
|
||||||
AddPacket<PacketPlayerCellState>(&packets, peer);
|
AddPacket<PacketPlayerCellState>(&packets, peer);
|
||||||
|
AddPacket<PacketPlayerCharGen>(&packets, peer);
|
||||||
AddPacket<PacketPlayerClass>(&packets, peer);
|
AddPacket<PacketPlayerClass>(&packets, peer);
|
||||||
AddPacket<PacketPlayerDeath>(&packets, peer);
|
AddPacket<PacketPlayerDeath>(&packets, peer);
|
||||||
AddPacket<PacketPlayerEquipment>(&packets, peer);
|
AddPacket<PacketPlayerEquipment>(&packets, peer);
|
||||||
AddPacket<PacketPlayerFaction>(&packets, peer);
|
AddPacket<PacketPlayerFaction>(&packets, peer);
|
||||||
|
AddPacket<PacketPlayerInteraction>(&packets, peer);
|
||||||
AddPacket<PacketPlayerInventory>(&packets, peer);
|
AddPacket<PacketPlayerInventory>(&packets, peer);
|
||||||
AddPacket<PacketPlayerJail>(&packets, peer);
|
AddPacket<PacketPlayerJail>(&packets, peer);
|
||||||
AddPacket<PacketPlayerJournal>(&packets, peer);
|
AddPacket<PacketPlayerJournal>(&packets, peer);
|
||||||
AddPacket<PacketPlayerKillCount>(&packets, peer);
|
AddPacket<PacketPlayerKillCount>(&packets, peer);
|
||||||
AddPacket<PacketPlayerLevel>(&packets, peer);
|
AddPacket<PacketPlayerLevel>(&packets, peer);
|
||||||
AddPacket<PacketPlayerMap>(&packets, peer);
|
AddPacket<PacketPlayerMap>(&packets, peer);
|
||||||
|
AddPacket<PacketPlayerMiscellaneous>(&packets, peer);
|
||||||
AddPacket<PacketPlayerPosition>(&packets, peer);
|
AddPacket<PacketPlayerPosition>(&packets, peer);
|
||||||
AddPacket<PacketPlayerQuickKeys>(&packets, peer);
|
AddPacket<PacketPlayerQuickKeys>(&packets, peer);
|
||||||
AddPacket<PacketPlayerRegionAuthority>(&packets, peer);
|
AddPacket<PacketPlayerRegionAuthority>(&packets, peer);
|
||||||
|
AddPacket<PacketPlayerReputation>(&packets, peer);
|
||||||
AddPacket<PacketPlayerRest>(&packets, peer);
|
AddPacket<PacketPlayerRest>(&packets, peer);
|
||||||
AddPacket<PacketPlayerResurrect>(&packets, peer);
|
AddPacket<PacketPlayerResurrect>(&packets, peer);
|
||||||
AddPacket<PacketPlayerShapeshift>(&packets, peer);
|
AddPacket<PacketPlayerShapeshift>(&packets, peer);
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include "../Packets/World/PacketObjectLock.hpp"
|
#include "../Packets/World/PacketObjectLock.hpp"
|
||||||
#include "../Packets/World/PacketObjectMove.hpp"
|
#include "../Packets/World/PacketObjectMove.hpp"
|
||||||
#include "../Packets/World/PacketObjectPlace.hpp"
|
#include "../Packets/World/PacketObjectPlace.hpp"
|
||||||
|
#include "../Packets/World/PacketObjectReset.hpp"
|
||||||
#include "../Packets/World/PacketObjectRotate.hpp"
|
#include "../Packets/World/PacketObjectRotate.hpp"
|
||||||
#include "../Packets/World/PacketObjectScale.hpp"
|
#include "../Packets/World/PacketObjectScale.hpp"
|
||||||
#include "../Packets/World/PacketObjectSpawn.hpp"
|
#include "../Packets/World/PacketObjectSpawn.hpp"
|
||||||
|
@ -10,6 +11,7 @@
|
||||||
#include "../Packets/World/PacketObjectTrap.hpp"
|
#include "../Packets/World/PacketObjectTrap.hpp"
|
||||||
|
|
||||||
#include "../Packets/World/PacketContainer.hpp"
|
#include "../Packets/World/PacketContainer.hpp"
|
||||||
|
#include "../Packets/World/PacketDoorDestination.hpp"
|
||||||
#include "../Packets/World/PacketDoorState.hpp"
|
#include "../Packets/World/PacketDoorState.hpp"
|
||||||
#include "../Packets/World/PacketMusicPlay.hpp"
|
#include "../Packets/World/PacketMusicPlay.hpp"
|
||||||
#include "../Packets/World/PacketVideoPlay.hpp"
|
#include "../Packets/World/PacketVideoPlay.hpp"
|
||||||
|
@ -18,7 +20,9 @@
|
||||||
#include "../Packets/World/PacketScriptLocalShort.hpp"
|
#include "../Packets/World/PacketScriptLocalShort.hpp"
|
||||||
#include "../Packets/World/PacketScriptLocalFloat.hpp"
|
#include "../Packets/World/PacketScriptLocalFloat.hpp"
|
||||||
#include "../Packets/World/PacketScriptMemberShort.hpp"
|
#include "../Packets/World/PacketScriptMemberShort.hpp"
|
||||||
|
#include "../Packets/World/PacketScriptMemberFloat.hpp"
|
||||||
#include "../Packets/World/PacketScriptGlobalShort.hpp"
|
#include "../Packets/World/PacketScriptGlobalShort.hpp"
|
||||||
|
#include "../Packets/World/PacketScriptGlobalFloat.hpp"
|
||||||
|
|
||||||
#include "WorldPacketController.hpp"
|
#include "WorldPacketController.hpp"
|
||||||
|
|
||||||
|
@ -37,6 +41,7 @@ mwmp::WorldPacketController::WorldPacketController(RakNet::RakPeerInterface *pee
|
||||||
AddPacket<PacketObjectLock>(&packets, peer);
|
AddPacket<PacketObjectLock>(&packets, peer);
|
||||||
AddPacket<PacketObjectMove>(&packets, peer);
|
AddPacket<PacketObjectMove>(&packets, peer);
|
||||||
AddPacket<PacketObjectPlace>(&packets, peer);
|
AddPacket<PacketObjectPlace>(&packets, peer);
|
||||||
|
AddPacket<PacketObjectReset>(&packets, peer);
|
||||||
AddPacket<PacketObjectRotate>(&packets, peer);
|
AddPacket<PacketObjectRotate>(&packets, peer);
|
||||||
AddPacket<PacketObjectScale>(&packets, peer);
|
AddPacket<PacketObjectScale>(&packets, peer);
|
||||||
AddPacket<PacketObjectSpawn>(&packets, peer);
|
AddPacket<PacketObjectSpawn>(&packets, peer);
|
||||||
|
@ -44,6 +49,7 @@ mwmp::WorldPacketController::WorldPacketController(RakNet::RakPeerInterface *pee
|
||||||
AddPacket<PacketObjectTrap>(&packets, peer);
|
AddPacket<PacketObjectTrap>(&packets, peer);
|
||||||
|
|
||||||
AddPacket<PacketContainer>(&packets, peer);
|
AddPacket<PacketContainer>(&packets, peer);
|
||||||
|
AddPacket<PacketDoorDestination>(&packets, peer);
|
||||||
AddPacket<PacketDoorState>(&packets, peer);
|
AddPacket<PacketDoorState>(&packets, peer);
|
||||||
AddPacket<PacketMusicPlay>(&packets, peer);
|
AddPacket<PacketMusicPlay>(&packets, peer);
|
||||||
AddPacket<PacketVideoPlay>(&packets, peer);
|
AddPacket<PacketVideoPlay>(&packets, peer);
|
||||||
|
@ -52,7 +58,9 @@ mwmp::WorldPacketController::WorldPacketController(RakNet::RakPeerInterface *pee
|
||||||
AddPacket<PacketScriptLocalShort>(&packets, peer);
|
AddPacket<PacketScriptLocalShort>(&packets, peer);
|
||||||
AddPacket<PacketScriptLocalFloat>(&packets, peer);
|
AddPacket<PacketScriptLocalFloat>(&packets, peer);
|
||||||
AddPacket<PacketScriptMemberShort>(&packets, peer);
|
AddPacket<PacketScriptMemberShort>(&packets, peer);
|
||||||
|
AddPacket<PacketScriptMemberFloat>(&packets, peer);
|
||||||
AddPacket<PacketScriptGlobalShort>(&packets, peer);
|
AddPacket<PacketScriptGlobalShort>(&packets, peer);
|
||||||
|
AddPacket<PacketScriptGlobalFloat>(&packets, peer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ enum GameMessages
|
||||||
ID_GAME_WEATHER,
|
ID_GAME_WEATHER,
|
||||||
|
|
||||||
ID_PLAYER_BASEINFO,
|
ID_PLAYER_BASEINFO,
|
||||||
|
ID_PLAYER_BEHAVIOR,
|
||||||
ID_PLAYER_CHARGEN,
|
ID_PLAYER_CHARGEN,
|
||||||
ID_PLAYER_ACTIVESKILLS,
|
ID_PLAYER_ACTIVESKILLS,
|
||||||
ID_PLAYER_ANIM_FLAGS,
|
ID_PLAYER_ANIM_FLAGS,
|
||||||
|
@ -37,15 +38,18 @@ enum GameMessages
|
||||||
ID_PLAYER_DISPOSITION,
|
ID_PLAYER_DISPOSITION,
|
||||||
ID_PLAYER_EQUIPMENT,
|
ID_PLAYER_EQUIPMENT,
|
||||||
ID_PLAYER_FACTION,
|
ID_PLAYER_FACTION,
|
||||||
|
ID_PLAYER_INTERACTION,
|
||||||
ID_PLAYER_INVENTORY,
|
ID_PLAYER_INVENTORY,
|
||||||
ID_PLAYER_JAIL,
|
ID_PLAYER_JAIL,
|
||||||
ID_PLAYER_JOURNAL,
|
ID_PLAYER_JOURNAL,
|
||||||
ID_PLAYER_KILL_COUNT,
|
ID_PLAYER_KILL_COUNT,
|
||||||
ID_PLAYER_LEVEL,
|
ID_PLAYER_LEVEL,
|
||||||
ID_PLAYER_MAP,
|
ID_PLAYER_MAP,
|
||||||
|
ID_PLAYER_MISCELLANEOUS,
|
||||||
ID_PLAYER_POSITION,
|
ID_PLAYER_POSITION,
|
||||||
ID_PLAYER_QUICKKEYS,
|
ID_PLAYER_QUICKKEYS,
|
||||||
ID_PLAYER_REGION_AUTHORITY,
|
ID_PLAYER_REGION_AUTHORITY,
|
||||||
|
ID_PLAYER_REPUTATION,
|
||||||
ID_PLAYER_RESURRECT,
|
ID_PLAYER_RESURRECT,
|
||||||
ID_PLAYER_REST,
|
ID_PLAYER_REST,
|
||||||
ID_PLAYER_SHAPESHIFT,
|
ID_PLAYER_SHAPESHIFT,
|
||||||
|
@ -65,6 +69,7 @@ enum GameMessages
|
||||||
ID_ACTOR_CELL_CHANGE,
|
ID_ACTOR_CELL_CHANGE,
|
||||||
ID_ACTOR_DEATH,
|
ID_ACTOR_DEATH,
|
||||||
ID_ACTOR_EQUIPMENT,
|
ID_ACTOR_EQUIPMENT,
|
||||||
|
ID_ACTOR_INTERACTION,
|
||||||
ID_ACTOR_POSITION,
|
ID_ACTOR_POSITION,
|
||||||
ID_ACTOR_SPEECH,
|
ID_ACTOR_SPEECH,
|
||||||
ID_ACTOR_STATS_DYNAMIC,
|
ID_ACTOR_STATS_DYNAMIC,
|
||||||
|
@ -74,14 +79,19 @@ enum GameMessages
|
||||||
ID_OBJECT_LOCK,
|
ID_OBJECT_LOCK,
|
||||||
ID_OBJECT_MOVE,
|
ID_OBJECT_MOVE,
|
||||||
ID_OBJECT_PLACE,
|
ID_OBJECT_PLACE,
|
||||||
|
ID_OBJECT_RESET,
|
||||||
ID_OBJECT_ROTATE,
|
ID_OBJECT_ROTATE,
|
||||||
ID_OBJECT_SCALE,
|
ID_OBJECT_SCALE,
|
||||||
ID_OBJECT_SPAWN,
|
ID_OBJECT_SPAWN,
|
||||||
ID_OBJECT_STATE,
|
ID_OBJECT_STATE,
|
||||||
ID_OBJECT_TRAP,
|
ID_OBJECT_TRAP,
|
||||||
|
|
||||||
|
ID_CELL_CREATE,
|
||||||
|
ID_RECORD_DYNAMIC,
|
||||||
|
|
||||||
ID_CONSOLE_COMMAND,
|
ID_CONSOLE_COMMAND,
|
||||||
ID_CONTAINER,
|
ID_CONTAINER,
|
||||||
|
ID_DOOR_DESTINATION,
|
||||||
ID_DOOR_STATE,
|
ID_DOOR_STATE,
|
||||||
ID_MUSIC_PLAY,
|
ID_MUSIC_PLAY,
|
||||||
ID_VIDEO_PLAY,
|
ID_VIDEO_PLAY,
|
||||||
|
@ -89,7 +99,9 @@ enum GameMessages
|
||||||
ID_SCRIPT_LOCAL_SHORT,
|
ID_SCRIPT_LOCAL_SHORT,
|
||||||
ID_SCRIPT_LOCAL_FLOAT,
|
ID_SCRIPT_LOCAL_FLOAT,
|
||||||
ID_SCRIPT_MEMBER_SHORT,
|
ID_SCRIPT_MEMBER_SHORT,
|
||||||
|
ID_SCRIPT_MEMBER_FLOAT,
|
||||||
ID_SCRIPT_GLOBAL_SHORT,
|
ID_SCRIPT_GLOBAL_SHORT,
|
||||||
|
ID_SCRIPT_GLOBAL_FLOAT,
|
||||||
|
|
||||||
ID_GAME_SETTINGS,
|
ID_GAME_SETTINGS,
|
||||||
ID_GAME_PREINIT
|
ID_GAME_PREINIT
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||||
|
#include <components/openmw-mp/Log.hpp>
|
||||||
|
#include "PacketActorInteraction.hpp"
|
||||||
|
|
||||||
|
using namespace mwmp;
|
||||||
|
|
||||||
|
PacketActorInteraction::PacketActorInteraction(RakNet::RakPeerInterface *peer) : ActorPacket(peer)
|
||||||
|
{
|
||||||
|
packetID = ID_ACTOR_INTERACTION;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PacketActorInteraction::Actor(BaseActor &actor, bool send)
|
||||||
|
{
|
||||||
|
// Placeholder
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
#ifndef OPENMW_PACKETACTORINTERACTION_HPP
|
||||||
|
#define OPENMW_PACKETACTORINTERACTION_HPP
|
||||||
|
|
||||||
|
#include <components/openmw-mp/Packets/Actor/ActorPacket.hpp>
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class PacketActorInteraction : public ActorPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PacketActorInteraction(RakNet::RakPeerInterface *peer);
|
||||||
|
|
||||||
|
virtual void Actor(BaseActor &actor, bool send);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PACKETACTORINTERACTION_HPP
|
17
components/openmw-mp/Packets/Player/PacketCellCreate.cpp
Normal file
17
components/openmw-mp/Packets/Player/PacketCellCreate.cpp
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#include "PacketCellCreate.hpp"
|
||||||
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||||
|
|
||||||
|
using namespace mwmp;
|
||||||
|
|
||||||
|
PacketCellCreate::PacketCellCreate(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
||||||
|
{
|
||||||
|
packetID = ID_CELL_CREATE;
|
||||||
|
orderChannel = CHANNEL_SYSTEM;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PacketCellCreate::Packet(RakNet::BitStream *bs, bool send)
|
||||||
|
{
|
||||||
|
PlayerPacket::Packet(bs, send);
|
||||||
|
|
||||||
|
// Placeholder
|
||||||
|
}
|
18
components/openmw-mp/Packets/Player/PacketCellCreate.hpp
Normal file
18
components/openmw-mp/Packets/Player/PacketCellCreate.hpp
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
#ifndef OPENMW_PACKETCELLCREATE_HPP
|
||||||
|
#define OPENMW_PACKETCELLCREATE_HPP
|
||||||
|
|
||||||
|
#include <components/openmw-mp/Packets/Player/PlayerPacket.hpp>
|
||||||
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class PacketCellCreate: public PlayerPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PacketCellCreate(RakNet::RakPeerInterface *peer);
|
||||||
|
|
||||||
|
virtual void Packet(RakNet::BitStream *bs, bool send);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PACKETCELLCREATE_HPP
|
16
components/openmw-mp/Packets/Player/PacketPlayerBehavior.cpp
Normal file
16
components/openmw-mp/Packets/Player/PacketPlayerBehavior.cpp
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
#include "PacketPlayerBehavior.hpp"
|
||||||
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||||
|
|
||||||
|
using namespace mwmp;
|
||||||
|
|
||||||
|
PacketPlayerBehavior::PacketPlayerBehavior(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
||||||
|
{
|
||||||
|
packetID = ID_PLAYER_BEHAVIOR;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PacketPlayerBehavior::Packet(RakNet::BitStream *bs, bool send)
|
||||||
|
{
|
||||||
|
PlayerPacket::Packet(bs, send);
|
||||||
|
|
||||||
|
// Placeholder
|
||||||
|
}
|
17
components/openmw-mp/Packets/Player/PacketPlayerBehavior.hpp
Normal file
17
components/openmw-mp/Packets/Player/PacketPlayerBehavior.hpp
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#ifndef OPENMW_PACKETPLAYERBEHAVIOR_HPP
|
||||||
|
#define OPENMW_PACKETPLAYERBEHAVIOR_HPP
|
||||||
|
|
||||||
|
#include <components/openmw-mp/Packets/Player/PlayerPacket.hpp>
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class PacketPlayerBehavior : public PlayerPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PacketPlayerBehavior(RakNet::RakPeerInterface *peer);
|
||||||
|
|
||||||
|
virtual void Packet(RakNet::BitStream *bs, bool send);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PACKETPLAYERBEHAVIOR_HPP
|
|
@ -0,0 +1,16 @@
|
||||||
|
#include "PacketPlayerInteraction.hpp"
|
||||||
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||||
|
|
||||||
|
using namespace mwmp;
|
||||||
|
|
||||||
|
PacketPlayerInteraction::PacketPlayerInteraction(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
||||||
|
{
|
||||||
|
packetID = ID_PLAYER_INTERACTION;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PacketPlayerInteraction::Packet(RakNet::BitStream *bs, bool send)
|
||||||
|
{
|
||||||
|
PlayerPacket::Packet(bs, send);
|
||||||
|
|
||||||
|
// Placeholder
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
#ifndef OPENMW_PACKETPLAYERINTERACTION_HPP
|
||||||
|
#define OPENMW_PACKETPLAYERINTERACTION_HPP
|
||||||
|
|
||||||
|
#include <components/openmw-mp/Packets/Player/PlayerPacket.hpp>
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class PacketPlayerInteraction : public PlayerPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PacketPlayerInteraction(RakNet::RakPeerInterface *peer);
|
||||||
|
|
||||||
|
virtual void Packet(RakNet::BitStream *bs, bool send);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PACKETPLAYERINTERACTION_HPP
|
|
@ -0,0 +1,16 @@
|
||||||
|
#include "PacketPlayerMiscellaneous.hpp"
|
||||||
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||||
|
|
||||||
|
using namespace mwmp;
|
||||||
|
|
||||||
|
PacketPlayerMiscellaneous::PacketPlayerMiscellaneous(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
||||||
|
{
|
||||||
|
packetID = ID_PLAYER_MISCELLANEOUS;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PacketPlayerMiscellaneous::Packet(RakNet::BitStream *bs, bool send)
|
||||||
|
{
|
||||||
|
PlayerPacket::Packet(bs, send);
|
||||||
|
|
||||||
|
// Placeholder
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
#ifndef OPENMW_PACKETPLAYERMISCELLANEOUS_HPP
|
||||||
|
#define OPENMW_PACKETPLAYERMISCELLANEOUS_HPP
|
||||||
|
|
||||||
|
#include <components/openmw-mp/Packets/Player/PlayerPacket.hpp>
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class PacketPlayerMiscellaneous : public PlayerPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PacketPlayerMiscellaneous(RakNet::RakPeerInterface *peer);
|
||||||
|
|
||||||
|
virtual void Packet(RakNet::BitStream *bs, bool send);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PACKETPLAYERMISCELLANEOUS_HPP
|
|
@ -0,0 +1,16 @@
|
||||||
|
#include "PacketPlayerReputation.hpp"
|
||||||
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||||
|
|
||||||
|
using namespace mwmp;
|
||||||
|
|
||||||
|
PacketPlayerReputation::PacketPlayerReputation(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
||||||
|
{
|
||||||
|
packetID = ID_PLAYER_REPUTATION;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PacketPlayerReputation::Packet(RakNet::BitStream *bs, bool send)
|
||||||
|
{
|
||||||
|
PlayerPacket::Packet(bs, send);
|
||||||
|
|
||||||
|
// Placeholder
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
#ifndef OPENMW_PACKETPLAYERREPUTATION_HPP
|
||||||
|
#define OPENMW_PACKETPLAYERREPUTATION_HPP
|
||||||
|
|
||||||
|
#include <components/openmw-mp/Packets/Player/PlayerPacket.hpp>
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class PacketPlayerReputation : public PlayerPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PacketPlayerReputation(RakNet::RakPeerInterface *peer);
|
||||||
|
|
||||||
|
virtual void Packet(RakNet::BitStream *bs, bool send);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PACKETPLAYERREPUTATION_HPP
|
17
components/openmw-mp/Packets/Player/PacketRecordDynamic.cpp
Normal file
17
components/openmw-mp/Packets/Player/PacketRecordDynamic.cpp
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#include "PacketRecordDynamic.hpp"
|
||||||
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||||
|
|
||||||
|
using namespace mwmp;
|
||||||
|
|
||||||
|
PacketRecordDynamic::PacketRecordDynamic(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
||||||
|
{
|
||||||
|
packetID = ID_RECORD_DYNAMIC;
|
||||||
|
orderChannel = CHANNEL_SYSTEM;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PacketRecordDynamic::Packet(RakNet::BitStream *bs, bool send)
|
||||||
|
{
|
||||||
|
PlayerPacket::Packet(bs, send);
|
||||||
|
|
||||||
|
// Placeholder
|
||||||
|
}
|
18
components/openmw-mp/Packets/Player/PacketRecordDynamic.hpp
Normal file
18
components/openmw-mp/Packets/Player/PacketRecordDynamic.hpp
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
#ifndef OPENMW_PACKETRECORDDYNAMIC_HPP
|
||||||
|
#define OPENMW_PACKETRECORDDYNAMIC_HPP
|
||||||
|
|
||||||
|
#include <components/openmw-mp/Packets/Player/PlayerPacket.hpp>
|
||||||
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class PacketRecordDynamic: public PlayerPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PacketRecordDynamic(RakNet::RakPeerInterface *peer);
|
||||||
|
|
||||||
|
virtual void Packet(RakNet::BitStream *bs, bool send);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PACKETRECORDDYNAMIC_HPP
|
16
components/openmw-mp/Packets/World/PacketDoorDestination.cpp
Normal file
16
components/openmw-mp/Packets/World/PacketDoorDestination.cpp
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||||
|
#include "PacketDoorDestination.hpp"
|
||||||
|
|
||||||
|
using namespace mwmp;
|
||||||
|
|
||||||
|
PacketDoorDestination::PacketDoorDestination(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
||||||
|
{
|
||||||
|
packetID = ID_DOOR_DESTINATION;
|
||||||
|
hasCellData = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PacketDoorDestination::Object(WorldObject &worldObject, bool send)
|
||||||
|
{
|
||||||
|
WorldPacket::Object(worldObject, send);
|
||||||
|
// Placeholder
|
||||||
|
}
|
17
components/openmw-mp/Packets/World/PacketDoorDestination.hpp
Normal file
17
components/openmw-mp/Packets/World/PacketDoorDestination.hpp
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#ifndef OPENMW_PACKETDOORDESTINATION_HPP
|
||||||
|
#define OPENMW_PACKETDOORDESTINATION_HPP
|
||||||
|
|
||||||
|
#include <components/openmw-mp/Packets/World/WorldPacket.hpp>
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class PacketDoorDestination : public WorldPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PacketDoorDestination(RakNet::RakPeerInterface *peer);
|
||||||
|
|
||||||
|
virtual void Object(WorldObject &worldObject, bool send);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PACKETDOORDESTINATION_HPP
|
16
components/openmw-mp/Packets/World/PacketObjectReset.cpp
Normal file
16
components/openmw-mp/Packets/World/PacketObjectReset.cpp
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||||
|
#include "PacketObjectReset.hpp"
|
||||||
|
|
||||||
|
using namespace mwmp;
|
||||||
|
|
||||||
|
PacketObjectReset::PacketObjectReset(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
||||||
|
{
|
||||||
|
packetID = ID_OBJECT_RESET;
|
||||||
|
hasCellData = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PacketObjectReset::Object(WorldObject &worldObject, bool send)
|
||||||
|
{
|
||||||
|
WorldPacket::Object(worldObject, send);
|
||||||
|
// Placeholder
|
||||||
|
}
|
17
components/openmw-mp/Packets/World/PacketObjectReset.hpp
Normal file
17
components/openmw-mp/Packets/World/PacketObjectReset.hpp
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#ifndef OPENMW_PACKETOBJECTRESET_HPP
|
||||||
|
#define OPENMW_PACKETOBJECTRESET_HPP
|
||||||
|
|
||||||
|
#include <components/openmw-mp/Packets/World/WorldPacket.hpp>
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class PacketObjectReset : public WorldPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PacketObjectReset(RakNet::RakPeerInterface *peer);
|
||||||
|
|
||||||
|
virtual void Object(WorldObject &worldObject, bool send);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PACKETOBJECTRESET_HPP
|
|
@ -0,0 +1,15 @@
|
||||||
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||||
|
#include "PacketScriptGlobalFloat.hpp"
|
||||||
|
|
||||||
|
using namespace mwmp;
|
||||||
|
|
||||||
|
PacketScriptGlobalFloat::PacketScriptGlobalFloat(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
||||||
|
{
|
||||||
|
packetID = ID_SCRIPT_GLOBAL_FLOAT;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PacketScriptGlobalFloat::Object(WorldObject &worldObject, bool send)
|
||||||
|
{
|
||||||
|
RW(worldObject.varName, send);
|
||||||
|
RW(worldObject.floatVal, send);
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
#ifndef OPENMW_PACKETSCRIPTGLOBALFLOAT_HPP
|
||||||
|
#define OPENMW_PACKETSCRIPTGLOBALFLOAT_HPP
|
||||||
|
|
||||||
|
#include <components/openmw-mp/Packets/World/WorldPacket.hpp>
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class PacketScriptGlobalFloat : public WorldPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PacketScriptGlobalFloat(RakNet::RakPeerInterface *peer);
|
||||||
|
|
||||||
|
virtual void Object(WorldObject &worldObject, bool send);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PACKETSCRIPTGLOBALFLOAT_HPP
|
|
@ -0,0 +1,16 @@
|
||||||
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||||
|
#include "PacketScriptMemberFloat.hpp"
|
||||||
|
|
||||||
|
using namespace mwmp;
|
||||||
|
|
||||||
|
PacketScriptMemberFloat::PacketScriptMemberFloat(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
||||||
|
{
|
||||||
|
packetID = ID_SCRIPT_MEMBER_FLOAT;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PacketScriptMemberFloat::Object(WorldObject &worldObject, bool send)
|
||||||
|
{
|
||||||
|
RW(worldObject.refId, send);
|
||||||
|
RW(worldObject.index, send);
|
||||||
|
RW(worldObject.floatVal, send);
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
#ifndef OPENMW_PACKETSCRIPTMEMBERFLOAT_HPP
|
||||||
|
#define OPENMW_PACKETSCRIPTMEMBERFLOAT_HPP
|
||||||
|
|
||||||
|
#include <components/openmw-mp/Packets/World/WorldPacket.hpp>
|
||||||
|
|
||||||
|
namespace mwmp
|
||||||
|
{
|
||||||
|
class PacketScriptMemberFloat : public WorldPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PacketScriptMemberFloat(RakNet::RakPeerInterface *peer);
|
||||||
|
|
||||||
|
virtual void Object(WorldObject &obj, bool send);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //OPENMW_PACKETSCRIPTMEMBERFLOAT_HPP
|
Loading…
Reference in a new issue