[General] Rename unused PlayerRegionChange packet into PlayerKillCount
parent
ee5c9b65c5
commit
5b23da8e1c
@ -0,0 +1,25 @@
|
||||
#ifndef OPENMW_PROCESSORPLAYERKILLCOUNT_HPP
|
||||
#define OPENMW_PROCESSORPLAYERKILLCOUNT_HPP
|
||||
|
||||
#include "apps/openmw-mp/PlayerProcessor.hpp"
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class ProcessorPlayerKillCount : public PlayerProcessor
|
||||
{
|
||||
public:
|
||||
ProcessorPlayerKillCount()
|
||||
{
|
||||
BPP_INIT(ID_PLAYER_KILL_COUNT)
|
||||
}
|
||||
|
||||
void Do(PlayerPacket &packet, Player &player) override
|
||||
{
|
||||
DEBUG_PRINTF(strPacketID.c_str());
|
||||
|
||||
Script::Call<Script::CallbackIdentity("OnPlayerKillCount")>(player.getId());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PROCESSORPLAYERKILLCOUNT_HPP
|
@ -1,25 +0,0 @@
|
||||
#ifndef OPENMW_PROCESSORPLAYERREGIONCHANGE_HPP
|
||||
#define OPENMW_PROCESSORPLAYERREGIONCHANGE_HPP
|
||||
|
||||
#include "apps/openmw-mp/PlayerProcessor.hpp"
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class ProcessorPlayerRegionChange : public PlayerProcessor
|
||||
{
|
||||
public:
|
||||
ProcessorPlayerRegionChange()
|
||||
{
|
||||
BPP_INIT(ID_PLAYER_REGION_CHANGE)
|
||||
}
|
||||
|
||||
void Do(PlayerPacket &packet, Player &player) override
|
||||
{
|
||||
DEBUG_PRINTF(strPacketID.c_str());
|
||||
|
||||
Script::Call<Script::CallbackIdentity("OnPlayerRegionChange")>(player.getId());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PROCESSORPLAYERREGIONCHANGE_HPP
|
@ -0,0 +1,14 @@
|
||||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include "PacketPlayerKillCount.hpp"
|
||||
|
||||
mwmp::PacketPlayerKillCount::PacketPlayerKillCount(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
||||
{
|
||||
packetID = ID_PLAYER_KILL_COUNT;
|
||||
}
|
||||
|
||||
void mwmp::PacketPlayerKillCount::Packet(RakNet::BitStream *bs, bool send)
|
||||
{
|
||||
PlayerPacket::Packet(bs, send);
|
||||
|
||||
// Placeholder to be filled in later
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include "PacketPlayerRegionChange.hpp"
|
||||
|
||||
mwmp::PacketPlayerRegionChange::PacketPlayerRegionChange(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
||||
{
|
||||
packetID = ID_PLAYER_REGION_CHANGE;
|
||||
priority = IMMEDIATE_PRIORITY;
|
||||
reliability = RELIABLE_ORDERED;
|
||||
}
|
||||
|
||||
void mwmp::PacketPlayerRegionChange::Packet(RakNet::BitStream *bs, bool send)
|
||||
{
|
||||
PlayerPacket::Packet(bs, send);
|
||||
|
||||
// Placeholder to be filled in later
|
||||
}
|
Loading…
Reference in New Issue