MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / GetState

Method GetState

Source/GameData.cpp:134–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134cStateRecorded* sGameRecorded::GetState(const uint64 pTicks) {
135 std::lock_guard<std::mutex> lock(mLockMtx);
136
137 if (mTickDisabled)
138 return 0;
139
140 if (mState.find(pTicks) != mState.end())
141 return &mState.find(pTicks)->second;
142
143 return 0;
144}
145
146uint64 sGameRecorded::GetTotalTicks() {
147 std::lock_guard<std::mutex> lock(mLockMtx);

Callers 1

Mouse_Inputs_GetMethod · 0.80

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected