MCPcopy Create free account
hub / github.com/cuberite/cuberite / TickCommands

Method TickCommands

src/Root.cpp:413–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411
412
413void cRoot::TickCommands(void)
414{
415 // Execute any pending commands:
416 cCommandQueue PendingCommands;
417 {
418 cCSLock Lock(m_CSPendingCommands);
419 std::swap(PendingCommands, m_PendingCommands);
420 }
421 for (cCommandQueue::iterator itr = PendingCommands.begin(), end = PendingCommands.end(); itr != end; ++itr)
422 {
423 ExecuteConsoleCommand(itr->m_Command, *(itr->m_Output));
424 }
425}
426
427
428

Callers 1

TickMethod · 0.80

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected