![]() |
TrinityCore
|
#include <ObjectGuid.h>
Public Types | |
| using | LowType = uint64 |
Public Member Functions | |
| constexpr | ObjectGuid ()=default |
| uint64 | GetRawValue (std::size_t i) const |
| std::span< uint8 const, 16 > | GetRawValue () const |
| void | SetRawValue (std::span< uint8 const > rawBytes) |
| void | SetRawValue (uint64 high, uint64 low) |
| void | Clear () |
| HighGuid | GetHigh () const |
| uint32 | GetRealmId () const |
| uint32 | GetMapId () const |
| uint32 | GetEntry () const |
| uint32 | GetSubType () const |
| LowType | GetCounter () const |
| LowType | GetMaxCounter () const |
| bool | IsEmpty () const |
| bool | IsCreature () const |
| bool | IsPet () const |
| bool | IsVehicle () const |
| bool | IsCreatureOrPet () const |
| bool | IsCreatureOrVehicle () const |
| bool | IsAnyTypeCreature () const |
| bool | IsPlayer () const |
| bool | IsUnit () const |
| bool | IsItem () const |
| bool | IsGameObject () const |
| bool | IsDynamicObject () const |
| bool | IsCorpse () const |
| bool | IsAreaTrigger () const |
| bool | IsMOTransport () const |
| bool | IsAnyTypeGameObject () const |
| bool | IsParty () const |
| bool | IsGuild () const |
| bool | IsSceneObject () const |
| bool | IsConversation () const |
| bool | IsCast () const |
| bool | operator! () const |
| bool | operator== (ObjectGuid const &right) const =default |
| std::strong_ordering | operator<=> (ObjectGuid const &right) const |
| std::string_view | GetTypeName () const |
| std::string | ToString () const |
| std::string | ToHexString () const |
Static Public Member Functions | |
| static LowType | GetMaxCounter (HighGuid high) |
| static std::string_view | GetTypeName (HighGuid high) |
| static ObjectGuid | FromString (std::string_view guidString) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::Null, int32 > = 0> | |
| static constexpr ObjectGuid | Create () |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::Uniq, int32 > = 0> | |
| static constexpr ObjectGuid | Create (LowType id) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::Player, int32 > = 0> | |
| static ObjectGuid | Create (LowType dbId) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::Item, int32 > = 0> | |
| static ObjectGuid | Create (LowType dbId) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::WorldObject, int32 > = 0> | |
| static ObjectGuid | Create (uint16 mapId, uint32 entry, LowType counter) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::WorldObject, int32 > = 0> | |
| static ObjectGuid | Create (uint8 subType, uint16 mapId, uint32 entry, LowType counter) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::Transport, int32 > = 0> | |
| static ObjectGuid | Create (uint32 counter) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::ClientActor, int32 > = 0> | |
| static ObjectGuid | Create (uint16 ownerType, uint16 ownerId, uint32 counter) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::ChatChannel, int32 > = 0> | |
| static ObjectGuid | Create (bool builtIn, bool trade, uint16 zoneId, uint8 factionGroupMask, LowType counter) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::Global, int32 > = 0> | |
| static ObjectGuid | Create (LowType dbId) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::Guild, int32 > = 0> | |
| static ObjectGuid | Create (LowType dbId) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::MobileSession, int32 > = 0> | |
| static ObjectGuid | Create (uint16 arg1, LowType counter) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::WebObj, int32 > = 0> | |
| static ObjectGuid | Create (uint8 arg1, uint8 arg2, LowType counter) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::LFGObject, int32 > = 0> | |
| static ObjectGuid | Create (uint8 arg1, uint8 arg2, uint8 arg3, uint8 arg4, bool arg5, uint8 arg6, LowType counter) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::LFGList, int32 > = 0> | |
| static ObjectGuid | Create (uint8 arg1, LowType counter) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::Client, int32 > = 0> | |
| static ObjectGuid | Create (uint32 arg1, LowType counter) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::ClubFinder, int32 > = 0> | |
| static ObjectGuid | Create (uint8 clubType, uint32 clubFinderId, LowType dbId) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::ToolsClient, int32 > = 0> | |
| static ObjectGuid | Create (uint16 mapId, uint32 serverId, LowType counter) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::WorldLayer, int32 > = 0> | |
| static ObjectGuid | Create (uint32 arg1, uint16 arg2, uint8 arg3, uint32 arg4) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::LMMLobby, int32 > = 0> | |
| static ObjectGuid | Create (uint32 arg2, uint8 arg3, uint8 arg4, LowType counter) |
| template<HighGuid type, std::enable_if_t< ObjectGuidTraits< type >::Format::value==ObjectGuidFormatType::Housing, int32 > = 0> | |
| static ObjectGuid | Create (uint32 subType, uint32 arg1, uint32 arg2, uint64 arg3) |
Static Public Attributes | |
| static ObjectGuid const | Empty = ObjectGuid::Create<HighGuid::Null>() |
| static ObjectGuid const | ToStringFailed = ObjectGuid::Create<HighGuid::Uniq>(UI64LIT(3)) |
| static ObjectGuid const | FromStringFailed = ObjectGuid::Create<HighGuid::Uniq>(UI64LIT(4)) |
| static ObjectGuid const | TradeItem = ObjectGuid::Create<HighGuid::Uniq>(UI64LIT(10)) |
| static constexpr std::size_t | BytesSize = 16 |
Protected Member Functions | |
| constexpr | ObjectGuid (uint64 high, uint64 low) |
Protected Attributes | |
| std::array< uint64, 2 > | _data = { } |
Friends | |
| class | ObjectGuidFactory |
| TC_GAME_API ByteBuffer & | operator<< (ByteBuffer &buf, ObjectGuid const &guid) |
| TC_GAME_API ByteBuffer & | operator>> (ByteBuffer &buf, ObjectGuid &guid) |
Definition at line 307 of file ObjectGuid.h.
| using ObjectGuid::LowType = uint64 |
Definition at line 321 of file ObjectGuid.h.
|
constexprdefault |
Definition at line 424 of file ObjectGuid.h.
|
inline |
Definition at line 329 of file ObjectGuid.h.
|
inlinestaticconstexpr |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestaticconstexpr |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
|
inline |
Definition at line 336 of file ObjectGuid.h.
|
inline |
|
inline |
|
inline |
Definition at line 333 of file ObjectGuid.h.
|
inline |
Definition at line 360 of file ObjectGuid.h.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 348 of file ObjectGuid.h.
|
inline |
Definition at line 326 of file ObjectGuid.h.
|
inline |
|
inline |
Definition at line 332 of file ObjectGuid.h.
|
inline |
Definition at line 335 of file ObjectGuid.h.
|
inline |
Definition at line 396 of file ObjectGuid.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
inline |
|
inline |
|
inline |
Definition at line 375 of file ObjectGuid.h.
|
inline |
Definition at line 382 of file ObjectGuid.h.
|
inline |
Definition at line 381 of file ObjectGuid.h.
|
inline |
|
inline |
|
inline |
Definition at line 366 of file ObjectGuid.h.
|
inline |
|
inline |
Definition at line 373 of file ObjectGuid.h.
|
inline |
Definition at line 362 of file ObjectGuid.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 380 of file ObjectGuid.h.
|
inline |
|
inline |
|
inline |
Definition at line 384 of file ObjectGuid.h.
|
inline |
|
default |
| void ObjectGuid::SetRawValue | ( | std::span< uint8 const > | rawBytes | ) |
Definition at line 328 of file ObjectGuid.h.
| std::string ObjectGuid::ToHexString | ( | ) | const |
Definition at line 870 of file ObjectGuid.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::string ObjectGuid::ToString | ( | ) | const |
Definition at line 865 of file ObjectGuid.cpp.
|
friend |
Definition at line 309 of file ObjectGuid.h.
|
friend |
Definition at line 1086 of file ObjectGuid.cpp.
|
friend |
Definition at line 1111 of file ObjectGuid.cpp.
|
protected |
Definition at line 428 of file ObjectGuid.h.
|
staticconstexpr |
Definition at line 319 of file ObjectGuid.h.
|
static |
Definition at line 314 of file ObjectGuid.h.
|
static |
Definition at line 316 of file ObjectGuid.h.
|
static |
Definition at line 315 of file ObjectGuid.h.
|
static |
Definition at line 317 of file ObjectGuid.h.