QtCraft API C++ classes QML types Handbook

QcPlayerJoin Class

A client the login admitted becomes a player (decision E-367): restored from his save (QcPlayerRecords) or spawned at the spawn point in the world's default game mode, told everything a client needs to play (Welcome, content, game mode, inventory, health, food, time, warnings about the world) and given the chunks around him. More...

Header: #include <server/login/QcPlayerJoin.h>

Public Types

struct Parts

Public Functions

void join(QcServerClient &client)

Detailed Description

A save that cannot be read ends the connection with the reason.

Member Function Documentation

void QcPlayerJoin::join(QcServerClient &client)

Makes the admitted client a player: restores or spawns him and sends what he needs to play.