forked from mirror/openmw-tes3mp
Merge pull request #378 from TES3MP/0.6.3 while resolving conflicts
Conflicts: apps/openmw-mp/CMakeLists.txt apps/openmw-mp/Script/ScriptFunctions.hpp components/CMakeLists.txtsol2-server-rewrite
commit
5858e05362
@ -0,0 +1,27 @@
|
||||
#ifndef OPENMW_PROCESSORACTORINTERACTION_HPP
|
||||
#define OPENMW_PROCESSORACTORINTERACTION_HPP
|
||||
|
||||
#include "../ActorProcessor.hpp"
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class ProcessorActorInteraction final : public ActorProcessor
|
||||
{
|
||||
public:
|
||||
ProcessorActorInteraction()
|
||||
{
|
||||
BPP_INIT(ID_ACTOR_INTERACTION)
|
||||
}
|
||||
|
||||
void Do(ActorPacket &packet, const std::shared_ptr<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
|
@ -0,0 +1,25 @@
|
||||
#ifndef OPENMW_PROCESSORPLAYERINTERACTION_HPP
|
||||
#define OPENMW_PROCESSORPLAYERINTERACTION_HPP
|
||||
|
||||
#include "../PlayerProcessor.hpp"
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class ProcessorPlayerInteraction final : public PlayerProcessor
|
||||
{
|
||||
public:
|
||||
ProcessorPlayerInteraction()
|
||||
{
|
||||
BPP_INIT(ID_PLAYER_INTERACTION)
|
||||
}
|
||||
|
||||
void Do(PlayerPacket &packet, const std::shared_ptr<Player> &player) override
|
||||
{
|
||||
DEBUG_PRINTF(strPacketID.c_str());
|
||||
|
||||
Networking::get().getState().getEventCtrl().Call<CoreEvent::ON_PLAYER_INTERACTION>(player);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PROCESSORPLAYERINTERACTION_HPP
|
@ -0,0 +1,25 @@
|
||||
#ifndef OPENMW_PROCESSORPLAYERMISCELLANEOUS_HPP
|
||||
#define OPENMW_PROCESSORPLAYERMISCELLANEOUS_HPP
|
||||
|
||||
#include "../PlayerProcessor.hpp"
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class ProcessorPlayerMiscellaneous final : public PlayerProcessor
|
||||
{
|
||||
public:
|
||||
ProcessorPlayerMiscellaneous()
|
||||
{
|
||||
BPP_INIT(ID_PLAYER_MISCELLANEOUS)
|
||||
}
|
||||
|
||||
void Do(PlayerPacket &packet, const std::shared_ptr<Player> &player) override
|
||||
{
|
||||
DEBUG_PRINTF(strPacketID.c_str());
|
||||
|
||||
Networking::get().getState().getEventCtrl().Call<CoreEvent::ON_PLAYER_MISCELLANEOUS>(player);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PROCESSORPLAYERMISCELLANEOUS_HPP
|
@ -0,0 +1,23 @@
|
||||
#ifndef OPENMW_PROCESSORPLAYERREPUTATION_HPP
|
||||
#define OPENMW_PROCESSORPLAYERREPUTATION_HPP
|
||||
|
||||
#include "../PlayerProcessor.hpp"
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class ProcessorPlayerReputation final : public PlayerProcessor
|
||||
{
|
||||
public:
|
||||
ProcessorPlayerReputation()
|
||||
{
|
||||
BPP_INIT(ID_PLAYER_REPUTATION)
|
||||
}
|
||||
|
||||
void Do(PlayerPacket &packet, const std::shared_ptr<Player> &player) override
|
||||
{
|
||||
Networking::get().getState().getEventCtrl().Call<CoreEvent::ON_PLAYER_REPUTATION>(player);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PROCESSORPLAYERREPUTATION_HPP
|
@ -0,0 +1,25 @@
|
||||
#ifndef OPENMW_PROCESSORPLAYERRECORDDYNAMIC_HPP
|
||||
#define OPENMW_PROCESSORPLAYERRECORDDYNAMIC_HPP
|
||||
|
||||
#include "../PlayerProcessor.hpp"
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class ProcessorPlayerRecordDynamic final : public PlayerProcessor
|
||||
{
|
||||
public:
|
||||
ProcessorPlayerRecordDynamic()
|
||||
{
|
||||
BPP_INIT(ID_RECORD_DYNAMIC)
|
||||
}
|
||||
|
||||
void Do(PlayerPacket &packet, const std::shared_ptr<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 final : 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 final : public WorldProcessor
|
||||
{
|
||||
public:
|
||||
ProcessorScriptMemberFloat()
|
||||
{
|
||||
BPP_INIT(ID_SCRIPT_MEMBER_FLOAT)
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PROCESSORSCRIPTMEMBERFLOAT_HPP
|
@ -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 final: 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
|
@ -0,0 +1,23 @@
|
||||
#ifndef OPENMW_PROCESSORCELLCREATE_HPP
|
||||
#define OPENMW_PROCESSORCELLCREATE_HPP
|
||||
|
||||
#include "../PlayerProcessor.hpp"
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class ProcessorCellCreate final: public PlayerProcessor
|
||||
{
|
||||
public:
|
||||
ProcessorCellCreate()
|
||||
{
|
||||
BPP_INIT(ID_CELL_CREATE)
|
||||
}
|
||||
|
||||
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
||||
{
|
||||
// Placeholder
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PROCESSORCELLCREATE_HPP
|
@ -0,0 +1,30 @@
|
||||
#ifndef OPENMW_PROCESSORPLAYERBEHAVIOR_HPP
|
||||
#define OPENMW_PROCESSORPLAYERBEHAVIOR_HPP
|
||||
|
||||
#include "../PlayerProcessor.hpp"
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class ProcessorPlayerBehavior final: 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 final: 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
|
@ -0,0 +1,32 @@
|
||||
#ifndef OPENMW_PROCESSORPLAYERMISCELLANEOUS_HPP
|
||||
#define OPENMW_PROCESSORPLAYERMISCELLANEOUS_HPP
|
||||
|
||||
|
||||
#include "../PlayerProcessor.hpp"
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class ProcessorPlayerMiscellaneous final: 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 final: 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 final: 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 final : 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
|
@ -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 final: 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 final: 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
|
@ -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
|
@ -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
|
||||
}
|
@ -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
|
@ -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
|
||||
}
|
@ -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
|
@ -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
|
||||
}
|
@ -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
|
@ -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
|
||||
}
|
@ -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
|
@ -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
|
||||
}
|
@ -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 New Issue