<?php declare(strict_types = 0);
/*
** Copyright (C) 2021-2026 initMAX s.r.o.
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/

/**
 * tetrisMAX widget view (Zabbix 6.4 - 7.4).
 *
 * The playfield itself comes from the shared builder, so 6.0/6.2 render the
 * same bytes - only the envelope differs, and that is all this file is.
 *
 * @var CView $this
 * @var array $data
 */

use Modules\TetrisMAX\Includes\GameMarkup;

(new CWidgetView($data))
	->addItem(GameMarkup::build($data['game_parameters']))
	->show();
