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

Method AddEvent

Source/GameData.cpp:101–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void 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
110std::vector<cEvent> sGameRecorded::GetEvents(const uint64 pTicks) {
111 std::lock_guard<std::mutex> lock(mLockMtx);

Callers 1

eventsProcessMethod · 0.80

Calls 2

insertMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected