You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
637 B
C++
26 lines
637 B
C++
//
|
|
// Created by koncord on 29.08.16.
|
|
//
|
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
#include "PacketPlayerClass.hpp"
|
|
|
|
mwmp::PacketPlayerClass::PacketPlayerClass(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
|
{
|
|
packetID = ID_PLAYER_CHARCLASS;
|
|
}
|
|
|
|
void mwmp::PacketPlayerClass::Packet(RakNet::BitStream *bs, bool send)
|
|
{
|
|
PlayerPacket::Packet(bs, send);
|
|
|
|
RW(player->charClass.mId, send);
|
|
|
|
if (player->charClass.mId.empty()) // custom class
|
|
{
|
|
RW(player->charClass.mName, send, true);
|
|
RW(player->charClass.mDescription, send, true);
|
|
RW(player->charClass.mData, send, true);
|
|
}
|
|
}
|