AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ObjectGuid Class Reference

#include "ObjectGuid.h"

Public Types

typedef uint32 LowType
 

Public Member Functions

 ObjectGuid ()=default
 
 ObjectGuid (uint64 guid)
 
 ObjectGuid (HighGuid hi, uint32 entry, LowType counter)
 
 ObjectGuid (HighGuid hi, LowType counter)
 
PackedGuidReader ReadAsPacked ()
 
void Set (uint64 guid)
 
void Clear ()
 
PackedGuid WriteAsPacked () const
 
uint64 GetRawValue () const
 
HighGuid GetHigh () const
 
uint32 GetEntry () const
 
LowType GetCounter () const
 
ObjectGuid::LowType GetMaxCounter () const
 
bool IsEmpty () const
 
bool IsCreature () const
 
bool IsPet () const
 
bool IsVehicle () const
 
bool IsCreatureOrPet () const
 
bool IsCreatureOrVehicle () const
 
bool IsAnyTypeCreature () const
 
bool IsPlayer () const
 
bool IsUnit () const
 
bool IsItem () const
 
bool IsGameObject () const
 
bool IsDynamicObject () const
 
bool IsCorpse () const
 
bool IsTransport () const
 
bool IsMOTransport () const
 
bool IsAnyTypeGameObject () const
 
bool IsInstance () const
 
bool IsGroup () const
 
TypeID GetTypeId () const
 
 operator bool () const
 
bool operator! () const
 
bool operator== (ObjectGuid const &guid) const
 
bool operator!= (ObjectGuid const &guid) const
 
bool operator< (ObjectGuid const &guid) const
 
bool operator<= (ObjectGuid const &guid) const
 
char const * GetTypeName () const
 
std::string ToString () const
 

Static Public Member Functions

template<HighGuid type>
static std::enable_if< ObjectGuidTraits< type >::Global, ObjectGuid >::type Create (LowType counter)
 
template<HighGuid type>
static std::enable_if< ObjectGuidTraits< type >::MapSpecific, ObjectGuid >::type Create (uint32 entry, LowType counter)
 
static LowType GetMaxCounter (HighGuid high)
 
static TypeID GetTypeId (HighGuid high)
 
static char const * GetTypeName (HighGuid high)
 

Static Public Attributes

static ObjectGuid const Empty = ObjectGuid()
 

Private Member Functions

bool HasEntry () const
 
 ObjectGuid (uint32 const &)=delete
 
 ObjectGuid (HighGuid, uint32, uint64 counter)=delete
 
 ObjectGuid (HighGuid, uint64 counter)=delete
 
 operator int64 () const =delete
 

Static Private Member Functions

static bool HasEntry (HighGuid high)
 
static ObjectGuid Global (HighGuid type, LowType counter)
 
static ObjectGuid MapSpecific (HighGuid type, uint32 entry, LowType counter)
 

Private Attributes

uint64 _guid {0}
 

Detailed Description

Member Typedef Documentation

◆ LowType

Constructor & Destructor Documentation

◆ ObjectGuid() [1/7]

ObjectGuid::ObjectGuid ( )
default

Referenced by Global(), and MapSpecific().

◆ ObjectGuid() [2/7]

ObjectGuid::ObjectGuid ( uint64  guid)
inlineexplicit
133: _guid(guid) { }
uint64 _guid
Definition: ObjectGuid.h:251

◆ ObjectGuid() [3/7]

ObjectGuid::ObjectGuid ( HighGuid  hi,
uint32  entry,
LowType  counter 
)
inline
134: _guid(counter ? uint64(counter) | (uint64(entry) << 24) | (uint64(hi) << 48) : 0) { }
std::uint64_t uint64
Definition: Define.h:107

◆ ObjectGuid() [4/7]

ObjectGuid::ObjectGuid ( HighGuid  hi,
LowType  counter 
)
inline
135: _guid(counter ? uint64(counter) | (uint64(hi) << 48) : 0) { }

◆ ObjectGuid() [5/7]

ObjectGuid::ObjectGuid ( uint32 const &  )
explicitprivatedelete

◆ ObjectGuid() [6/7]

ObjectGuid::ObjectGuid ( HighGuid  ,
uint32  ,
uint64  counter 
)
privatedelete

◆ ObjectGuid() [7/7]

ObjectGuid::ObjectGuid ( HighGuid  ,
uint64  counter 
)
privatedelete

Member Function Documentation

◆ Clear()

void ObjectGuid::Clear ( )
inline
140{ _guid = 0; }

References _guid.

