QtCraft API C++ classes QML types Handbook

QcMsg::DrawLauncher Struct

struct QcMsg::DrawLauncher

Client -> server: the use button pressed or released with a launcher in the hand, or the draw given up (a screen opened, decision E-425). More...

Header: #include <common/protocol/QcPlayerMessages.h>

Public Types

enum class Action { Draw, Release, Cancel }

Public Variables

QcMsg::DrawLauncher::Action action

Detailed Description

The server times the draw itself; a release shoots when the draw was long enough, a cancel, a change of the hotbar slot or the item, or death lets the draw go without a shot.

Member Type Documentation

enum class DrawLauncher::Action

What happened to the draw.

ConstantValueDescription
QcMsg::DrawLauncher::Action::Draw0The use button was pressed: the draw starts.
QcMsg::DrawLauncher::Action::Release1The use button was released: shoots when drawn long enough.
QcMsg::DrawLauncher::Action::Cancel2The draw was given up without a shot.

Member Variable Documentation

QcMsg::DrawLauncher::Action DrawLauncher::action

What happened.