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

Method AddState

Source/GameData.cpp:125–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void sGameRecorded::AddState(const uint64 pTicks, const cStateRecorded& pEvent) {
126 std::lock_guard<std::mutex> lock(mLockMtx);
127
128 if (mTickDisabled)
129 return;
130
131 mState.insert(mState.end(), std::make_pair(pTicks, pEvent));
132}
133
134cStateRecorded* sGameRecorded::GetState(const uint64 pTicks) {
135 std::lock_guard<std::mutex> lock(mLockMtx);

Callers 1

Mouse_Inputs_GetMethod · 0.80

Calls 2

insertMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected