QtCraft API C++ classes QML types Handbook

QcClientSyncPace Class

How often the clients hear of the world and of the time of day (decision E-249). More...

Header: #include <server/tick/QcClientSyncPace.h>

Public Types

struct Due

Public Functions

QcClientSyncPace::Due next(const QcServerClock &clock, bool sprinting)

Detailed Description

Normally the world goes out with every tick and the time once per second of the players' time; during a sprint both go out at most once per tick interval of real time, not with every tick. Lives in the server's thread.

Member Function Documentation

QcClientSyncPace::Due QcClientSyncPace::next(const QcServerClock &clock, bool sprinting)

Returns what is due after the tick clock just counted (sprinting: during a sprint); a sprint's sync is noted as done.