QtCraft API C++ classes QML types Handbook

QcSessionCommand Struct

What the session asks of its tick core (QcSessionCore), in the order it asked (decision E-560). More...

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

Public Types

struct Close
struct PredictBlocks
struct ResetCorrections
struct Send
struct SetFlight
struct SetIntent
struct Start

Public Functions

bool isMirrored() const

Public Variables

std::variant<QcSessionCommand::Start, QcSessionCommand::SetIntent, QcSessionCommand::SetFlight, QcSessionCommand::ResetCorrections, QcSessionCommand::Send, QcSessionCommand::PredictBlocks, QcSessionCommand::Close> what

Detailed Description

Plain values; they cross threads through a QcMailbox.

Member Function Documentation

bool QcSessionCommand::isMirrored() const

Returns whether the session takes the command's effect back from the core's prediction (the wish to fly, the reset of the corrections) and so must wait until the core applied it (QcSessionEvent::Prediction::mirroredApplied).

Member Variable Documentation

std::variant<QcSessionCommand::Start, QcSessionCommand::SetIntent, QcSessionCommand::SetFlight, QcSessionCommand::ResetCorrections, QcSessionCommand::Send, QcSessionCommand::PredictBlocks, QcSessionCommand::Close> QcSessionCommand::what

The command.