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 <bit>
#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)
 
ByteBuffer & operator<< (ByteBuffer &buf, ObjectGuid const &guid)
 
ByteBuffer & operator>> (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()

◆ operator<<()

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

Definition at line 1087 of file ObjectGuid.cpp.

Referenced by ByteBuffer::operator<<(), and ByteBuffer::operator<<().

◆ operator>>()

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

Definition at line 1113 of file ObjectGuid.cpp.