fix(Enums): Make enum class to prevent redefinition errors

This commit is contained in:
Yimura 2022-03-02 02:12:36 +01:00
parent cee401f0f0
commit 28acfbd9a5
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#include "netPlayerData.hpp" #include "netPlayerData.hpp"
enum eGameState : int32_t enum class eGameState : int32_t
{ {
Invalid = -1, Invalid = -1,
Playing, Playing,

View File

@ -2,7 +2,7 @@
#include "CAmmoInfo.hpp" #include "CAmmoInfo.hpp"
#include "CItemInfo.hpp" #include "CItemInfo.hpp"
enum eDamageType : int32_t enum class eDamageType : int32_t
{ {
Unknown, Unknown,
None, None,
@ -22,7 +22,7 @@ enum eDamageType : int32_t
_0x1C8E59AE _0x1C8E59AE
}; };
enum eFireType : int32_t enum class eFireType : int32_t
{ {
None, None,
Melee, Melee,
@ -32,7 +32,7 @@ enum eFireType : int32_t
VolumetricParticle VolumetricParticle
}; };
enum eWheelSlot : int32_t enum class eWheelSlot : int32_t
{ {
Pistol, Pistol,
SMG, SMG,