refactor: rename enums
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "BaseItem.h"
|
||||
#include "../Enums/ArmorType.h"
|
||||
#include "../Enums/CrystalType.h"
|
||||
#include "../Enums/ArmorTypeEnum.h"
|
||||
#include "../Enums/CrystalTypeEnum.h"
|
||||
|
||||
namespace L2Bot::Domain::Entities
|
||||
{
|
||||
@@ -97,8 +97,8 @@ namespace L2Bot::Domain::Entities
|
||||
const uint16_t weight,
|
||||
const bool isEquipped,
|
||||
const uint16_t enchantLevel,
|
||||
const Enums::ArmorType armorType,
|
||||
const Enums::CrystalType crystalType,
|
||||
const Enums::ArmorTypeEnum armorType,
|
||||
const Enums::CrystalTypeEnum crystalType,
|
||||
const uint32_t pDefense,
|
||||
const uint32_t mDefense,
|
||||
const std::string& setEffect,
|
||||
@@ -114,7 +114,7 @@ namespace L2Bot::Domain::Entities
|
||||
iconName,
|
||||
description,
|
||||
weight,
|
||||
Enums::ItemType::armor
|
||||
Enums::ItemTypeEnum::armor
|
||||
),
|
||||
m_IsEquipped(isEquipped),
|
||||
m_EnchantLevel(enchantLevel),
|
||||
@@ -159,8 +159,8 @@ namespace L2Bot::Domain::Entities
|
||||
private:
|
||||
bool m_IsEquipped = 0;
|
||||
uint16_t m_EnchantLevel = 0;
|
||||
Enums::ArmorType m_ArmorType = Enums::ArmorType::none;
|
||||
Enums::CrystalType m_CrystalType = Enums::CrystalType::none;
|
||||
Enums::ArmorTypeEnum m_ArmorType = Enums::ArmorTypeEnum::none;
|
||||
Enums::CrystalTypeEnum m_CrystalType = Enums::CrystalTypeEnum::none;
|
||||
uint32_t m_PDefense = 0;
|
||||
uint32_t m_MDefense = 0;
|
||||
std::string m_SetEffect = "";
|
||||
|
@@ -3,7 +3,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "EntityInterface.h"
|
||||
#include "../Enums/ItemType.h"
|
||||
#include "../Enums/ItemTypeEnum.h"
|
||||
|
||||
namespace L2Bot::Domain::Entities
|
||||
{
|
||||
@@ -89,7 +89,7 @@ namespace L2Bot::Domain::Entities
|
||||
const std::string& iconName,
|
||||
const std::string& description,
|
||||
const uint16_t weight,
|
||||
const Enums::ItemType type
|
||||
const Enums::ItemTypeEnum type
|
||||
) :
|
||||
m_ObjectId(objectId),
|
||||
m_ItemId(itemId),
|
||||
@@ -134,7 +134,7 @@ namespace L2Bot::Domain::Entities
|
||||
std::string m_IconName = "";
|
||||
std::string m_Description = "";
|
||||
uint16_t m_Weight = 0;
|
||||
Enums::ItemType m_Type = Enums::ItemType::none;
|
||||
Enums::ItemTypeEnum m_Type = Enums::ItemTypeEnum::none;
|
||||
GetState m_PrevState = GetState();
|
||||
};
|
||||
}
|
||||
|
@@ -84,7 +84,7 @@ namespace L2Bot::Domain::Entities
|
||||
iconName,
|
||||
description,
|
||||
weight,
|
||||
Enums::ItemType::etc
|
||||
Enums::ItemTypeEnum::etc
|
||||
),
|
||||
m_Amount(amount),
|
||||
m_IsQuest(isQuest)
|
||||
|
@@ -3,7 +3,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "BaseItem.h"
|
||||
#include "../Enums/CrystalType.h"
|
||||
#include "../Enums/CrystalTypeEnum.h"
|
||||
|
||||
namespace L2Bot::Domain::Entities
|
||||
{
|
||||
@@ -83,7 +83,7 @@ namespace L2Bot::Domain::Entities
|
||||
const uint16_t weight,
|
||||
const bool isEquipped,
|
||||
const uint16_t enchantLevel,
|
||||
const Enums::CrystalType crystalType,
|
||||
const Enums::CrystalTypeEnum crystalType,
|
||||
const int16_t evasion,
|
||||
const uint32_t pDefense,
|
||||
const uint16_t defRate
|
||||
@@ -97,7 +97,7 @@ namespace L2Bot::Domain::Entities
|
||||
iconName,
|
||||
description,
|
||||
weight,
|
||||
Enums::ItemType::shield
|
||||
Enums::ItemTypeEnum::shield
|
||||
),
|
||||
m_IsEquipped(isEquipped),
|
||||
m_EnchantLevel(enchantLevel),
|
||||
@@ -136,7 +136,7 @@ namespace L2Bot::Domain::Entities
|
||||
private:
|
||||
bool m_IsEquipped = 0;
|
||||
uint16_t m_EnchantLevel = 0;
|
||||
Enums::CrystalType m_CrystalType = Enums::CrystalType::none;
|
||||
Enums::CrystalTypeEnum m_CrystalType = Enums::CrystalTypeEnum::none;
|
||||
int16_t m_Evasion = 0;
|
||||
uint32_t m_PDefense = 0;
|
||||
uint16_t m_DefRate = 0;
|
||||
|
@@ -3,8 +3,8 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "BaseItem.h"
|
||||
#include "../Enums/WeaponType.h"
|
||||
#include "../Enums/CrystalType.h"
|
||||
#include "../Enums/WeaponTypeEnum.h"
|
||||
#include "../Enums/CrystalTypeEnum.h"
|
||||
|
||||
namespace L2Bot::Domain::Entities
|
||||
{
|
||||
@@ -109,8 +109,8 @@ namespace L2Bot::Domain::Entities
|
||||
const uint16_t weight,
|
||||
const bool isEquipped,
|
||||
const uint16_t enchantLevel,
|
||||
const Enums::WeaponType weaponType,
|
||||
const Enums::CrystalType crystalType,
|
||||
const Enums::WeaponTypeEnum weaponType,
|
||||
const Enums::CrystalTypeEnum crystalType,
|
||||
const uint8_t rndDamage,
|
||||
const uint32_t pAttack,
|
||||
const uint32_t mAttack,
|
||||
@@ -130,7 +130,7 @@ namespace L2Bot::Domain::Entities
|
||||
iconName,
|
||||
description,
|
||||
weight,
|
||||
Enums::ItemType::weapon
|
||||
Enums::ItemTypeEnum::weapon
|
||||
),
|
||||
m_IsEquipped(isEquipped),
|
||||
m_EnchantLevel(enchantLevel),
|
||||
@@ -184,8 +184,8 @@ namespace L2Bot::Domain::Entities
|
||||
private:
|
||||
bool m_IsEquipped = 0;
|
||||
uint16_t m_EnchantLevel = 0;
|
||||
Enums::WeaponType m_WeaponType = Enums::WeaponType::none;
|
||||
Enums::CrystalType m_CrystalType = Enums::CrystalType::none;
|
||||
Enums::WeaponTypeEnum m_WeaponType = Enums::WeaponTypeEnum::none;
|
||||
Enums::CrystalTypeEnum m_CrystalType = Enums::CrystalTypeEnum::none;
|
||||
uint8_t m_RndDamage = 0;
|
||||
uint32_t m_PAttack = 0;
|
||||
uint32_t m_MAttack = 0;
|
||||
|
Reference in New Issue
Block a user