<?php

/**
 * 团队排位赛,同队内展示战绩
 */

namespace Game\Controller\Room;

use Framework\Define\ErrorDefine;
use Framework\MVC\ControllerBase;
use Game\Logic\Room\RoomInfoLogic;
use Game\Protobuf\CGRankTeamRecord;

class CG_RankTeamRecord extends ControllerBase
{
    use RoomInfoLogic;

    public function __construct()
    {
        $this->message = new CGRankTeamRecord();
    }

    public function run(): int
    {
        $this->broadcastRankTeamRecord($this->playerId, $this->message->getMessage(), $this->message->getPlayers());
        return ErrorDefine::SUCCESS;
    }
}
