MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / AddTargetChangeSyncLogEvent

Method AddTargetChangeSyncLogEvent

src/Misc/SyncLogging.cpp:54–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void SyncLogger::AddTargetChangeSyncLogEvent(AbstractClass* pObject, AbstractClass* pTarget, unsigned int callerAddress)
55{
56 if (!pObject)
57 return;
58
59 MakeCallerRelative(callerAddress);
60 auto targetRTTI = AbstractType::None;
61 unsigned int targetID = 0;
62
63 if (pTarget)
64 {
65 targetRTTI = pTarget->WhatAmI();
66 targetID = pTarget->UniqueID;
67 }
68
69 SyncLogger::TargetChanges.Add(TargetChangeSyncLogEvent(pObject->WhatAmI(), pObject->UniqueID, targetRTTI, targetID, callerAddress, Unsorted::CurrentFrame));
70}
71
72void SyncLogger::AddDestinationChangeSyncLogEvent(AbstractClass* pObject, AbstractClass* pTarget, unsigned int callerAddress)
73{

Callers

nothing calls this directly

Calls 3

MakeCallerRelativeFunction · 0.85
AddMethod · 0.45

Tested by

no test coverage detected