Referenced by boss_ahune::boss_ahune(), boss_festergut::boss_festergutAI::boss_festergutAI(), boss_freya_nature_bomb::boss_freya_nature_bombAI::boss_freya_nature_bombAI(), boss_grand_champion::boss_grand_championAI::boss_grand_championAI(), boss_svala::boss_svalaAI::boss_svalaAI(), boss_yoggsaron_constrictor_tentacle::boss_yoggsaron_constrictor_tentacleAI::boss_yoggsaron_constrictor_tentacleAI(), lfg::LFGQueue::CheckCompatibility(), npc_cork_gizelton::npc_cork_gizeltonAI::CheckPlayer(), Loot::clear(), PassengerController::ClearSlot(), Group::Create(), boss_taldaram::DamageTaken(), npc_death_knight_initiate::npc_death_knight_initiateAI::DamageTaken(), BfCapturePoint::DelCapturePoint(), boss_zuljin::boss_zuljinAI::DespawnAdds(), boss_netherspite::DestroyPortals(), npc_icc_ice_sphere::npc_icc_ice_sphereAI::DoAction(), boss_mandokir::boss_mandokirAI::DoAction(), instance_obsidian_sanctum::instance_obsidian_sanctum_InstanceMapScript::DoAction(), boss_paletress::boss_paletressAI::DoAction(), boss_grand_champion::boss_grand_championAI::DoAction(), npc_anubarak_spike::npc_anubarak_spikeAI::DoAction(), boss_razorgore::boss_razorgoreAI::DoChangePhase(), WorldSession::DoLootRelease(), Spell::EffectSummonChangeItem(), Spell::EffectSummonObject(), GossipMenu::GossipMenu(), spell_brewfest_fill_keg::HandleAfterHit(), spell_brewfest_unfill_keg::HandleAfterHit(), OPvPCapturePointZM_GraveYard::HandleDropFlag(), WorldSession::HandleEquipmentSetSave(), boss_akilzon::boss_akilzonAI::HandleStormSequence(), BattlegroundEY::Init(), BattlegroundWS::Init(), boss_vaelastrasz::boss_vaelAI::Initialize(), npc_rabid_thistle_bear::npc_rabid_thistle_bearAI::Initialize(), npc_beryl_sorcerer::npc_beryl_sorcererAI::Initialize(), npc_hidden_cultist::npc_hidden_cultistAI::Initialize(), npc_thassarian2::npc_thassarian2AI::Initialize(), npc_deaths_door_fell_cannon_target_bunny::npc_deaths_door_fell_cannon_target_bunnyAI::Initialize(), go_gilded_brazier::go_gilded_brazierAI::Initialize(), npc_lord_arete::npc_lord_areteAI::InitializeAI(), npc_pet_mage_mirror_image::InitializeAI(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::InstanceCleanup(), instance_violet_hold::instance_violet_hold_InstanceMapScript::InstanceCleanup(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::InstanceCleanup(), npc_pet_gen_fetch_ball::IsSummonedBy(), boss_terestian_illhoof::JustDied(), npc_clintar_spirit::npc_clintar_spiritAI::JustDied(), npc_ice_tomb::npc_ice_tombAI::JustDied(), boss_bigbadwolf::JustEngagedWith(), SmartAI::JustRespawned(), boss_archimonde::boss_archimondeAI::JustSummoned(), boss_taldaram::KilledUnit(), lfg::LFGMgr::LeaveAllLfgQueues(), spell_dk_scourge_strike::Load(), spell_rog_blade_flurry::Load(), npc_air_force_bots::npc_air_force_botsAI::MoveInLineOfSight(), boss_grand_champion::boss_grand_championAI::MovementInform(), npc_valkyr_shadowguard::npc_valkyr_shadowguardAI::MovementInform(), npc_akilzon_eagle::npc_akilzon_eagleAI::MovementInform(), npc_pet_mage_mirror_image::MySelectNextTarget(), npc_air_force_bots::npc_air_force_botsAI::npc_air_force_botsAI(), npc_ancient_wisp::npc_ancient_wispAI::npc_ancient_wispAI(), npc_archmage_landalock::npc_archmage_landalockAI::npc_archmage_landalockAI(), npc_balance_of_light_and_shadow::npc_balance_of_light_and_shadowAI::npc_balance_of_light_and_shadowAI(), npc_clintar_spirit::npc_clintar_spiritAI::npc_clintar_spiritAI(), npc_drakuru_shackles::npc_drakuru_shacklesAI::npc_drakuru_shacklesAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::npc_enslaved_netherwing_drakeAI(), npc_grand_magister_rommath::npc_grand_magister_rommathAI::npc_grand_magister_rommathAI(), npc_hol_monument::npc_hol_monumentAI::npc_hol_monumentAI(), npc_icc_ice_sphere::npc_icc_ice_sphereAI::npc_icc_ice_sphereAI(), npc_midsummer_torch_target::npc_midsummer_torch_target(), npc_oscillating_frequency_scanner_master_bunny::npc_oscillating_frequency_scanner_master_bunnyAI::npc_oscillating_frequency_scanner_master_bunnyAI(), npc_pet_dk_ebon_gargoyle::npc_pet_dk_ebon_gargoyleAI::npc_pet_dk_ebon_gargoyleAI(), npc_pet_gen_imp_in_a_bottle::npc_pet_gen_imp_in_a_bottle(), npc_pet_gen_plump_turkey::npc_pet_gen_plump_turkey(), npc_pilgrims_bounty_chair::npc_pilgrims_bounty_chair(), npc_pos_leader_second::npc_pos_leader_secondAI::npc_pos_leader_secondAI(), npc_snobold_vassal::npc_snobold_vassalAI::npc_snobold_vassalAI(), npc_torturer_lecraft::npc_torturer_lecraftAI::npc_torturer_lecraftAI(), npc_ulduar_storm_tempered_keeper::npc_ulduar_storm_tempered_keeperAI::npc_ulduar_storm_tempered_keeperAI(), npc_vengeful_shade::npc_vengeful_shadeAI::npc_vengeful_shadeAI(), npc_vh_void_sentry::npc_vh_void_sentryAI::npc_vh_void_sentryAI(), BattlefieldWG::OnBattleEnd(), npc_chesspiece::OnCharmed(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureRemove(), instance_ulduar::instance_ulduar_InstanceMapScript::OnCreatureRemove(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectRemove(), SmartScript::OnReset(), OPvPCapturePointZM_GraveYard::OPvPCapturePointZM_GraveYard(), boss_kologarn::boss_kologarnAI::PassengerBoarded(), spell_midsummer_torch_quest::PrepareAuraScript(), DynamicObject::RemoveCasterViewpoint(), Unit::RemoveGameObject(), SpellCastTargets::RemoveObjectTarget(), MotionTransport::RemovePassenger(), StaticTransport::RemovePassenger(), npc_cork_gizelton::npc_cork_gizeltonAI::RemoveSummons(), boss_sartharion_dragonAI::RemoveTwilightPortal(), MovementInfo::TransportInfo::Reset(), PassengerInfo::Reset(), BoardCell::Reset(), npc_water_elemental::npc_water_elementalAI::Reset(), boss_rend_blackhand::boss_rend_blackhandAI::Reset(), boss_razorgore::boss_razorgoreAI::Reset(), npc_kilrek::Reset(), npc_demon_chain::Reset(), boss_terestian_illhoof::Reset(), boss_bigbadwolf::Reset(), npc_barnes::npc_barnesAI::Reset(), npc_image_of_medivh::npc_image_of_medivhAI::Reset(), boss_selin_fireheart::boss_selin_fireheartAI::Reset(), npc_death_knight_initiate::npc_death_knight_initiateAI::Reset(), npc_unworthy_initiate::npc_unworthy_initiateAI::Reset(), npc_scarlet_miner::npc_scarlet_minerAI::Reset(), npc_crusade_persuaded::npc_crusade_persuadedAI::Reset(), npc_koltira_deathweaver::npc_koltira_deathweaverAI::Reset(), npc_a_special_surprise::npc_a_special_surpriseAI::Reset(), boss_baroness_anastari::boss_baroness_anastariAI::Reset(), npc_eris_hevenfire::npc_eris_hevenfireAI::Reset(), npc_bh_thalorien_dawnseeker::npc_bh_thalorien_dawnseekerAI::Reset(), pyrewood_ambush::pyrewood_ambushAI::Reset(), npc_lord_gregor_lescovar::npc_lord_gregor_lescovarAI::Reset(), npc_calvin_montague::npc_calvin_montagueAI::Reset(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::Reset(), npc_varian_wrynn::npc_varian_wrynnAI::Reset(), npc_thrall_bfu::npc_thrall_bfuAI::Reset(), boss_akilzon::boss_akilzonAI::Reset(), npc_akilzon_eagle::npc_akilzon_eagleAI::Reset(), boss_halazzi::boss_halazziAI::Reset(), boss_zuljin::boss_zuljinAI::Reset(), npc_harrison_jones::npc_harrison_jonesAI::Reset(), boss_grilek::boss_grilekAI::Reset(), boss_mandokir::boss_mandokirAI::Reset(), npc_ohgan::npc_ohganAI::Reset(), npc_chained_spirit::Reset(), npc_dark_iron_guzzler::Reset(), npc_winterfin_playmate::Reset(), npc_snowfall_glade_playmate::Reset(), npc_the_biggest_tree::Reset(), npc_high_oracle_soo_roo::Reset(), npc_elder_kekek::Reset(), npc_the_etymidian::Reset(), npc_alexstraza_the_lifebinder::Reset(), npc_costumed_orphan_matron::Reset(), boss_headless_horseman::Reset(), npc_doomfire_targetting::npc_doomfire_targettingAI::Reset(), boss_archimonde::boss_archimondeAI::Reset(), hyjalAI::Reset(), npc_rizzle_sprysprocket::npc_rizzle_sprysprocketAI::Reset(), npc_draenei_survivor::npc_draenei_survivorAI::Reset(), npc_stillpine_capitive::npc_stillpine_capitiveAI::Reset(), npc_clintar_spirit::npc_clintar_spiritAI::Reset(), npc_shenthul::npc_shenthulAI::Reset(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::Reset(), npc_qiraj_war_spawn::npc_qiraj_war_spawnAI::Reset(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::Reset(), npc_tooga::npc_toogaAI::Reset(), npc_twiggy_flathead::npc_twiggy_flatheadAI::Reset(), npc_ringo::npc_ringoAI::Reset(), boss_elder_nadox::Reset(), boss_jedoga_shadowseeker::Reset(), boss_taldaram::Reset(), boss_sartharion_dragonAI::Reset(), boss_paletress::boss_paletressAI::Reset(), boss_gormok::boss_gormokAI::Reset(), boss_novos::boss_novosAI::Reset(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::Reset(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::Reset(), npc_highlord_tirion_fordring_lh::npc_highlord_tirion_fordringAI::Reset(), boss_sapphiron::boss_sapphironAI::Reset(), npc_stormforged_lieutenant::npc_stormforged_lieutenantAI::Reset(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::Reset(), boss_freya::boss_freyaAI::Reset(), boss_razorscale::boss_razorscaleAI::Reset(), npc_ulduar_expedition_engineer::npc_ulduar_expedition_engineerAI::Reset(), boss_ingvar_the_plunderer::boss_ingvar_the_plundererAI::Reset(), boss_palehoof::boss_palehoofAI::Reset(), npc_sinkhole_kill_credit::npc_sinkhole_kill_creditAI::Reset(), npc_bloodmage_laurith::npc_bloodmage_laurithAI::Reset(), npc_warmage_violetstand::Reset(), npc_shandy_dalaran::npc_shandy_dalaranAI::Reset(), npc_conversing_with_the_depths_trigger::npc_conversing_with_the_depths_triggerAI::Reset(), npc_q24545_lich_king::npc_q24545_lich_kingAI::Reset(), npc_torturer_lecraft::npc_torturer_lecraftAI::Reset(), npc_emily::npc_emilyAI::Reset(), npc_venture_co_straggler::npc_venture_co_stragglerAI::Reset(), npc_still_at_it_trigger::npc_still_at_it_triggerAI::Reset(), npc_jungle_punch_target::npc_jungle_punch_targetAI::Reset(), npc_wild_wyrm::npc_wild_wyrmAI::Reset(), npc_overlord_drakuru_betrayal::npc_overlord_drakuru_betrayalAI::Reset(), boss_shirrak_the_dead_watcher::Reset(), boss_essence_of_anger::boss_essence_of_angerAI::Reset(), boss_omor_the_unscarred::Reset(), npc_fel_guard_hound::npc_fel_guard_houndAI::Reset(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Reset(), npc_phase_hunter::npc_phase_hunterAI::Reset(), npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::Reset(), npc_dragonmaw_peon::npc_dragonmaw_peonAI::Reset(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::Reset(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::Reset(), npc_illidari_spawn::npc_illidari_spawnAI::Reset(), guard_shattrath_scryer::guard_shattrath_scryerAI::Reset(), guard_shattrath_aldor::guard_shattrath_aldorAI::Reset(), npc_doctor::npc_doctorAI::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), npc_garments_of_quests::npc_garments_of_questsAI::Reset(), npc_spring_rabbit::npc_spring_rabbitAI::Reset(), SmartScript::ResetBaseObject(), npc_battle_at_valhalas::npc_battle_at_valhalasAI::ResetData(), PassengerController::ResetSlots(), NPCStaveQuestAI::ResetState(), RevivePlayer(), Player::RewardHonor(), boss_taldaram::ScheduleCombatEvents(), boss_selin_fireheart::boss_selin_fireheartAI::SelectNearestCrystal(), npc_putricide_oozeAI::SelectNewTarget(), npc_icc_ice_sphere::npc_icc_ice_sphereAI::SelectNewTarget(), npc_anubarak_spike::npc_anubarak_spikeAI::SelectNewTarget(), OPvPCapturePointZM_GraveYard::SetBeaconState(), npc_ulduar_expedition_engineer::npc_ulduar_expedition_engineerAI::SetData(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::SetData(), instance_ulduar::instance_ulduar_InstanceMapScript::SetData(), instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::SetData(), npc_q24545_lich_king::npc_q24545_lich_kingAI::SetData(), GameObject::SetLootRecipient(), Creature::SetLootRecipient(), GameObject::SetLootState(), GmTicket::SetUnassigned(), BattlefieldWG::SetupBattlefield(), SmartAI::StopFollow(), npc_cork_gizelton::npc_cork_gizeltonAI::SummonedCreatureDespawn(), npc_cork_gizelton::npc_cork_gizeltonAI::SummonedCreatureDies(), Spell::TakeCastItem(), Spell::TakeReagents(), npc_drakuru_shackles::npc_drakuru_shacklesAI::UnlockRageclaw(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::Update(), TotemAI::UpdateAI(), boss_zuljin::boss_zuljinAI::UpdateAI(), boss_grilek::boss_grilekAI::UpdateAI(), npc_doomfire_targetting::npc_doomfire_targettingAI::UpdateAI(), hyjalAI::UpdateAI(), npc_clintar_spirit::npc_clintar_spiritAI::UpdateAI(), boss_grand_champion::boss_grand_championAI::UpdateAI(), npc_snobold_vassal::npc_snobold_vassalAI::UpdateAI(), boss_gormok::boss_gormokAI::UpdateAI(), npc_pos_leader_second::npc_pos_leader_secondAI::UpdateAI(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI(), boss_sapphiron::boss_sapphironAI::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_ulduar_expedition_engineer::npc_ulduar_expedition_engineerAI::UpdateAI(), boss_ingvar_the_plunderer::boss_ingvar_the_plundererAI::UpdateAI(), npc_bloodmage_laurith::npc_bloodmage_laurithAI::UpdateAI(), npc_overlord_drakuru_betrayal::npc_overlord_drakuru_betrayalAI::UpdateAI(), guard_shattrath_scryer::guard_shattrath_scryerAI::UpdateAI(), guard_shattrath_aldor::guard_shattrath_aldorAI::UpdateAI(), boss_netherspite::UpdatePortals(), lfg::LFGMgr::UpdateRaidBrowser(), and npc_cork_gizelton::npc_cork_gizeltonAI::WaypointReached().

◆ Create() [1/2]

template<HighGuid type>
static std::enable_if< ObjectGuidTraits< type >::Global, ObjectGuid >::type ObjectGuid::Create ( LowType  counter)
inlinestatic
127{ return Global(type, counter); }
static ObjectGuid Global(HighGuid type, LowType counter)
Definition: ObjectGuid.cpp:59

References Global().

◆ Create() [2/2]

template<HighGuid type>
static std::enable_if< ObjectGuidTraits< type >::MapSpecific, ObjectGuid >::type ObjectGuid::Create ( uint32  entry,
LowType  counter 
)
inlinestatic
130{ return MapSpecific(type, entry, counter); }
static ObjectGuid MapSpecific(HighGuid type, uint32 entry, LowType counter)
Definition: ObjectGuid.cpp:64

References MapSpecific().

◆ GetCounter()

LowType ObjectGuid::GetCounter ( ) const
inline
148 {
149 return HasEntry()
150 ? LowType(_guid & UI64LIT(0x0000000000FFFFFF))
151 : LowType(_guid & UI64LIT(0x00000000FFFFFFFF));
152 }
#define UI64LIT(N)
Definition: Define.h:98
bool HasEntry() const
Definition: ObjectGuid.h:239
uint32 LowType
Definition: ObjectGuid.h:124

References _guid, HasEntry(), and UI64LIT.

Referenced by Player::_LoadHomeBind(), Player::_LoadItem(), Guild::_LogBankEvent(), Guild::_LogEvent(), Player::_SaveCharacter(), Player::_SaveEquipmentSets(), Player::_SaveInventory(), Player::_SaveQuestStatus(), Player::_SaveSpellCooldowns(), lfg::LFGMgr::_SaveToDB(), Guild::_SetLeaderGUID(), Channel::AddChannelBanToDB(), GroupMgr::AddGroup(), Guild::AddMember(), ArenaTeam::AddMember(), Group::AddMember(), Player::AddMItem(), LootItemStorage::AddNewStoredLoot(), Arena::AddPlayer(), BattlegroundAB::AddPlayer(), BattlegroundAV::AddPlayer(), BattlegroundEY::AddPlayer(), BattlegroundIC::AddPlayer(), BattlegroundSA::AddPlayer(), BattlegroundWS::AddPlayer(), PlayerSocial::AddToSocialList(), BanMgr::BanCharacter(), OPvPCapturePointZM_GraveYard::CanTalkTo(), Group::ChangeLeader(), Guild::ChangeMemberRank(), Group::ChangeMembersGroup(), CharacterActionIpLogger::CharacterIPLogAction(), instance_obsidian_sanctum::instance_obsidian_sanctum_InstanceMapScript::CheckAchievementCriteriaMeet(), Map::ConvertCorpseToBones(), ArenaTeam::Create(), Group::Create(), Guild::Create(), Player::Customize(), AccountMgr::DeleteAccount(), Corpse::DeleteFromDB(), MailDraft::deleteIncludedItems(), CharacterDeleteActionIpLogger::DeleteIPLogAction(), Guild::DeleteMember(), ArenaTeam::DelMember(), Player::DestroyItem(), BGQueueRemoveEvent::Execute(), Player::GetArenaTeamIdFromDB(), WorldSession::GetGuidLow(), Map::GetLinkedRespawnTime(), Guild::GetMember(), Player::GetZoneIdFromDB(), Group::GroupLoot(), WorldSession::HandleAcceptTradeOpcode(), arena_commandscript::HandleArenaCreateCommand(), WorldSession::HandleAuctionPlaceBid(), ban_commandscript::HandleBanInfoCharacterCommand(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBuybackItem(), cache_commandscript::HandleCacheInfoCommand(), WorldSession::HandleCalendarEventInvite(), character_commandscript::HandleCharacterEraseCommand(), character_commandscript::HandleCharacterLevel(), WorldSession::HandleCharDeleteOpcode(), debug_commandscript::HandleDebugGetItemStateCommand(), debug_commandscript::HandleDebugGetLootRecipientCommand(), debug_commandscript::HandleDebugGetValueCommand(), debug_commandscript::HandleDebugMod32ValueCommand(), debug_commandscript::HandleDebugSetValueCommand(), debug_commandscript::HandleDebugUpdateCommand(), deserter_commandscript::HandleDeserterAdd(), gobject_commandscript::HandleGameObjectDeleteCommand(), gear_commandscript::HandleGearStatsCommand(), WorldSession::HandleGetMailList(), guild_commandscript::HandleGuildInfoCommand(), item_commandscript::HandleItemRefundCommand(), item_commandscript::HandleItemRestoreCommand(), item_commandscript::HandleItemRestoreListCommand(), WorldSession::HandleMailTakeItem(), Guild::HandleMemberDepositMoney(), modify_commandscript::HandleModifyFactionCommand(), misc_commandscript::HandleMovegensCommand(), npc_commandscript::HandleNpcGuidCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcSetDataCommand(), npc_commandscript::HandleNpcSetLinkCommand(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleOpenWrappedItemCallback(), character_commandscript::HandlePDumpCopyCommand(), character_commandscript::HandlePDumpWriteCommand(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandlePetitionRenameOpcode(), WorldSession::HandlePetitionShowSignOpcode(), WorldSession::HandlePetitionSignOpcode(), WorldSession::HandlePetRename(), WorldSession::HandlePlayerLoginFromDB(), WorldSession::HandlePlayerLoginOpcode(), WorldSession::HandleQuestLogRemoveQuest(), reset_commandscript::HandleResetAchievementsCommand(), reset_commandscript::HandleResetSpellsCommand(), reset_commandscript::HandleResetTalentsCommand(), PetAI::HandleReturnMovement(), send_commandscript::HandleSendItemsCommand(), WorldSession::HandleSendMail(), send_commandscript::HandleSendMailCommand(), send_commandscript::HandleSendMoneyCommand(), WorldSession::HandleSetPlayerDeclinedNames(), WorldSession::HandleSetSavedInstanceExtend(), WorldSession::HandleStablePet(), WorldSession::HandleStableSwapPet(), WorldSession::HandleTurnInPetitionOpcode(), WorldSession::HandleUnstablePet(), WorldSession::HandleWrapItemOpcode(), LoginQueryHolder::Initialize(), BattlegroundQueue::InviteGroupToBG(), Player::LeaveAllArenaTeams(), lfg::LFGMgr::LeaveLfg(), list_commandscript::ListAurasCommand(), InstanceSaveMgr::LoadCharacterBinds(), Player::LoadFromDB(), GroupMgr::LoadGroups(), Pet::LoadPetFromDB(), WorldSession::LogoutPlayer(), MailReceiver::MailReceiver(), MailSender::MailSender(), lfg::LFGMgr::MakeNewGroup(), PetAI::MovementInform(), npc_spirit_shade::npc_spirit_shadeAI::MovementInform(), Group::NeedBeforeGreed(), Player::OfflineResurrect(), achievement_intense_cold::OnCheck(), OutdoorPvP::OnCreatureCreate(), OutdoorPvP::OnCreatureRemove(), OutdoorPvP::OnGameObjectCreate(), OutdoorPvP::OnGameObjectRemove(), npc_death_knight_initiate::OnGossipHello(), ServerMailReward::OnLogin(), InstanceSaveMgr::PlayerBindToInstance(), InstanceSaveMgr::PlayerUnbindInstance(), WorldSession::recoveryItem(), BanMgr::RemoveBanCharacter(), Channel::RemoveChannelBanFromDB(), LootItemStorage::RemoveEntryFromDB(), CalendarMgr::RemoveEvent(), PlayerSocial::RemoveFromSocialList(), GroupMgr::RemoveGroup(), Group::RemoveMember(), Player::RemovePetitionsAndSigns(), Battleground::RemovePlayerAtLeave(), LootItemStorage::RemoveStoredLoot(), AchievementMgr::Reset(), Pet::SavePetToDB(), Player::SavePositionInDB(), Item::SaveToDB(), ReputationMgr::SaveToDB(), AuctionEntry::SaveToDB(), GmTicket::SaveToDB(), AuctionHouseMgr::SendAuctionCancelledToBidderMail(), AuctionHouseMgr::SendAuctionExpiredMail(), AuctionHouseMgr::SendAuctionOutbiddedMail(), AuctionHouseMgr::SendAuctionSalePendingMail(), AuctionHouseMgr::SendAuctionSuccessfulMail(), AuctionHouseMgr::SendAuctionWonMail(), MailDraft::SendMailTo(), WorldSession::SendPetitionQueryOpcode(), MailDraft::SendReturnToSender(), ObjectMgr::SendServerMail(), ArenaTeam::SetCaptain(), PlayerSocial::SetFriendNote(), Group::SetGroupMemberFlag(), GameObject::SetLootRecipient(), WorldSession::SetPlayer(), npc_death_knight_initiate::npc_death_knight_initiateAI::SpellHit(), Player::StoreNewItem(), ToString(), lfg::LFGMgr::UpdateBoot(), CalendarMgr::UpdateEvent(), CalendarMgr::UpdateInvite(), and Battleground::UpdatePlayerScore().

◆ GetEntry()

◆ GetHigh()

◆ GetMaxCounter() [1/2]

ObjectGuid::LowType ObjectGuid::GetMaxCounter ( ) const
inline
161{ return GetMaxCounter(GetHigh()); }
ObjectGuid::LowType GetMaxCounter() const
Definition: ObjectGuid.h:161
HighGuid GetHigh() const
Definition: ObjectGuid.h:145

References GetHigh(), and GetMaxCounter().

Referenced by ObjectGuidGenerator< high >::Generate(), and GetMaxCounter().

◆ GetMaxCounter() [2/2]

static LowType ObjectGuid::GetMaxCounter ( HighGuid  high)
inlinestatic
155 {
156 return HasEntry(high)
157 ? LowType(0x00FFFFFF)
158 : LowType(0xFFFFFFFF);
159 }

References HasEntry().

◆ GetRawValue()

◆ GetTypeId() [1/2]

TypeID ObjectGuid::GetTypeId ( ) const
inline
203{ return GetTypeId(GetHigh()); }
TypeID GetTypeId() const
Definition: ObjectGuid.h:203

References GetHigh(), and GetTypeId().

Referenced by GetTypeId().

◆ GetTypeId() [2/2]

static TypeID ObjectGuid::GetTypeId ( HighGuid  high)
inlinestatic
183 {
184 switch (high)
185 {
186 case HighGuid::Item: return TYPEID_ITEM;
187 //case HighGuid::Container: return TYPEID_CONTAINER; HighGuid::Container == HighGuid::Item currently
188 case HighGuid::Unit: return TYPEID_UNIT;
189 case HighGuid::Pet: return TYPEID_UNIT;
190 case HighGuid::Player: return TYPEID_PLAYER;
191 case HighGuid::GameObject: return TYPEID_GAMEOBJECT;
192 case HighGuid::DynamicObject: return TYPEID_DYNAMICOBJECT;
193 case HighGuid::Corpse: return TYPEID_CORPSE;
194 case HighGuid::Mo_Transport: return TYPEID_GAMEOBJECT;
195 case HighGuid::Vehicle: return TYPEID_UNIT;
196 // unknown
197 case HighGuid::Instance:
198 case HighGuid::Group:
199 default: return TYPEID_OBJECT;
200 }
201 }
@ TYPEID_OBJECT
Definition: ObjectGuid.h:34
@ TYPEID_DYNAMICOBJECT
Definition: ObjectGuid.h:40
@ TYPEID_GAMEOBJECT
Definition: ObjectGuid.h:39
@ TYPEID_UNIT
Definition: ObjectGuid.h:37
@ TYPEID_CORPSE
Definition: ObjectGuid.h:41
@ TYPEID_ITEM
Definition: ObjectGuid.h:35
@ TYPEID_PLAYER
Definition: ObjectGuid.h:38

References TYPEID_CORPSE, TYPEID_DYNAMICOBJECT, TYPEID_GAMEOBJECT, TYPEID_ITEM, TYPEID_OBJECT, TYPEID_PLAYER, and TYPEID_UNIT.

Referenced by Guardian::InitStats(), Guardian::InitSummon(), and PlayerMenu::SendQuestGiverQuestList().

◆ GetTypeName() [1/2]

char const * ObjectGuid::GetTypeName ( ) const
inline
213{ return !IsEmpty() ? GetTypeName(GetHigh()) : "None"; }
bool IsEmpty() const
Definition: ObjectGuid.h:163
char const * GetTypeName() const
Definition: ObjectGuid.h:213

References GetHigh(), GetTypeName(), and IsEmpty().

Referenced by GetTypeName(), ObjectGuidGeneratorBase::HandleCounterOverflow(), and ToString().

◆ GetTypeName() [2/2]

char const * ObjectGuid::GetTypeName ( HighGuid  high)
static
27{
28 switch (high)
29 {
30 case HighGuid::Item: return "Item";
31 case HighGuid::Player: return "Player";
32 case HighGuid::GameObject: return "Gameobject";
33 case HighGuid::Transport: return "Transport";
34 case HighGuid::Unit: return "Creature";
35 case HighGuid::Pet: return "Pet";
36 case HighGuid::Vehicle: return "Vehicle";
37 case HighGuid::DynamicObject: return "DynObject";
38 case HighGuid::Corpse: return "Corpse";
39 case HighGuid::Mo_Transport: return "MoTransport";
40 case HighGuid::Instance: return "InstanceID";
41 case HighGuid::Group: return "Group";
42 default:
43 return "<unknown>";
44 }
45}

◆ Global()

ObjectGuid ObjectGuid::Global ( HighGuid  type,
LowType  counter 
)
staticprivate
60{
61 return ObjectGuid(type, counter);
62}
ObjectGuid()=default

References ObjectGuid().

Referenced by Create().

◆ HasEntry() [1/2]

bool ObjectGuid::HasEntry ( ) const
inlineprivate
239{ return HasEntry(GetHigh()); }

References GetHigh(), and HasEntry().

Referenced by GetCounter(), GetEntry(), GetMaxCounter(), HasEntry(), and ToString().

◆ HasEntry() [2/2]

static bool ObjectGuid::HasEntry ( HighGuid  high)
inlinestaticprivate
218 {
219 switch (high)
220 {
221 case HighGuid::Item:
222 case HighGuid::Player:
223 case HighGuid::DynamicObject:
224 case HighGuid::Corpse:
225 case HighGuid::Mo_Transport:
226 case HighGuid::Instance:
227 case HighGuid::Group:
228 return false;
229 case HighGuid::GameObject:
230 case HighGuid::Transport:
231 case HighGuid::Unit:
232 case HighGuid::Pet:
233 case HighGuid::Vehicle:
234 default:
235 return true;
236 }
237 }

◆ IsAnyTypeCreature()

bool ObjectGuid::IsAnyTypeCreature ( ) const
inline
169{ return IsCreature() || IsPet() || IsVehicle(); }
bool IsVehicle() const
Definition: ObjectGuid.h:166
bool IsCreature() const
Definition: ObjectGuid.h:164
bool IsPet() const
Definition: ObjectGuid.h:165

References IsCreature(), IsPet(), and IsVehicle().

Referenced by WorldSession::CanOpenMailBox(), and IsUnit().

◆ IsAnyTypeGameObject()

bool ObjectGuid::IsAnyTypeGameObject ( ) const
inline
178{ return IsGameObject() || IsTransport() || IsMOTransport(); }
bool IsTransport() const
Definition: ObjectGuid.h:176
bool IsMOTransport() const
Definition: ObjectGuid.h:177
bool IsGameObject() const
Definition: ObjectGuid.h:173

References IsGameObject(), IsMOTransport(), and IsTransport().

◆ IsCorpse()

bool ObjectGuid::IsCorpse ( ) const
inline
175{ return GetHigh() == HighGuid::Corpse; }

References GetHigh().

Referenced by WorldSession::DoLootRelease(), WorldSession::HandleAutostoreLootItemOpcode(), and Player::SendLoot().

◆ IsCreature()

bool ObjectGuid::IsCreature ( ) const
inline
164{ return GetHigh() == HighGuid::Unit; }

References GetHigh().

Referenced by WorldSession::HandleEjectPassenger(), IsAnyTypeCreature(), IsCreatureOrPet(), and IsCreatureOrVehicle().

◆ IsCreatureOrPet()

bool ObjectGuid::IsCreatureOrPet ( ) const
inline
167{ return IsCreature() || IsPet(); }

References IsCreature(), and IsPet().

◆ IsCreatureOrVehicle()

bool ObjectGuid::IsCreatureOrVehicle ( ) const
inline

◆ IsDynamicObject()

bool ObjectGuid::IsDynamicObject ( ) const
inline
174{ return GetHigh() == HighGuid::DynamicObject; }

References GetHigh().

◆ IsEmpty()

◆ IsGameObject()

◆ IsGroup()

◆ IsInstance()

bool ObjectGuid::IsInstance ( ) const
inline
179{ return GetHigh() == HighGuid::Instance; }

References GetHigh().

◆ IsItem()

◆ IsMOTransport()

bool ObjectGuid::IsMOTransport ( ) const
inline
177{ return GetHigh() == HighGuid::Mo_Transport; }

References GetHigh().

Referenced by IsAnyTypeGameObject(), and Player::SetClientControl().

◆ IsPet()

bool ObjectGuid::IsPet ( ) const
inline

◆ IsPlayer()

bool ObjectGuid::IsPlayer ( ) const
inline
170{ return !IsEmpty() && GetHigh() == HighGuid::Player; }

References GetHigh(), and IsEmpty().

Referenced by SmartAI::AssistPlayerInCombatAgainst(), npc_living_mojo::npc_living_mojoAI::AttackStart(), npc_warden_mellichar::npc_warden_mellicharAI::DamageTaken(), boss_thorim_start_npcs::boss_thorim_start_npcsAI::DamageTaken(), Unit::DealDamage(), Spell::DoAllEffectOnTarget(), SmartAI::EnterEvadeMode(), Unit::GetCharmerOrOwnerPlayerOrPlayerItself(), ObjectAccessor::GetUnit(), WorldSession::HandleEjectPassenger(), gobject_commandscript::HandleGameObjectDeleteCommand(), WorldSession::HandleGossipSelectOptionOpcode(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleModInvisibilityDetect(), AuraEffect::HandleModStealth(), AuraEffect::HandleModStealthDetect(), AuraEffect::HandleModStealthLevel(), WorldSession::HandlePlayerLoginOpcode(), WorldSession::HandleRaidTargetUpdateOpcode(), Creature::HasMechanicTemplateImmunity(), Unit::IsCharmedOwnedByPlayerOrPlayer(), Unit::isInAccessiblePlaceFor(), Unit::isPossessedByPlayer(), IsUnit(), Unit::Kill(), KillRewarder::KillRewarder(), list_commandscript::ListAurasCommand(), instance_sunwell_plateau::instance_sunwell_plateau_InstanceMapScript::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), PlayerOrPetCheck::operator()(), Puppet::Puppet(), Unit::SendComboPoints(), ArenaSpectator::SendCommand_Aura(), ArenaSpectator::SendCommand_Cooldown(), ArenaSpectator::SendCommand_GUID(), ArenaSpectator::SendCommand_Spell(), ArenaSpectator::SendCommand_String(), ArenaSpectator::SendCommand_UInt32Value(), Unit::SetOwnerGUID(), Map::SummonCreature(), Acore::MessageDistDeliverer::Visit(), and Acore::MessageDistDelivererToHostile::Visit().

◆ IsTransport()

bool ObjectGuid::IsTransport ( ) const
inline
176{ return GetHigh() == HighGuid::Transport; }

References GetHigh().

Referenced by IsAnyTypeGameObject().

◆ IsUnit()

bool ObjectGuid::IsUnit ( ) const
inline
171{ return IsAnyTypeCreature() || IsPlayer(); }
bool IsPlayer() const
Definition: ObjectGuid.h:170
bool IsAnyTypeCreature() const
Definition: ObjectGuid.h:169

References IsAnyTypeCreature(), and IsPlayer().

◆ IsVehicle()

bool ObjectGuid::IsVehicle ( ) const
inline
166{ return GetHigh() == HighGuid::Vehicle; }

References GetHigh().

Referenced by IsAnyTypeCreature(), and IsCreatureOrVehicle().

◆ MapSpecific()

ObjectGuid ObjectGuid::MapSpecific ( HighGuid  type,
uint32  entry,
LowType  counter 
)
staticprivate
65{
66 return ObjectGuid(type, entry, counter);
67}

References ObjectGuid().

Referenced by Create().

◆ operator bool()

ObjectGuid::operator bool ( ) const
inline
205{ return !IsEmpty(); }

References IsEmpty().

◆ operator int64()

ObjectGuid::operator int64 ( ) const
privatedelete

◆ operator!()

bool ObjectGuid::operator! ( ) const
inline
206{ return !(bool(*this)); }

◆ operator!=()

bool ObjectGuid::operator!= ( ObjectGuid const &  guid) const
inline
208{ return GetRawValue() != guid.GetRawValue(); }
uint64 GetRawValue() const
Definition: ObjectGuid.h:144

References GetRawValue().

◆ operator<()

bool ObjectGuid::operator< ( ObjectGuid const &  guid) const
inline
209{ return GetRawValue() < guid.GetRawValue(); }

References GetRawValue().

◆ operator<=()

bool ObjectGuid::operator<= ( ObjectGuid const &  guid) const
inline
210{ return GetRawValue() <= guid.GetRawValue(); }

References GetRawValue().

◆ operator==()

bool ObjectGuid::operator== ( ObjectGuid const &  guid) const
inline
207{ return GetRawValue() == guid.GetRawValue(); }

References GetRawValue().

◆ ReadAsPacked()

◆ Set()

void ObjectGuid::Set ( uint64  guid)
inline

◆ ToString()

std::string ObjectGuid::ToString ( ) const
48{
49 std::ostringstream str;
50 str << "GUID Full: 0x" << std::hex << std::setw(16) << std::setfill('0') << _guid << std::dec;
51 str << " Type: " << GetTypeName();
52 if (HasEntry())
53 str << (IsPet() ? " Pet number: " : " Entry: ") << GetEntry() << " ";
54
55 str << " Low: " << GetCounter();
56 return str.str();
57}
LowType GetCounter() const
Definition: ObjectGuid.h:147
uint32 GetEntry() const
Definition: ObjectGuid.h:146

References _guid, GetCounter(), GetEntry(), GetTypeName(), HasEntry(), and IsPet().

Referenced by Player::_ApplyItemMods(), Map::_GetScriptCreature(), Map::_GetScriptCreatureSourceOrTarget(), Map::_GetScriptPlayer(), Map::_GetScriptPlayerSourceOrTarget(), Map::_GetScriptUnit(), Map::_GetScriptWorldObject(), Player::_LoadItem(), Player::_LoadMailedItem(), Player::_SaveInventory(), Map::_ScriptProcessDoor(), PetAI::_stopAttack(), Player::_StoreItem(), Aura::_UnapplyForTarget(), FormationMgr::AddCreatureToGroup(), CreatureGroup::AddMember(), Guild::AddMember(), ArenaTeam::AddMember(), LootItemStorage::AddNewStoredLoot(), Vehicle::AddPassenger(), Map::AddPlayerToMap(), InstanceMap::AddPlayerToMap(), lfg::LFGQueue::AddQueueData(), Map::AddToMap(), lfg::LFGQueue::AddToNewQueue(), lfg::LFGQueue::AddToQueue(), Item::AddToUpdateQueueOf(), Unit::AttackerStateUpdate(), AuctionEntry::BuildAuctionInfo(), CalendarEvent::BuildCalendarMailSubject(), PathGenerator::BuildPointPath(), PathGenerator::BuildPolyPath(), Player::BuyItemFromVendorSlot(), PetAI::CanAttack(), Player::CanBankItem(), InstanceMap::CannotEnter(), BattlegroundMap::CannotEnter(), Player::CharmSpellInitialize(), lfg::LFGQueue::CheckCompatibility(), WorldSession::CheckStableMaster(), Guild::Create(), MotionTransport::CreateGOPassenger(), MotionTransport::CreateNPCPassenger(), lfg::LFGMgr::DecreaseKicksLeft(), Player::DestroyItemCount(), Vehicle::Dismiss(), ScriptedAI::DoPlaySoundToSet(), FlightPathMovementGenerator::DoReset(), ScriptedAI::DoTeleportPlayer(), FlightPathMovementGenerator::DoUpdate(), Player::DuelComplete(), Spell::EffectAddHonor(), Spell::EffectHeal(), Spell::EffectLearnSpell(), Spell::EffectUnlearnSpecialization(), BGQueueRemoveEvent::Execute(), lfg::LFGQueue::FindGroups(), lfg::LFGQueue::FindNewGroups(), PathGenerator::FindSmoothPath(), Spell::finish(), lfg::LFGMgr::FinishDungeon(), CreatureGroup::FormationReset(), lfg::LFGMgr::GetComment(), Object::GetDebugInfo(), Aura::GetDebugInfo(), Spell::GetDebugInfo(), TempSummon::GetDebugInfo(), Minion::GetDebugInfo(), Item::GetDebugInfo(), lfg::LFGMgr::GetDungeon(), lfg::LFGMgr::GetDungeonMapId(), lfg::LFGMgr::GetKicksLeft(), lfg::LFGMgr::GetLockedDungeons(), Battleground::GetObjectType(), lfg::LFGMgr::GetOldState(), WorldSession::GetPlayerInfo(), lfg::LFGMgr::GetRoles(), lfg::LFGMgr::GetSelectedDungeons(), lfg::LFGMgr::GetState(), account_commandscript::HandleAccountCreateCommand(), WorldSession::HandleActivateTaxiExpressOpcode(), WorldSession::HandleActivateTaxiOpcode(), spell_rog_deadly_poison::HandleAfterHit(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleAttackSwingOpcode(), WorldSession::HandleAuctionHelloOpcode(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionListOwnerItemsEvent(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleBankerActivateOpcode(), WorldSession::HandleBattlefieldListOpcode(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleBinderActivateOpcode(), WorldSession::HandleBusyTradeOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleBuyBankSlotOpcode(), WorldSession::HandleCalendarArenaTeam(), WorldSession::HandleCalendarComplain(), WorldSession::HandleCalendarCopyEvent(), WorldSession::HandleCalendarEventModeratorStatus(), WorldSession::HandleCalendarEventRemoveInvite(), WorldSession::HandleCalendarEventRsvp(), WorldSession::HandleCalendarEventSignup(), WorldSession::HandleCalendarEventStatus(), WorldSession::HandleCalendarGetCalendar(), WorldSession::HandleCalendarGetEvent(), WorldSession::HandleCalendarGetNumPending(), WorldSession::HandleCalendarGuildFilter(), WorldSession::HandleCalendarUpdateEvent(), WorldSession::HandleCharDeleteOpcode(), WorldSession::HandleCharEnum(), WorldSession::HandleComplainOpcode(), WorldSession::HandleCreatureQueryOpcode(), debug_commandscript::HandleDebugGetItemStateCommand(), debug_commandscript::HandleDebugHostileRefListCommand(), debug_commandscript::HandleDebugThreatListCommand(), WorldSession::HandleDismissCritter(), WorldSession::HandleDuelAcceptedOpcode(), WorldSession::HandleEjectPassenger(), WorldSession::HandleEquipmentSetUse(), WorldSession::HandleFarSightOpcode(), WorldSession::HandleGameObjectQueryOpcode(), WorldSession::HandleGameobjectReportUse(), WorldSession::HandleGameObjectUseOpcode(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGossipSelectOptionOpcode(), misc_commandscript::HandleGUIDCommand(), WorldSession::HandleGuildBankBuyTab(), WorldSession::HandleGuildBankDepositMoney(), WorldSession::HandleGuildBankerActivate(), WorldSession::HandleGuildBankQueryTab(), WorldSession::HandleGuildBankUpdateTab(), WorldSession::HandleGuildBankWithdrawMoney(), WorldSession::HandleIgnoreTradeOpcode(), WorldSession::HandleInspectArenaTeamsOpcode(), WorldSession::HandleInspectHonorStatsOpcode(), WorldSession::HandleInspectOpcode(), WorldSession::HandleInstanceLockResponse(), WorldSession::HandleItemTextQuery(), WorldSession::HandleLfgLeaveOpcode(), WorldSession::HandleLfgPartyLockInfoRequestOpcode(), WorldSession::HandleLfgPlayerLockInfoRequestOpcode(), WorldSession::HandleLfgSetBootVoteOpcode(), WorldSession::HandleLfgSetCommentOpcode(), WorldSession::HandleLfgSetRolesOpcode(), WorldSession::HandleMoveTeleportAck(), AuraEffect::HandleObsModPowerAuraTick(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleOpenWrappedItemCallback(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), WorldSession::HandlePetAction(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCancelAuraOpcode(), WorldSession::HandlePetCastSpellOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandlePetitionDeclineOpcode(), WorldSession::HandlePetitionQueryOpcode(), WorldSession::HandlePetitionRenameOpcode(), WorldSession::HandlePetitionShowSignOpcode(), WorldSession::HandlePetitionSignOpcode(), WorldSession::HandlePetSetAction(), WorldSession::HandlePetSpellAutocastOpcode(), WorldSession::HandlePetStopAttack(), BattlefieldMgr::HandlePlayerEnterZone(), OutdoorPvPMgr::HandlePlayerEnterZone(), BattlefieldMgr::HandlePlayerLeaveZone(), OutdoorPvPMgr::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLoginFromDB(), WorldSession::HandlePlayerLoginOpcode(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleQuestgiverQueryQuestOpcode(), WorldSession::HandleQuestgiverRequestRewardOpcode(), WorldSession::HandleQuestgiverStatusQueryOpcode(), WorldSession::HandleQuestLogRemoveQuest(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleSaveGuildEmblemOpcode(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSendMail(), WorldSession::HandleSetActionButtonOpcode(), WorldSession::HandleSetActiveMoverOpcode(), WorldSession::HandleSpiritHealerActivateOpcode(), WorldSession::HandleTabardVendorActivateOpcode(), WorldSession::HandleTalentWipeConfirmOpcode(), WorldSession::HandleTaxiQueryAvailableNodes(), WorldSession::HandleTrainerBuySpellOpcode(), WorldSession::HandleTurnInPetitionOpcode(), Vehicle::InstallAccessory(), BattlegroundQueue::InviteGroupToBG(), lfg::LFGMgr::JoinLfg(), WorldSession::KickPlayer(), lfg::LFGMgr::LeaveLfg(), AuctionEntry::LoadFromDB(), Player::LoadFromDB(), ArenaTeam::LoadMembersFromDB(), WaypointMovementGenerator< Creature >::LoadPath(), LogCommandUsage(), WorldSession::LogoutPlayer(), MotionMaster::MoveCharge(), MotionMaster::MoveChase(), MotionMaster::MoveConfused(), MotionMaster::MoveFleeing(), MotionMaster::MoveFollow(), MotionMaster::MoveJump(), MotionMaster::MovePath(), MotionMaster::MovePoint(), MotionMaster::MoveRandom(), MotionMaster::MoveSeekAssistance(), MotionMaster::MoveSeekAssistanceDistract(), MotionMaster::MoveTargetedHome(), MotionMaster::MoveTaxiFlight(), lfg::LFGGroupScript::OnAddMember(), WaypointMovementGenerator< Creature >::OnArrived(), lfg::LFGGroupScript::OnChangeLeader(), lfg::LFGGroupScript::OnDisband(), lfg::LFGGroupScript::OnInviteMember(), lfg::LFGPlayerScript::OnMapChanged(), lfg::LFGGroupScript::OnRemoveMember(), MovementInfo::OutDebug(), SpellCastTargets::OutDebug(), Player::PossessSpellInitialize(), Player::PrettyPrintRequirementsAchievementsList(), SmartScript::ProcessAction(), Map::RemoveAllObjectsInRemoveList(), Vehicle::RemoveAllPassengers(), lfg::LFGQueue::RemoveFromCompatibles(), lfg::LFGQueue::RemoveFromNewQueue(), GameObject::RemoveFromOwner(), lfg::LFGQueue::RemoveFromQueue(), Item::RemoveFromUpdateQueueOf(), lfg::LFGMgr::RemoveGroupData(), Vehicle::RemovePassenger(), BattlegroundQueue::RemovePlayer(), lfg::LFGMgr::RemoveProposal(), lfg::LFGQueue::RemoveQueueData(), Vehicle::Reset(), Player::ResetPetTalents(), Map::ScriptsProcess(), CreatureTextMgr::SendChat(), Map::SendInitSelf(), WorldSession::SendLfgBootProposalUpdate(), WorldSession::SendLfgRoleChosen(), WorldSession::SendLfgUpdateProposal(), WorldSession::SendListInventory(), Spell::SendLoot(), Unit::SendMeleeAttackStop(), WorldSession::SendPetitionQueryOpcode(), WorldSession::SendPetitionShowList(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverQuestList(), PlayerMenu::SendQuestGiverRequestItems(), PlayerMenu::SendQuestGiverStatus(), ObjectMgr::SendServerMail(), WorldSession::SendTaxiStatus(), WorldSession::SendTrainerList(), Unit::SetCharm(), Unit::SetCharmedBy(), lfg::LFGMgr::SetComment(), AchievementMgr::SetCriteriaProgress(), lfg::LFGMgr::SetDungeon(), lfg::LFGMgr::SetLockedDungeons(), Player::SetMover(), CreatureTextMgr::SetRepeatId(), lfg::LFGMgr::SetRoles(), lfg::LFGMgr::SetSelectedDungeons(), lfg::LFGMgr::SetState(), npc_escortAI::Start(), FollowerAI::StartFollow(), Player::StopCastingCharm(), Player::SummonPet(), Map::SwitchGridContainers(), Spell::TakeCastItem(), Channel::UnBan(), Vehicle::Uninstall(), PetAI::UpdateAI(), lfg::LFGMgr::UpdateProposal(), GameObject::Use(), validUtf8String(), and SpellEvent::~SpellEvent().

◆ WriteAsPacked()

Member Data Documentation

◆ _guid

uint64 ObjectGuid::_guid {0}
private

◆ Empty

ObjectGuid const ObjectGuid::Empty = ObjectGuid()
static

Referenced by Player::_LoadMailedItem(), Pet::_SaveAuras(), Unit::_TryStackingOrRefreshingExistingAura(), Unit::_UpdateSpells(), instance_blood_furnace::instance_blood_furnace_InstanceMapScript::ActivateCell(), Unit::AttackStop(), spell_halion_marks::spell_halion_marks_AuraScript::BeforeDispel(), boss_bjarngrim::boss_bjarngrimAI::boss_bjarngrimAI(), boss_freya_summons::boss_freya_summonsAI::boss_freya_summonsAI(), boss_yoggsaron_cloud::boss_yoggsaron_cloudAI::boss_yoggsaron_cloudAI(), GameObject::CastSpell(), lfg::LFGQueue::CheckCompatibility(), lfg::Lfg5Guids::clear(), CharacterCache::ClearCharacterGroup(), Player::clearResurrectRequestData(), Group::CountRollVote(), Group::CountTheRoll(), Item::Create(), Bag::Create(), Guild::DeleteMember(), CalendarMgr::DeleteOldEvents(), Player::DestroyItem(), ArenaTeam::Disband(), npc_ulduar_toasty_fire::npc_ulduar_toasty_fireAI::DoAction(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::DoAction(), npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_iccAI::DoAction(), brann_bronzebeard::brann_bronzebeardAI::DoAction(), WorldSession::DoLootRelease(), tele_commandscript::DoNameTeleport(), Spell::DoSpellHitOnUnit(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomcheck(), Player::DuelComplete(), Spell::EffectCharge(), lfg::Lfg5Guids::empty(), boss_illidari_council_memberAI::EnterEvadeMode(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundEY::EventPlayerCapturedFlag(), BattlegroundEY::EventPlayerClickedOnFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), BattlegroundEY::EventPlayerDroppedFlag(), BattlegroundWS::EventPlayerDroppedFlag(), ChatHandler::extractPlayerTarget(), Creature::FocusTarget(), CharacterCache::GetCharacterGroupGuidByGuid(), CharacterCache::GetCharacterGuidByName(), Unit::GetCharm(), Unit::GetComboTargetGUID(), SpellCastTargets::GetCorpseTargetGUID(), Unit::GetFirstMinion(), Battleground::GetFlagPickerGUID(), SpellCastTargets::GetGOTargetGUID(), Unit::GetGuardianPet(), npc_coren_direbrew_sisters::GetGUID(), boss_lord_marrowgar::GetGUID(), SmartAI::GetGUID(), GameObjectAI::GetGUID(), UnitAI::GetGUID(), Object::GetGUID(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::GetGuidData(), instance_karazhan::instance_karazhan_InstanceMapScript::GetGuidData(), instance_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::GetGuidData(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::GetGuidData(), instance_ulduar::instance_ulduar_InstanceMapScript::GetGuidData(), instance_blood_furnace::instance_blood_furnace_InstanceMapScript::GetGuidData(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::GetGuidData(), instance_arcatraz::instance_arcatraz_InstanceMapScript::GetGuidData(), instance_sunwell_plateau::instance_sunwell_plateau_InstanceMapScript::GetGuidData(), instance_naxxramas::instance_naxxramas_InstanceMapScript::GetGuidData(), instance_halls_of_stone::instance_halls_of_stone_InstanceMapScript::GetGuidData(), instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::GetGuidData(), instance_magisters_terrace::instance_magisters_terrace_InstanceMapScript::GetGuidData(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::GetGuidData(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::GetGuidData(), instance_oculus::instance_oculus_InstanceMapScript::GetGuidData(), instance_utgarde_pinnacle::instance_utgarde_pinnacle_InstanceMapScript::GetGuidData(), instance_vault_of_archavon::instance_vault_of_archavon_InstanceMapScript::GetGuidData(), instance_violet_hold::instance_violet_hold_InstanceMapScript::GetGuidData(), instance_serpent_shrine::instance_serpentshrine_cavern_InstanceMapScript::GetGuidData(), instance_the_eye::instance_the_eye_InstanceMapScript::GetGuidData(), instance_blackrock_spire::instance_blackrock_spireMapScript::GetGuidData(), instance_blackwing_lair::instance_blackwing_lair_InstanceMapScript::GetGuidData(), instance_molten_core::instance_molten_core_InstanceMapScript::GetGuidData(), instance_scarlet_monastery::instance_scarlet_monastery_InstanceMapScript::GetGuidData(), instance_scholomance::instance_scholomance_InstanceMapScript::GetGuidData(), instance_zulaman::instance_zulaman_InstanceMapScript::GetGuidData(), instance_ruins_of_ahnqiraj::instance_ruins_of_ahnqiraj_InstanceMapScript::GetGuidData(), instance_ahnkahet::instance_ahnkahet_InstanceScript::GetGuidData(), instance_ruby_sanctum::instance_ruby_sanctum_InstanceMapScript::GetGuidData(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::GetGuidData(), instance_forge_of_souls::instance_forge_of_souls_InstanceScript::GetGuidData(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::GetGuidData(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::GetGuidData(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::GetGuidData(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::GetGuidData(), instance_black_temple::instance_black_temple_InstanceMapScript::GetGuidData(), instance_the_slave_pens::instance_the_slave_pens_InstanceMapScript::GetGuidData(), instance_zulgurub::instance_zulgurub_InstanceMapScript::GetGuidData(), instance_obsidian_sanctum::instance_obsidian_sanctum_InstanceMapScript::GetGuidData(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::GetGuidData(), instance_halls_of_lightning::instance_halls_of_lightning_InstanceMapScript::GetGuidData(), ZoneScript::GetGuidData(), ObjectMgr::GetLinkedRespawnGuid(), Group::GetMemberGUID(), InstanceScript::GetObjectGuid(), getOrphanGUID(), ChatHandler::GetPlayerGroupAndGUIDByName(), lfg::LFGMgr::GetQueue(), WorldObject::GetTransGUID(), Unit::GetTransGUID(), SpellCastTargets::GetUnitTargetGUID(), go_chromaggus_lever::go_chromaggus_leverAI::GossipHello(), Guild::HandleAddNewRank(), WorldSession::HandleArenaTeamLeaderOpcode(), WorldSession::HandleArenaTeamRemoveOpcode(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), spell_warl_seduction::HandleAuraApply(), spell_warl_demonic_aegis::HandleAuraApply(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraModStateImmunity(), Aura::HandleAuraSpecificMods(), WorldSession::HandleBattlefieldListOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleCalendarAddEvent(), WorldSession::HandleCancelAuraOpcode(), WorldSession::HandleCastSpellOpcode(), debug_commandscript::HandleDebugSendSellErrorCommand(), Unit::HandleDummyAuraProc(), ticket_commandscript::HandleGMTicketCloseByIdCommand(), ticket_commandscript::HandleGMTicketCompleteCommand(), WorldSession::HandleGroupSwapSubGroupOpcode(), honor_commandscript::HandleHonorAddCommand(), honor_commandscript::HandleHonorAddKillCommand(), honor_commandscript::HandleHonorUpdateCommand(), WorldSession::HandleLfgLeaveOpcode(), Guild::HandleMemberDepositMoney(), Guild::HandleMemberWithdrawMoney(), modify_commandscript::HandleModifyMountCommand(), spell_gen_mount::HandleMount(), npc_commandscript::HandleNpcWhisperCommand(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandlePetCancelAuraOpcode(), WorldSession::HandleQueryNextMailTime(), quest_commandscript::HandleQuestComplete(), Guild::HandleRemoveMember(), Guild::HandleRemoveRank(), WorldSession::HandleRequestAccountData(), Guild::HandleSetBankTabInfo(), Guild::HandleSetLeader(), Guild::HandleSetMOTD(), Guild::HandleSetRankInfo(), cheat_commandscript::HandleTaxiCheatCommand(), tele_commandscript::HandleTeleGroupCommand(), titles_commandscript::HandleTitlesAddCommand(), titles_commandscript::HandleTitlesCurrentCommand(), titles_commandscript::HandleTitlesRemoveCommand(), titles_commandscript::HandleTitlesSetMaskCommand(), Guild::HandleUpdateMemberRank(), instance_violet_hold::instance_violet_hold_InstanceMapScript::InstanceCleanup(), TriggerAI::IsSummonedBy(), npc_bone_spike::npc_bone_spikeAI::IsSummonedBy(), npc_strangulate_vehicle::npc_strangulate_vehicleAI::IsSummonedBy(), boss_novos::boss_novosAI::JustEngagedWith(), npc_risen_archmage::npc_risen_archmageAI::JustSummoned(), Channel::KickOrBan(), Channel::LeaveChannel(), lfg::Lfg5Guids::Lfg5Guids(), AuctionHouseMgr::LoadAuctionItems(), Player::LoadFromDB(), Bag::LoadFromDB(), Guild::BankTab::LoadItemFromDB(), LootItemStorage::LoadStoredLoot(), WorldSession::LogoutPlayer(), LootItem::LootItem(), spell_halion_twilight_realm::spell_halion_twilight_realm_AuraScript::OnApply(), spell_halion_leave_twilight_realm::spell_halion_leave_twilight_realm_AuraScript::OnApply(), spell_gen_animal_blood::OnApply(), spell_contagion_of_rot::OnApply(), spell_blood_queen_vampiric_bite::spell_blood_queen_vampiric_bite_SpellScript::OnCast(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::OnGameObjectCreate(), instance_uldaman::instance_uldaman_InstanceMapScript::OnGameObjectCreate(), instance_blackfathom_deeps::instance_blackfathom_deeps_InstanceMapScript::OnGameObjectCreate(), instance_maraudon::instance_maraudon_InstanceMapScript::OnGameObjectCreate(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::OnGameObjectCreate(), instance_blackrock_spire::instance_blackrock_spireMapScript::OnGameObjectCreate(), instance_magisters_terrace::instance_magisters_terrace_InstanceMapScript::OnGameObjectCreate(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::OnGameObjectCreate(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnGameObjectCreate(), instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::OnGameObjectCreate(), instance_violet_hold::instance_violet_hold_InstanceMapScript::OnGameObjectCreate(), instance_steam_vault::instance_steam_vault_InstanceMapScript::OnGameObjectCreate(), instance_ahnkahet::instance_ahnkahet_InstanceScript::OnGameObjectCreate(), instance_utgarde_pinnacle::instance_utgarde_pinnacle_InstanceMapScript::OnGameObjectCreate(), go_palehoof_sphere::OnGossipHello(), go_main_chambers_access_panel::OnGossipHello(), npc_aged_dying_ancient_kodo::OnGossipHello(), lfg::LFGPlayerScript::OnLogout(), spell_assembly_rune_of_summoning::spell_assembly_rune_of_summoning_AuraScript::OnPeriodic(), spell_halion_combustion_consumption::spell_halion_combustion_consumption_AuraScript::OnRemove(), lfg::LFGGroupScript::OnRemoveMember(), npc_vortex_ride::npc_vortex_rideAI::PassengerBoarded(), Unit::PetSpellFail(), Spell::prepare(), Creature::ReleaseFocus(), Unit::RemoveAllGameObjects(), CalendarMgr::RemoveAllPlayerEventsAndInvites(), GameObject::RemoveFromOwner(), Unit::RemoveGameObject(), lfg::LFGMgr::RemoveGroupData(), Player::RemoveItem(), Bag::RemoveItem(), Player::RemoveItemFromBuyBackSlot(), BattlefieldWG::RemoveUpdateTenacity(), boss_ossirian::Reset(), npc_black_knight_skeletal_gryphon::npc_black_knight_skeletal_gryphonAI::Reset(), boss_tyrannus::boss_tyrannusAI::Reset(), npc_mimirons_inferno::npc_mimirons_infernoAI::Reset(), Unit::ResetRedirectThreat(), Guild::ResetTimes(), BattlegroundEY::RespawnFlagAfterDrop(), BattlegroundWS::RespawnFlagAfterDrop(), Player::RewardPlayerAndGroupAtEvent(), npc_time_lost_proto_drake::npc_time_lost_proto_drakeAI::RollPath(), Channel::Say(), Map::ScriptCommandStart(), Map::ScriptsStart(), AuctionHouseMgr::SendAuctionExpiredMail(), Player::SendBuyError(), Spell::SendChannelUpdate(), PlayerMenu::SendCloseGossip(), Player::SendEquipError(), WorldSession::SendListInventory(), Player::SendLogXPGain(), Player::SendSellError(), Item::SetEnchantment(), TradeData::SetItem(), Unit::SetMinion(), Channel::SetMode(), Channel::SetOwner(), TradeData::SetSpell(), Group::SetTargetIcon(), boss_ossirian::SpawnNextCrystal(), boss_devourer_of_souls::boss_devourer_of_soulsAI::SpellHitTarget(), Player::StopCastingCharm(), Map::SummonCreature(), Player::TeleportTo(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::Update(), instance_violet_hold::instance_violet_hold_InstanceMapScript::Update(), Unit::Update(), boss_icehowl::boss_icehowlAI::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_grimstone::npc_grimstoneAI::UpdateEscortAI(), npc_cork_gizelton::npc_cork_gizeltonAI::UpdateEscortAI(), Group::UpdateLooterGuid(), and lfg::LFGMgr::UpdateRaidBrowser().