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)
 

Detailed Description

Definition at line 234 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 626 of file ObjectGuid.cpp.

627{
628 return ObjectGuid(uint64((uint64(HighGuid::ChatChannel) << 58)
629 | (uint64(GetRealmIdForObjectGuid(realmId) & 0x1FFF) << 42)
630 | (uint64(builtIn) << 25)
631 | (uint64(trade) << 24)
632 | (uint64(zoneId & 0x3FFF) << 10)
633 | (uint64(factionGroupMask & 0x3F) << 4)),
634 counter);
635}
uint64_t uint64
Definition: Define.h:142
static uint32 GetRealmIdForObjectGuid(uint32 realmId)
Definition: ObjectGuid.cpp:567
+ 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 687 of file ObjectGuid.cpp.

688{
689 return ObjectGuid(uint64((uint64(type) << 58)
690 | (uint64(GetRealmIdForObjectGuid(realmId) & 0x1FFF) << 42)
691 | (uint64(arg1 & 0xFFFFFFFF) << 10)),
692 counter);
693}
+ 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 618 of file ObjectGuid.cpp.

619{
620 return ObjectGuid(uint64((uint64(HighGuid::ClientActor) << 58)
621 | (uint64(ownerType & 0x1FFF) << 42)
622 | (uint64(ownerId & 0xFFFFFF) << 26)),
623 uint64(counter));
624}
+ Here is the caller graph for this function:

◆ CreateClubFinder()

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

Definition at line 695 of file ObjectGuid.cpp.

696{
697 return ObjectGuid(uint64((uint64(HighGuid::ClubFinder) << 58)
698 | (type == 1 ? (uint64(GetRealmIdForObjectGuid(realmId) & 0x1FFF) << 42) : UI64LIT(0))
699 | (uint64(type & 0xFF) << 33)
700 | (uint64(clubFinderId & 0xFFFFFFFF))),
701 dbId);
702}
#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 637 of file ObjectGuid.cpp.

638{
639 return ObjectGuid(uint64((uint64(type) << 58)
640 | (uint64(dbIdHigh & UI64LIT(0x3FFFFFFFFFFFFFF)))),
641 dbId);
642}
+ Here is the caller graph for this function:

◆ CreateGuild()

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

Definition at line 644 of file ObjectGuid.cpp.

645{
646 return ObjectGuid(uint64((uint64(type) << 58)
647 | (uint64(GetRealmIdForObjectGuid(realmId)) << 42)),
648 dbId);
649}
+ 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 593 of file ObjectGuid.cpp.

594{
595 return ObjectGuid(uint64((uint64(HighGuid::Item) << 58)
596 | (uint64(GetRealmIdForObjectGuid(realmId)) << 42)),
597 dbId);
598}
+ 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 680 of file ObjectGuid.cpp.

681{
682 return ObjectGuid(uint64((uint64(HighGuid::LFGObject) << 58)
683 | (uint64(arg1 & 0xF) << 54)),
684 counter);
685}
+ 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 668 of file ObjectGuid.cpp.

669{
670 return ObjectGuid(uint64((uint64(HighGuid::LFGObject) << 58)
671 | (uint64(arg1 & 0xF) << 54)
672 | (uint64(arg2 & 0xF) << 50)
673 | (uint64(arg3 & 0xF) << 46)
674 | (uint64(arg4 & 0xFF) << 38)
675 | (uint64(arg5 ? 1 : 0) << 37)
676 | (uint64(arg6 & 0x3) << 35)),
677 counter);
678}
+ Here is the caller graph for this function:

◆ CreateMobileSession()

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

Definition at line 651 of file ObjectGuid.cpp.

652{
653 return ObjectGuid(uint64((uint64(HighGuid::MobileSession) << 58)
654 | (uint64(GetRealmIdForObjectGuid(realmId)) << 42)
655 | (uint64(arg1 & 0x1FF) << 33)),
656 counter);
657}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateNull()

ObjectGuid ObjectGuidFactory::CreateNull ( )
static

Definition at line 575 of file ObjectGuid.cpp.

576{
577 return ObjectGuid();
578}
+ Here is the caller graph for this function:

◆ CreatePlayer()

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

Definition at line 586 of file ObjectGuid.cpp.

587{
588 return ObjectGuid(uint64((uint64(HighGuid::Player) << 58)
589 | (uint64(GetRealmIdForObjectGuid(realmId)) << 42)),
590 dbId);
591}
+ 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 704 of file ObjectGuid.cpp.

705{
706 return ObjectGuid(uint64((uint64(HighGuid::ToolsClient) << 58)
707 | uint64(mapId)),
708 uint64((uint64(serverId & 0xFFFFFF) << 40)
709 | (counter & UI64LIT(0xFFFFFFFFFF))));
710}
+ Here is the caller graph for this function:

◆ CreateTransport()

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

Definition at line 611 of file ObjectGuid.cpp.

612{
613 return ObjectGuid(uint64((uint64(type) << 58)
614 | (uint64(counter) << 38)),
615 UI64LIT(0));
616}
+ Here is the caller graph for this function:

◆ CreateUniq()

ObjectGuid ObjectGuidFactory::CreateUniq ( uint64  id)
static

Definition at line 580 of file ObjectGuid.cpp.

581{
582 return ObjectGuid(uint64(uint64(HighGuid::Uniq) << 58),
583 id);
584}
+ Here is the caller graph for this function:

◆ CreateWebObj()

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

Definition at line 659 of file ObjectGuid.cpp.

660{
661 return ObjectGuid(uint64((uint64(HighGuid::WebObj) << 58)
662 | (uint64(GetRealmIdForObjectGuid(realmId) & 0x1FFF) << 42)
663 | (uint64(arg1 & 0x1F) << 37)
664 | (uint64(arg2 & 0x3) << 35)),
665 counter);
666}
+ 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 712 of file ObjectGuid.cpp.

713{
714 return ObjectGuid(uint64((uint64(HighGuid::WorldLayer) << 58)
715 | (uint64(arg1 & 0xFFFFFFFF) << 10)
716 | (uint64(arg2 & 0x1FF))),
717 uint64((uint64(arg3 & 0xFF) << 24)
718 | uint64(arg4 & 0x7FFFFF)));
719}
+ 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 600 of file ObjectGuid.cpp.

601{
602 return ObjectGuid(uint64((uint64(type) << 58)
603 | (uint64(GetRealmIdForObjectGuid(realmId) & 0x1FFF) << 42)
604 | (uint64(mapId & 0x1FFF) << 29)
605 | (uint64(entry & 0x7FFFFF) << 6)
606 | (uint64(subType) & 0x3F)),
607 uint64((uint64(serverId & 0xFFFFFF) << 40)
608 | (counter & UI64LIT(0xFFFFFFFFFF))));
609}
+ 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: