mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Objects: Change NUM_CLIENT_OBJECT_TYPES to be part of TypeID enum instead of preprocessor define
This commit is contained in:
@@ -325,7 +325,7 @@ class TC_GAME_API BaseEntity
|
||||
virtual UF::UpdateFieldFlag GetUpdateFieldFlagsFor(Player const* target) const;
|
||||
static void BuildEntityFragments(ByteBuffer* data, std::span<WowCS::EntityFragment const> fragments);
|
||||
|
||||
TypeID m_objectTypeId = static_cast<TypeID>(NUM_CLIENT_OBJECT_TYPES);
|
||||
TypeID m_objectTypeId = NUM_CLIENT_OBJECT_TYPES;
|
||||
CreateObjectBits m_updateFlag = {};
|
||||
WowCS::EntityFragmentsHolder m_entityFragments;
|
||||
|
||||
|
||||
@@ -51,10 +51,10 @@ enum TypeID : uint8
|
||||
TYPEID_MESH_OBJECT = 14,
|
||||
TYPEID_AI_GROUP = 15,
|
||||
TYPEID_SCENARIO = 16,
|
||||
TYPEID_LOOT_OBJECT = 17
|
||||
};
|
||||
TYPEID_LOOT_OBJECT = 17,
|
||||
|
||||
#define NUM_CLIENT_OBJECT_TYPES 18
|
||||
NUM_CLIENT_OBJECT_TYPES
|
||||
};
|
||||
|
||||
enum TypeMask
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user