Panel hit detection but broken available games, thats enough for tonight
This commit is contained in:
@@ -176,6 +176,17 @@ void WebSocketController::handleProtocol(const QString &msg)
|
||||
return;
|
||||
}
|
||||
|
||||
// ---- IMP (panel impact) ----
|
||||
// Format: IMP <panel_idx> <power> <x> <y> <z>
|
||||
if (cmd == "IMP" && tokens.size() >= 3) {
|
||||
bool idxOk = false, pwrOk = false;
|
||||
const int idx = tokens[1].toInt(&idxOk);
|
||||
const int power = tokens[2].toInt(&pwrOk);
|
||||
if (idxOk && pwrOk && m_panelsPanel)
|
||||
m_panelsPanel->impactPanel(idx, power);
|
||||
return;
|
||||
}
|
||||
|
||||
// ---- GAM listall ----
|
||||
if (cmd == "GAM" && tokens.size() >= 2 && tokens[1] == "listall") {
|
||||
if (m_gamesPanel) m_gamesPanel->loadAllFromResponse(msg);
|
||||
|
||||
Reference in New Issue
Block a user