Skip to content

Commit

Permalink
Add final to all public CPacket inheriting classes (#1790)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pirulax committed Nov 4, 2020
1 parent 7813205 commit bd89570
Show file tree
Hide file tree
Showing 74 changed files with 74 additions and 74 deletions.
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CBulletsyncPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*****************************************************************************/
#pragma once

class CBulletsyncPacket : public CPacket
class CBulletsyncPacket final : public CPacket
{
public:
CBulletsyncPacket(){};
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CCameraSyncPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "CPacket.h"
#include "../CElement.h"

class CCameraSyncPacket : public CPacket
class CCameraSyncPacket final : public CPacket
{
public:
ePacketID GetPacketID() const { return PACKET_ID_CAMERA_SYNC; };
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CChatClearPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "CPacket.h"

class CChatClearPacket : public CPacket
class CChatClearPacket final : public CPacket
{
public:
CChatClearPacket() {};
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CChatEchoPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#define CHATCOLOR_ADMINSAY 131, 205, 241
#define CHATCOLOR_CONSOLESAY 223, 149, 232

class CChatEchoPacket : public CPacket
class CChatEchoPacket final : public CPacket
{
public:
CChatEchoPacket(SString strMessage, unsigned char ucRed, unsigned char ucGreen, unsigned char ucBlue, bool bColorCoded = false)
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CCommandPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "CPacket.h"

class CCommandPacket : public CPacket
class CCommandPacket final : public CPacket
{
public:
CCommandPacket() { m_strCommand = ""; };
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CConsoleEchoPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "CPacket.h"
#include "../../Config.h"

class CConsoleEchoPacket : public CPacket
class CConsoleEchoPacket final : public CPacket
{
public:
CConsoleEchoPacket(const char* szMessage) { m_strMessage.AssignLeft(szMessage, MAX_CONSOLEECHO_LENGTH); }
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CCustomDataPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "CPacket.h"
#include "../lua/CLuaArguments.h"

class CCustomDataPacket : public CPacket
class CCustomDataPacket final : public CPacket
{
public:
CCustomDataPacket();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#pragma once
#include "CCustomWeapon.h"

class CCustomWeaponBulletSyncPacket : public CPacket
class CCustomWeaponBulletSyncPacket final : public CPacket
{
public:
CCustomWeaponBulletSyncPacket(){};
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CDebugEchoPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define DEBUGCOLOR_ERROR 255, 0, 0
#define DEBUGCOLOR_INFO 0, 255, 0

class CDebugEchoPacket : public CPacket
class CDebugEchoPacket final : public CPacket
{
public:
CDebugEchoPacket(const char* szMessage, unsigned int uiLevel = 0, unsigned char ucRed = 255, unsigned char ucGreen = 255, unsigned char ucBlue = 255)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "CPacket.h"
#include <CVector.h>

class CDestroySatchelsPacket : public CPacket
class CDestroySatchelsPacket final : public CPacket
{
public:
CDestroySatchelsPacket();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "CPacket.h"
#include <CVector.h>

class CDetonateSatchelsPacket : public CPacket
class CDetonateSatchelsPacket final : public CPacket
{
public:
CDetonateSatchelsPacket();
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CDiscordJoinPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include "CPacket.h"

class CDiscordJoinPacket : public CPacket
class CDiscordJoinPacket final : public CPacket
{
public:
CDiscordJoinPacket() {}
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CElementRPCPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "CPacket.h"

class CElementRPCPacket : public CPacket
class CElementRPCPacket final : public CPacket
{
public:
CElementRPCPacket(CElement* pSourceElement, unsigned char ucActionID, NetBitStreamInterface& BitStream)
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CEntityAddPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CEntityAddPacket;

extern CGame* g_pGame;

class CEntityAddPacket : public CPacket
class CEntityAddPacket final : public CPacket
{
public:
ePacketID GetPacketID() const { return PACKET_ID_ENTITY_ADD; };
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CEntityRemovePacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "CPacket.h"
#include <vector>

class CEntityRemovePacket : public CPacket
class CEntityRemovePacket final : public CPacket
{
public:
ePacketID GetPacketID() const { return PACKET_ID_ENTITY_REMOVE; };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "CPacket.h"
#include <CVector.h>

class CExplosionSyncPacket : public CPacket
class CExplosionSyncPacket final : public CPacket
{
public:
enum eExplosionType
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CFireSyncPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "CPacket.h"
#include <CVector.h>

class CFireSyncPacket : public CPacket
class CFireSyncPacket final : public CPacket
{
public:
CFireSyncPacket();
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CKeysyncPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "../CCommon.h"
#include "CPacket.h"

class CKeysyncPacket : public CPacket
class CKeysyncPacket final : public CPacket
{
public:
CKeysyncPacket(){};
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CLightsyncPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "Common.h"
#include <vector>

class CLightsyncPacket : public CPacket
class CLightsyncPacket final : public CPacket
{
public:
CLightsyncPacket() {}
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CLuaEventPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "CPacket.h"
#include "../lua/CLuaArguments.h"

class CLuaEventPacket : public CPacket
class CLuaEventPacket final : public CPacket
{
public:
CLuaEventPacket();
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CLuaPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "CPacket.h"

class CLuaPacket : public CPacket
class CLuaPacket final : public CPacket
{
public:
CLuaPacket(unsigned char ucActionID, NetBitStreamInterface& BitStream) : m_ucActionID(ucActionID), m_BitStream(BitStream){};
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CMapInfoPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct SWorldWaterLevelInfo
float fOutsideLevel;
};

class CMapInfoPacket : public CPacket
class CMapInfoPacket final : public CPacket
{
public:
explicit CMapInfoPacket(unsigned char ucWeather, unsigned char ucWeatherBlendingTo, unsigned char ucBlendedWeatherHour, unsigned char ucClockHour,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "CPacket.h"

class CObjectStartSyncPacket : public CPacket
class CObjectStartSyncPacket final : public CPacket
{
public:
CObjectStartSyncPacket(CObject* pObject) { m_pObject = pObject; };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "CPacket.h"

class CObjectStopSyncPacket : public CPacket
class CObjectStopSyncPacket final : public CPacket
{
public:
CObjectStopSyncPacket(CObject* pObject) { m_pObject = pObject; };
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CObjectSyncPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <CVector.h>
#include <vector>

class CObjectSyncPacket : public CPacket
class CObjectSyncPacket final : public CPacket
{
public:
struct SyncData
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CPedStartSyncPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "CPacket.h"
class CPed;

class CPedStartSyncPacket : public CPacket
class CPedStartSyncPacket final : public CPacket
{
public:
CPedStartSyncPacket(CPed* pPed) { m_pPed = pPed; };
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CPedStopSyncPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "CPacket.h"

class CPedStopSyncPacket : public CPacket
class CPedStopSyncPacket final : public CPacket
{
public:
CPedStopSyncPacket(ElementID ID) { m_ID = ID; };
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CPedSyncPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "CPacket.h"
#include <vector>

class CPedSyncPacket : public CPacket
class CPedSyncPacket final : public CPacket
{
public:
struct SyncData
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CPedTaskPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*****************************************************************************/
#pragma once

class CPedTaskPacket : public CPacket
class CPedTaskPacket final : public CPacket
{
public:
CPedTaskPacket();
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CPedWastedPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class CPed;
typedef unsigned long AssocGroupId;
typedef unsigned long AnimationId;

class CPedWastedPacket : public CPacket
class CPedWastedPacket final : public CPacket
{
public:
CPedWastedPacket();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "CPacket.h"
#include <vector>

class CPickupHideShowPacket : public CPacket
class CPickupHideShowPacket final : public CPacket
{
public:
CPickupHideShowPacket(bool bShow) { m_bShow = bShow; };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "CPacket.h"

class CPickupHitConfirmPacket : public CPacket
class CPickupHitConfirmPacket final : public CPacket
{
public:
explicit CPickupHitConfirmPacket(class CPickup* pPickup, bool bPlaySound)
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CPlayerACInfoPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*****************************************************************************/
#pragma once

class CPlayerACInfoPacket : public CPacket
class CPlayerACInfoPacket final : public CPacket
{
public:
ePacketID GetPacketID() const { return PACKET_ID_PLAYER_ACINFO; };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "CPacket.h"
#include "../../Config.h"

class CPlayerChangeNickPacket : public CPacket
class CPlayerChangeNickPacket final : public CPacket
{
public:
explicit CPlayerChangeNickPacket(const char* szNewNick);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct SPlayerClothes
unsigned char ucType;
};

class CPlayerClothesPacket : public CPacket
class CPlayerClothesPacket final : public CPacket
{
public:
~CPlayerClothesPacket();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "CPacket.h"

class CPlayerConnectCompletePacket : public CPacket
class CPlayerConnectCompletePacket final : public CPacket
{
public:
ePacketID GetPacketID() const { return static_cast<ePacketID>(PACKET_ID_SERVER_JOIN_COMPLETE); };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#pragma once

class CPlayerDiagnosticPacket : public CPacket
class CPlayerDiagnosticPacket final : public CPacket
{
public:
ePacketID GetPacketID() const { return PACKET_ID_PLAYER_DIAGNOSTIC; };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "../packets/CPacket.h"

class CPlayerDisconnectedPacket : public CPacket
class CPlayerDisconnectedPacket final : public CPacket
{
public:
enum ePlayerDisconnectType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "CPacket.h"
#include <string.h>

class CPlayerJoinCompletePacket : public CPacket
class CPlayerJoinCompletePacket final : public CPacket
{
public:
CPlayerJoinCompletePacket();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "CPacket.h"
#include "../../Config.h"

class CPlayerJoinDataPacket : public CPacket
class CPlayerJoinDataPacket final : public CPacket
{
public:
virtual bool RequiresSourcePlayer() const { return false; }
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CPlayerJoinPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "CPacket.h"

class CPlayerJoinPacket : public CPacket
class CPlayerJoinPacket final : public CPacket
{
public:
virtual bool RequiresSourcePlayer() const { return false; }
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/packets/CPlayerListPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "CPacket.h"
#include <list>

class CPlayerListPacket : public CPacket
class CPlayerListPacket final : public CPacket
{
public:
ePacketID GetPacketID() const { return PACKET_ID_PLAYER_LIST; };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct SModInfoItem
SString strLongSha256;
};

class CPlayerModInfoPacket : public CPacket
class CPlayerModInfoPacket final : public CPacket
{
public:
ePacketID GetPacketID() const { return PACKET_ID_PLAYER_MODINFO; };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*****************************************************************************/
#pragma once

class CPlayerNetworkStatusPacket : public CPacket
class CPlayerNetworkStatusPacket final : public CPacket
{
public:
virtual bool RequiresSourcePlayer() const { return true; }
Expand Down
Loading

0 comments on commit bd89570

Please sign in to comment.