| 132 | } |
| 133 | |
| 134 | cStateRecorded* 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 | |
| 146 | uint64 sGameRecorded::GetTotalTicks() { |
| 147 | std::lock_guard<std::mutex> lock(mLockMtx); |
no test coverage detected