mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 23:21:20 -04:00
[General] Delete invalid & redundant code
This commit is contained in:
parent
0d6636018f
commit
e3f4c63ea6
@ -25,16 +25,6 @@ namespace mwmp
|
|||||||
virtual void Send(BasePlayer *player, RakNet::AddressOrGUID destination);
|
virtual void Send(BasePlayer *player, RakNet::AddressOrGUID destination);
|
||||||
virtual void Read(BasePlayer *player);
|
virtual void Read(BasePlayer *player);
|
||||||
|
|
||||||
static size_t headerSize()
|
|
||||||
{
|
|
||||||
return (size_t)(1 + RakNet::RakNetGUID::size()); // packetID + RakNetGUID (uint64_t)
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned char GetPacketID()
|
|
||||||
{
|
|
||||||
return packetID;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
BasePlayer *player;
|
BasePlayer *player;
|
||||||
|
|
||||||
|
@ -25,16 +25,6 @@ namespace mwmp
|
|||||||
virtual void Send(BaseEvent *event, RakNet::AddressOrGUID destination);
|
virtual void Send(BaseEvent *event, RakNet::AddressOrGUID destination);
|
||||||
virtual void Read(BaseEvent *event);
|
virtual void Read(BaseEvent *event);
|
||||||
|
|
||||||
static size_t headerSize()
|
|
||||||
{
|
|
||||||
return (size_t)(1 + RakNet::RakNetGUID::size()); // packetID + RakNetGUID (uint64_t)
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned char GetPacketID()
|
|
||||||
{
|
|
||||||
return packetID;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
BaseEvent *event;
|
BaseEvent *event;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user