Creature myCreature; uint32_t lowGUID = myCreature.GetGUIDLow();
std::unordered_mapIn this example, we have an unordered map that contains all of our creatures. We then retrieve the GUID for our target creature using someFunctionToGetTargetGUID(). We can then use this GUID as an index into our map to quickly retrieve the corresponding creature instance. Package library: This example could be used in a game or simulation where creatures need to be tracked and managed efficiently. The use of an unordered map suggests the use of the STL.creatures; // Add creatures to map... uint32_t targetGUID = someFunctionToGetTargetGUID(); Creature& targetCreature = creatures[targetGUID];