forked from teamnwah/openmw-tes3coop
[General] Add placeholders for the new packet ID_PLAYER_CELL_LOAD
parent
25e535e8ad
commit
1d9c6ddd81
@ -0,0 +1,20 @@
|
||||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include "PacketPlayerCellLoad.hpp"
|
||||
|
||||
|
||||
mwmp::PacketPlayerCellLoad::PacketPlayerCellLoad(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
||||
{
|
||||
packetID = ID_PLAYER_CELL_CHANGE;
|
||||
priority = IMMEDIATE_PRIORITY;
|
||||
reliability = RELIABLE_ORDERED;
|
||||
}
|
||||
|
||||
void mwmp::PacketPlayerCellLoad::Packet(RakNet::BitStream *bs, mwmp::BasePlayer *player, bool send)
|
||||
{
|
||||
PlayerPacket::Packet(bs, player, send);
|
||||
|
||||
RW(player->getCell()->mData.mFlags, send);
|
||||
RW(player->getCell()->mData.mX, send);
|
||||
RW(player->getCell()->mData.mY, send);
|
||||
RW(player->getCell()->mName, send);
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
#ifndef OPENMW_PACKETPLAYERCELLLOAD_HPP
|
||||
#define OPENMW_PACKETPLAYERCELLLOAD_HPP
|
||||
|
||||
|
||||
#include <components/openmw-mp/Packets/Player/PlayerPacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketPlayerCellLoad : public PlayerPacket
|
||||
{
|
||||
public:
|
||||
PacketPlayerCellLoad(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, BasePlayer *player, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif //OPENMW_PACKETPLAYERCELLLOAD_HPP
|
Loading…
Reference in New Issue