MCPcopy Create free account
hub / github.com/EQEmu/EQEmu / LoadDataBucketsCache

Method LoadDataBucketsCache

zone/mob.cpp:8777–8795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8775}
8776
8777bool Mob::LoadDataBucketsCache()
8778{
8779 const uint32 id = GetMobTypeIdentifier();
8780
8781 if (!id) {
8782 return false;
8783 }
8784
8785 if (IsBot()) {
8786 DataBucket::BulkLoadEntitiesToCache(DataBucketLoadType::Bot, {id});
8787 }
8788 else if (IsClient()) {
8789 uint32 account_id = CastToClient()->AccountID();
8790 DataBucket::BulkLoadEntitiesToCache(DataBucketLoadType::Account, {account_id});
8791 DataBucket::BulkLoadEntitiesToCache(DataBucketLoadType::Client, {id});
8792 }
8793
8794 return true;
8795}

Calls 1

AccountIDMethod · 0.45

Tested by

no test coverage detected