QcServerWorkstations Struct
The block screens with slots of their own that the player fills from the inventory and that give their items back on closing: the stonecutter (decision E-785) and the enchanting table (decision E-864) and the anvil (decision E-866). More...
| Header: | #include <server/machines/QcServerWorkstations.h> |
Public Functions
| bool | handleMessage(QcServerClient &client, const QcMessage &message) |
| void | leave(QcServerClient &client) |
| void | update() |
Public Variables
| QcServerAnvil | anvil |
| QcServerEnchanting | enchanting |
| QcServerStonecutter | stonecutter |
Detailed Description
At most one of them is open per player.
Member Function Documentation
bool QcServerWorkstations::handleMessage(QcServerClient &client, const QcMessage &message)
Handles the choices and closes of the workstation screens in message of client. Returns false for another message.
void QcServerWorkstations::leave(QcServerClient &client)
The player client left: the slots go back, nothing is sent.
void QcServerWorkstations::update()
Once per tick: closes the screens that may not stay open.
Member Variable Documentation
QcServerAnvil QcServerWorkstations::anvil
The anvil screens.
QcServerEnchanting QcServerWorkstations::enchanting
The enchanting table screens.
QcServerStonecutter QcServerWorkstations::stonecutter
The stonecutter screens.