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

Method AddAnimCreationSyncLogEvent

src/Misc/SyncLogging.cpp:99–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void SyncLogger::AddAnimCreationSyncLogEvent(const CoordStruct& coords, unsigned int callerAddress)
100{
101 if (coords.X > SyncLogger::AnimCreations_HighestX)
102 SyncLogger::AnimCreations_HighestX = coords.X;
103
104 if (coords.Y > SyncLogger::AnimCreations_HighestY)
105 SyncLogger::AnimCreations_HighestY = coords.Y;
106
107 if (coords.Z > SyncLogger::AnimCreations_HighestZ)
108 SyncLogger::AnimCreations_HighestZ = coords.Z;
109
110 MakeCallerRelative(callerAddress);
111 if (SyncLogger::AnimCreations.Add(AnimCreationSyncLogEvent(coords, callerAddress, Unsorted::CurrentFrame)))
112 {
113 SyncLogger::AnimCreations_HighestX = 0;
114 SyncLogger::AnimCreations_HighestY = 0;
115 SyncLogger::AnimCreations_HighestZ = 0;
116 }
117}
118
119void SyncLogger::WriteSyncLog(const char* logFilename)
120{

Callers

nothing calls this directly

Calls 3

MakeCallerRelativeFunction · 0.85
AddMethod · 0.45

Tested by

no test coverage detected