TrinityCore
Loading...
Searching...
No Matches
ObjectGuidFactory Class Reference

#include <ObjectGuid.h>

Static Public Member Functions

static ObjectGuid CreateNull ()
 
static ObjectGuid CreateUniq (uint64 id)
 
static ObjectGuid CreatePlayer (uint32 realmId, uint64 dbId)
 
static ObjectGuid CreateItem (uint32 realmId, uint64 dbId)
 
static ObjectGuid CreateWorldObject (HighGuid type, uint8 subType, uint32 realmId, uint16 mapId, uint32 serverId, uint32 entry, uint64 counter)
 
static ObjectGuid CreateTransport (HighGuid type, uint32 counter)
 
static ObjectGuid CreateClientActor (uint16 ownerType, uint16 ownerId, uint32 counter)
 
static ObjectGuid CreateChatChannel (uint32 realmId, bool builtIn, bool trade, uint16 zoneId, uint8 factionGroupMask, uint64 counter)
 
static ObjectGuid CreateGlobal (HighGuid type, uint64 dbIdHigh, uint64 dbId)
 
static ObjectGuid CreateGuild (HighGuid type, uint32 realmId, uint64 dbId)
 
static ObjectGuid CreateMobileSession (uint32 realmId, uint16 arg1, uint64 counter)
 
static ObjectGuid CreateWebObj (uint32 realmId, uint8 arg1, uint8 arg2, uint64 counter)
 
static ObjectGuid CreateLFGObject (uint8 arg1, uint8 arg2, uint8 arg3, uint8 arg4, bool arg5, uint8 arg6, uint64 counter)
 
static ObjectGuid CreateLFGList (uint8 arg1, uint64 counter)
 
static ObjectGuid CreateClient (HighGuid type, uint32 realmId, uint32 arg1, uint64 counter)
 
static ObjectGuid CreateClubFinder (uint32 realmId, uint8 type, uint32 clubFinderId, uint64 dbId)
 
static ObjectGuid CreateToolsClient (uint16 mapId, uint32 serverId, uint64 counter)
 
static ObjectGuid CreateWorldLayer (uint32 arg1, uint16 arg2, uint8 arg3, uint32 arg4)
 
static ObjectGuid CreateLMMLobby (uint32 realmId, uint32 arg2, uint8 arg3, uint8 arg4, uint64 counter)
 

Detailed Description

Definition at line 239 of file ObjectGuid.h.

Member Function Documentation

◆ CreateChatChannel()

ObjectGuid ObjectGuidFactory::CreateChatChannel ( uint32  realmId,
bool  builtIn,
bool  trade,
uint16  zoneId,
uint8  factionGroupMask,
uint64  counter 
)
static

Definition at line 649 of file ObjectGuid.cpp.

650{
651 return ObjectGuid(uint64((uint64(HighGuid::ChatChannel) << 58)
652 | (uint64(GetRealmIdForObjectGuid(realmId) & 0x1FFF) << 42)
653 | (uint64(builtIn) << 25)
654 | (uint64(trade) << 24)
655 | (uint64(zoneId & 0x3FFF) << 10)
656 | (uint64(factionGroupMask & 0x3F) << 4)),
657 counter);
658}
uint64_t uint64
Definition: Define.h:142
static uint32 GetRealmIdForObjectGuid(uint32 realmId)
Definition: ObjectGuid.cpp:590
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateClient()

ObjectGuid ObjectGuidFactory::CreateClient ( HighGuid  type,
uint32  realmId,
uint32  arg1,
uint64  counter 
)
static

Definition at line 710 of file ObjectGuid.cpp.

711{
712 return ObjectGuid(uint64((uint64(type) << 58)
713 | (uint64(GetRealmIdForObjectGuid(realmId) & 0x1FFF) << 42)
714 | (uint64(arg1 & 0xFFFFFFFF) << 10)),
715 counter);
716}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateClientActor()

ObjectGuid ObjectGuidFactory::CreateClientActor ( uint16  ownerType,
uint16  ownerId,
uint32  counter 
)
static

Definition at line 641 of file ObjectGuid.cpp.

642{
643 return ObjectGuid(uint64((uint64(HighGuid::ClientActor) << 58)
644 | (uint64(ownerType & 0x1FFF) << 42)
645 | (uint64(ownerId & 0xFFFFFF) << 26)),
646 uint64(counter));
647}
+ Here is the caller graph for this function:

