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

Method AddDestinationChangeSyncLogEvent

src/Misc/SyncLogging.cpp:72–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void SyncLogger::AddDestinationChangeSyncLogEvent(AbstractClass* pObject, AbstractClass* pTarget, unsigned int callerAddress)
73{
74 if (!pObject)
75 return;
76
77 MakeCallerRelative(callerAddress);
78 auto targetRTTI = AbstractType::None;
79 unsigned int targetID = 0;
80
81 if (pTarget)
82 {
83 targetRTTI = pTarget->WhatAmI();
84 targetID = pTarget->UniqueID;
85 }
86
87 SyncLogger::DestinationChanges.Add(TargetChangeSyncLogEvent(pObject->WhatAmI(), pObject->UniqueID, targetRTTI, targetID, callerAddress, Unsorted::CurrentFrame));
88}
89
90void SyncLogger::AddMissionOverrideSyncLogEvent(AbstractClass* pObject, int mission, unsigned int callerAddress)
91{

Callers

nothing calls this directly

Calls 3

MakeCallerRelativeFunction · 0.85
AddMethod · 0.45

Tested by

no test coverage detected