TrinityCore
Loading...
Searching...
No Matches
ObjectGuid.cpp File Reference
#include "ObjectGuid.h"
#include "ByteBuffer.h"
#include "Errors.h"
#include "RealmList.h"
#include "StringFormat.h"
#include "Util.h"
#include <charconv>
+ Include dependency graph for ObjectGuid.cpp:

Go to the source code of this file.

Macros

#define SET_GUID_INFO(type, format, parse)
 

Functions

static uint32 GetRealmIdForObjectGuid (uint32 realmId)
 
ByteBufferoperator<< (ByteBuffer &buf, ObjectGuid const &guid)
 
ByteBufferoperator>> (ByteBuffer &buf, ObjectGuid &guid)
 

Macro Definition Documentation

◆ SET_GUID_INFO

#define SET_GUID_INFO (   type,
  format,
  parse 
)
Value:
Names[AsUnderlyingType(HighGuid::type)] = #type ## sv;\
ClientFormatFunction[AsUnderlyingType(HighGuid::type)] = &ObjectGuidInfo::format;\
ClientParseFunction[AsUnderlyingType(HighGuid::type)] = &ObjectGuidInfo::parse
constexpr std::underlying_type< E >::type AsUnderlyingType(E enumValue)
Definition Util.h:565

Function Documentation

◆ GetRealmIdForObjectGuid()

static uint32 GetRealmIdForObjectGuid ( uint32  realmId)
inlinestatic

Definition at line 886 of file ObjectGuid.cpp.

+ Here is the caller graph for this function:

◆ operator<<()

ByteBuffer & operator<< ( ByteBuffer buf,
ObjectGuid const &  guid 
)

Definition at line 1086 of file ObjectGuid.cpp.

+ Here is the caller graph for this function:

◆ operator>>()

ByteBuffer & operator>> ( ByteBuffer buf,
ObjectGuid guid 
)

Definition at line 1111 of file ObjectGuid.cpp.