◆ CreateClubFinder()

ObjectGuid ObjectGuidFactory::CreateClubFinder ( uint32  realmId,
uint8  type,
uint32  clubFinderId,
uint64  dbId 
)
static

Definition at line 718 of file ObjectGuid.cpp.

719{
720 return ObjectGuid(uint64((uint64(HighGuid::ClubFinder) << 58)
721 | (type == 1 ? (uint64(GetRealmIdForObjectGuid(realmId) & 0x1FFF) << 42) : UI64LIT(0))
722 | (uint64(type & 0xFF) << 33)
723 | (uint64(clubFinderId & 0xFFFFFFFF))),
724 dbId);
725}
#define UI64LIT(N)
Definition: Define.h:128
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateGlobal()

ObjectGuid ObjectGuidFactory::CreateGlobal ( HighGuid  type,
uint64  dbIdHigh,
uint64  dbId 
)
static

Definition at line 660 of file ObjectGuid.cpp.

661{
662 return ObjectGuid(uint64((uint64(type) << 58)
663 | (uint64(dbIdHigh & UI64LIT(0x3FFFFFFFFFFFFFF)))),
664 dbId);
665}
+ Here is the caller graph for this function:

◆ CreateGuild()

ObjectGuid ObjectGuidFactory::CreateGuild ( HighGuid  type,
uint32  realmId,
uint64  dbId 
)
static

Definition at line 667 of file ObjectGuid.cpp.

668{
669 return ObjectGuid(uint64((uint64(type) << 58)
670 | (uint64(GetRealmIdForObjectGuid(realmId)) << 42)),
671 dbId);
672}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateItem()

ObjectGuid ObjectGuidFactory::CreateItem ( uint32  realmId,
uint64  dbId 
)
static

Definition at line 616 of file ObjectGuid.cpp.

617{
618 return ObjectGuid(uint64((uint64(HighGuid::Item) << 58)
619 | (uint64(GetRealmIdForObjectGuid(realmId)) << 42)),
620 dbId);
621}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateLFGList()

ObjectGuid ObjectGuidFactory::CreateLFGList ( uint8  arg1,
uint64  counter 
)
static

Definition at line 703 of file ObjectGuid.cpp.

704{
705 return ObjectGuid(uint64((uint64(HighGuid::LFGObject) << 58)
706 | (uint64(arg1 & 0xF) << 54)),
707 counter);
708}
+ Here is the caller graph for this function:

◆ CreateLFGObject()

ObjectGuid ObjectGuidFactory::CreateLFGObject ( uint8  arg1,
uint8  arg2,
uint8  arg3,
uint8  arg4,
bool  arg5,
uint8  arg6,
uint64  counter 
)
static

Definition at line 691 of file ObjectGuid.cpp.

692{
693 return ObjectGuid(uint64((uint64(HighGuid::LFGObject) << 58)
694 | (uint64(arg1 & 0xF) << 54)
695 | (uint64(arg2 & 0xF) << 50)
696 | (uint64(arg3 & 0xF) << 46)
697 | (uint64(arg4 & 0xFF) << 38)
698 | (uint64(arg5 ? 1 : 0) << 37)
699 | (uint64(arg6 & 0x3) << 35)),
700 counter);
701}
+ Here is the caller graph for this function:

◆ CreateLMMLobby()

ObjectGuid ObjectGuidFactory::CreateLMMLobby ( uint32  realmId,
uint32  arg2,
uint8  arg3,
uint8  arg4,
uint64  counter 
)
static

Definition at line 744 of file ObjectGuid.cpp.

745{
746 return ObjectGuid(uint64((uint64(HighGuid::LMMLobby) << 58)
747 | (uint64(GetRealmIdForObjectGuid(realmId)) << 42)
748 | (uint64(arg2 & 0xFFFFFFFF) << 26)
749 | (uint64(arg3 & 0xFF) << 18)
750 | (uint64(arg4 & 0xFF) << 10)),
751 counter);
752}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateMobileSession()

ObjectGuid ObjectGuidFactory::CreateMobileSession ( uint32  realmId,
uint16  arg1,
uint64  counter 
)
static

Definition at line 674 of file ObjectGuid.cpp.

