| 99 | } |
| 100 | |
| 101 | void sGameRecorded::AddEvent(const uint64 pTicks, const cEvent& pEvent) { |
| 102 | std::lock_guard<std::mutex> lock(mLockMtx); |
| 103 | |
| 104 | if (mTickDisabled) |
| 105 | return; |
| 106 | |
| 107 | mEvents.insert(mEvents.end(), std::make_pair(pTicks, pEvent)); |
| 108 | } |
| 109 | |
| 110 | std::vector<cEvent> sGameRecorded::GetEvents(const uint64 pTicks) { |
| 111 | std::lock_guard<std::mutex> lock(mLockMtx); |
no test coverage detected