Remove outdated ID_GAME_UPDATE_SKILLS packet
parent
e36321f448
commit
8abef0bebe
@ -1,25 +0,0 @@
|
||||
//
|
||||
// Created by koncord on 11.01.16.
|
||||
//
|
||||
|
||||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include <components/esm/creaturestats.hpp>
|
||||
#include "PacketAttributesAndStats.hpp"
|
||||
|
||||
using namespace mwmp;
|
||||
|
||||
PacketAttributesAndStats::PacketAttributesAndStats(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
||||
{
|
||||
packetID = ID_GAME_UPDATE_SKILLS;
|
||||
}
|
||||
|
||||
void PacketAttributesAndStats::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
|
||||
{
|
||||
BasePacket::Packet(bs, player, send);
|
||||
|
||||
for (int i = 0; i < AttributesCount; ++i)
|
||||
RW(player->CreatureStats()->mAttributes[i], send);
|
||||
|
||||
for (int i = 0; i < StatsCount; ++i)
|
||||
RW(player->NpcStats()->mSkills[i], send);
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
//
|
||||
// Created by koncord on 11.01.16.
|
||||
//
|
||||
|
||||
#ifndef OPENMW_PacketAttributesAndStats_HPP
|
||||
#define OPENMW_PacketAttributesAndStats_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/BasePacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketAttributesAndStats : public BasePacket
|
||||
{
|
||||
public:
|
||||
const static int AttributesCount = 8;
|
||||
const static int StatsCount = 27;
|
||||
PacketAttributesAndStats(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, BasePlayer *player, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PacketAttributesAndStats_HPP
|
Loading…
Reference in New Issue