675{
676 return ObjectGuid(uint64((uint64(HighGuid::MobileSession) << 58)
677 | (uint64(GetRealmIdForObjectGuid(realmId)) << 42)
678 | (uint64(arg1 & 0x1FF) << 33)),
679 counter);
680}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateNull()

ObjectGuid ObjectGuidFactory::CreateNull ( )
static

Definition at line 598 of file ObjectGuid.cpp.

599{
600 return ObjectGuid();
601}
+ Here is the caller graph for this function:

◆ CreatePlayer()

ObjectGuid ObjectGuidFactory::CreatePlayer ( uint32  realmId,
uint64  dbId 
)
static

Definition at line 609 of file ObjectGuid.cpp.

610{
611 return ObjectGuid(uint64((uint64(HighGuid::Player) << 58)
612 | (uint64(GetRealmIdForObjectGuid(realmId)) << 42)),
613 dbId);
614}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateToolsClient()

ObjectGuid ObjectGuidFactory::CreateToolsClient ( uint16  mapId,
uint32  serverId,
uint64  counter 
)
static

Definition at line 727 of file ObjectGuid.cpp.

728{
729 return ObjectGuid(uint64((uint64(HighGuid::ToolsClient) << 58)
730 | uint64(mapId)),
731 uint64((uint64(serverId & 0xFFFFFF) << 40)
732 | (counter & UI64LIT(0xFFFFFFFFFF))));
733}
+ Here is the caller graph for this function:

◆ CreateTransport()

ObjectGuid ObjectGuidFactory::CreateTransport ( HighGuid  type,
uint32  counter 
)
static

Definition at line 634 of file ObjectGuid.cpp.

635{
636 return ObjectGuid(uint64((uint64(type) << 58)
637 | (uint64(counter) << 38)),
638 UI64LIT(0));
639}
+ Here is the caller graph for this function:

◆ CreateUniq()

ObjectGuid ObjectGuidFactory::CreateUniq ( uint64  id)
static

Definition at line 603 of file ObjectGuid.cpp.

604{
605 return ObjectGuid(uint64(uint64(HighGuid::Uniq) << 58),
606 id);
607}
+ Here is the caller graph for this function:

◆ CreateWebObj()

ObjectGuid ObjectGuidFactory::CreateWebObj ( uint32  realmId,
uint8  arg1,
uint8  arg2,
uint64  counter 
)
static

Definition at line 682 of file ObjectGuid.cpp.

683{
684 return ObjectGuid(uint64((uint64(HighGuid::WebObj) << 58)
685 | (uint64(GetRealmIdForObjectGuid(realmId) & 0x1FFF) << 42)
686 | (uint64(arg1 & 0x1F) << 37)
687 | (uint64(arg2 & 0x3) << 35)),
688 counter);
689}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateWorldLayer()

ObjectGuid ObjectGuidFactory::CreateWorldLayer ( uint32  arg1,
uint16  arg2,
uint8  arg3,
uint32  arg4 
)
static

Definition at line 735 of file ObjectGuid.cpp.

736{
737 return ObjectGuid(uint64((uint64(HighGuid::WorldLayer) << 58)
738 | (uint64(arg1 & 0xFFFFFFFF) << 10)
739 | (uint64(arg2 & 0x1FF))),
740 uint64((uint64(arg3 & 0xFF) << 24)
741 | uint64(arg4 & 0x7FFFFF)));
742}
+ Here is the caller graph for this function:

◆ CreateWorldObject()

ObjectGuid ObjectGuidFactory::CreateWorldObject ( HighGuid  type,
uint8  subType,
uint32  realmId,
uint16  mapId,
uint32  serverId,
uint32  entry,
uint64  counter 
)
static

Definition at line 623 of file ObjectGuid.cpp.

624{
625 return ObjectGuid(uint64((uint64(type) << 58)
626 | (uint64(GetRealmIdForObjectGuid(realmId) & 0x1FFF) << 42)
627 | (uint64(mapId & 0x1FFF) << 29)
628 | (uint64(entry & 0x7FFFFF) << 6)
629 | (uint64(subType) & 0x3F)),
630 uint64((uint64(serverId & 0xFFFFFF) << 40)
631 | (counter & UI64LIT(0xFFFFFFFFFF))));
632}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: