forked from teamnwah/openmw-tes3coop
[General] Rename PlayerKillCount into WorldKillCount
This should clarify the real meaning of the packet and its associated event. The event itself has been renamed from OnPlayerKillCount to OnWorldKillCount.fix/skillcap
parent
18a2d238ab
commit
3649cf553f
@ -0,0 +1,27 @@
|
||||
#ifndef OPENMW_PROCESSORWORLDKILLCOUNT_HPP
|
||||
#define OPENMW_PROCESSORWORLDKILLCOUNT_HPP
|
||||
|
||||
#include "../PlayerProcessor.hpp"
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class ProcessorWorldKillCount : public PlayerProcessor
|
||||
{
|
||||
public:
|
||||
ProcessorWorldKillCount()
|
||||
{
|
||||
BPP_INIT(ID_WORLD_KILL_COUNT)
|
||||
}
|
||||
|
||||
void Do(PlayerPacket &packet, Player &player) override
|
||||
{
|
||||
DEBUG_PRINTF(strPacketID.c_str());
|
||||
|
||||
packet.Send(true);
|
||||
|
||||
Script::Call<Script::CallbackIdentity("OnWorldKillCount")>(player.getId());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PROCESSORWORLDKILLCOUNT_HPP
|
@ -1,17 +0,0 @@
|
||||
#ifndef OPENMW_PACKETPLAYERREGIONCHANGE_HPP
|
||||
#define OPENMW_PACKETPLAYERREGIONCHANGE_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/Player/PlayerPacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketPlayerKillCount : public PlayerPacket
|
||||
{
|
||||
public:
|
||||
PacketPlayerKillCount(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKETPLAYERREGIONCHANGE_HPP
|
@ -1,12 +1,12 @@
|
||||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include "PacketPlayerKillCount.hpp"
|
||||
#include "PacketWorldKillCount.hpp"
|
||||
|
||||
mwmp::PacketPlayerKillCount::PacketPlayerKillCount(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
||||
mwmp::PacketWorldKillCount::PacketWorldKillCount(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
||||
{
|
||||
packetID = ID_PLAYER_KILL_COUNT;
|
||||
packetID = ID_WORLD_KILL_COUNT;
|
||||
}
|
||||
|
||||
void mwmp::PacketPlayerKillCount::Packet(RakNet::BitStream *bs, bool send)
|
||||
void mwmp::PacketWorldKillCount::Packet(RakNet::BitStream *bs, bool send)
|
||||
{
|
||||
PlayerPacket::Packet(bs, send);
|
||||
|
@ -0,0 +1,17 @@
|
||||
#ifndef OPENMW_PACKETWORLDKILLCOUNT_HPP
|
||||
#define OPENMW_PACKETWORLDKILLCOUNT_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/Player/PlayerPacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketWorldKillCount : public PlayerPacket
|
||||
{
|
||||
public:
|
||||
PacketWorldKillCount(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKETWORLDKILLCOUNT_HPP
|
Loading…
Reference in New Issue