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

Method AddRNGCallSyncLogEvent

src/Misc/SyncLogging.cpp:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void SyncLogger::AddRNGCallSyncLogEvent(Randomizer* pRandomizer, int type, unsigned int callerAddress, int min, int max)
41{
42 MakeCallerRelative(callerAddress);
43 // Don't log non-critical RNG calls.
44 if (pRandomizer == &ScenarioClass::Instance->Random)
45 SyncLogger::RNGCalls.Add(RNGCallSyncLogEvent(type, true, pRandomizer->Next1, pRandomizer->Next2, callerAddress, Unsorted::CurrentFrame, min, max));
46}
47
48void SyncLogger::AddFacingChangeSyncLogEvent(unsigned short facing, unsigned int callerAddress)
49{

Callers

nothing calls this directly

Calls 3

MakeCallerRelativeFunction · 0.85
RNGCallSyncLogEventClass · 0.85
AddMethod · 0.45

Tested by

no test coverage detected