mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 02:19:55 +00:00
7107136808
SetExterior(pid, x, y) GetExteriorX(pid) GetExteriorY(pid) also "SetCell" will now move to the named external cells (e.g. SetCell(pid, "Balmora"))
27 lines
638 B
C++
27 lines
638 B
C++
//
|
|
// Created by koncord on 15.01.16.
|
|
//
|
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
#include "PacketCell.hpp"
|
|
|
|
|
|
mwmp::PacketCell::PacketCell(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
|
{
|
|
packetID = ID_GAME_CELL;
|
|
priority = IMMEDIATE_PRIORITY;
|
|
reliability = RELIABLE_ORDERED;
|
|
}
|
|
|
|
void mwmp::PacketCell::Packet(RakNet::BitStream *bs, mwmp::BasePlayer *player, bool send)
|
|
{
|
|
BasePacket::Packet(bs, player, send);
|
|
|
|
RW(player->GetCell()->mData.mFlags, send);
|
|
|
|
|
|
RW(player->GetCell()->mCellId.mIndex.mX, send);
|
|
RW(player->GetCell()->mCellId.mIndex.mY, send);
|
|
|
|
RW(player->GetCell()->mName, send);
|
|
}
|