QtCraft API C++ classes QML types Handbook

QcSessionEvent Struct

What the session's tick core (QcSessionCore) tells the session, in one ordered stream (decision E-560): the server's messages as they arrived and, between them, the predicted ticks and the reconciliations of the local player. More...

Header: #include <clientcore/tick/QcSessionEvent.h>

Public Types

struct Closed
struct Prediction
struct Received
struct Reconciled
struct Ticked

Public Variables

std::variant<QcSessionEvent::Received, QcSessionEvent::Ticked, QcSessionEvent::Reconciled, QcSessionEvent::Closed> what

Detailed Description

The session applies them in this order, so its state is the same as if it had received and ticked itself, only later while the GUI thread is busy. Plain values; they cross threads through a QcMailbox.

Member Variable Documentation

std::variant<QcSessionEvent::Received, QcSessionEvent::Ticked, QcSessionEvent::Reconciled, QcSessionEvent::Closed> QcSessionEvent::what

The event.