TrinityCore
ObjectGuid.cpp File Reference
#include "ObjectGuid.h"
#include "ByteBuffer.h"
#include "Errors.h"
#include "Hash.h"
#include "Log.h"
#include "Realm.h"
#include "Util.h"
#include "World.h"
+ 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;\
ClientFormatFunction[AsUnderlyingType(HighGuid::type)] = &ObjectGuidInfo::format;\
ClientParseFunction[AsUnderlyingType(HighGuid::type)] = &ObjectGuidInfo::parse
constexpr std::underlying_type< E >::type AsUnderlyingType(E enumValue)
Definition: Util.h:491

Function Documentation

◆ GetRealmIdForObjectGuid()

static uint32 GetRealmIdForObjectGuid ( uint32  realmId)
inlinestatic

Definition at line 590 of file ObjectGuid.cpp.

+ Here is the caller graph for this function:

◆ operator<<()

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

Definition at line 758 of file ObjectGuid.cpp.

+ Here is the caller graph for this function:

◆ operator>>()

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

Definition at line 779 of file ObjectGuid.cpp.