sendStatus method

void sendStatus()

Implementation

void sendStatus() {
  final oid = readVariable(0x10);
  final roomName = oid != 0 ? GameObject(oid).shortName : "";

  Z.sendIO({
    "command": ioCommands.status,
    "game_type": Header.isScoreGame() ? 'SCORE' : 'TIME',
    "room_name": roomName,
    "score_one": readVariable(0x11).toString(),
    "score_two": readVariable(0x12).toString()
  });
}