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

Method WriteAnimCreations

src/Misc/SyncLogging.cpp:245–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243
244
245void SyncLogger::WriteAnimCreations(FILE* const pLogFile, int frameDigits)
246{
247 int xDigits = GeneralUtils::CountDigitsInNumber(SyncLogger::AnimCreations_HighestX);
248 int yDigits = GeneralUtils::CountDigitsInNumber(SyncLogger::AnimCreations_HighestY);
249 int zDigits = GeneralUtils::CountDigitsInNumber(SyncLogger::AnimCreations_HighestZ);
250
251 fprintf(pLogFile, "Animation creations:\n");
252
253 for (size_t i = 0; i < SyncLogger::AnimCreations.Size(); i++)
254 {
255 auto const& animCreation = SyncLogger::AnimCreations.Get();
256
257 if (!animCreation.Initialized)
258 continue;
259
260 fprintf(pLogFile, "#%05d: X: %*d | Y: %*d | Z: %*d | Caller: %08x | Frame: %*d\n",
261 i, xDigits, animCreation.Coords.X, yDigits, animCreation.Coords.Y, zDigits, animCreation.Coords.Z, animCreation.Caller, frameDigits, animCreation.Frame);
262 }
263
264 fprintf(pLogFile, "\n");
265}
266
267void SyncLogger::WriteTeams(FILE* const pLogFile)
268{

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected