<?php

/**
 * 获取行驶证关卡
 */

namespace Game\Controller\DrivingPermit;

use Framework\Define\ErrorDefine;
use Framework\MVC\ControllerBase;
use Game\Logic\PVE\DrivingPermitLogic;
use Game\Protobuf\CGDrivingPermitLevel;

class CG_DrivingPermitLevel extends ControllerBase
{
    use DrivingPermitLogic;

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

    public function run(): int
    {
        //发送消息
        $this->sendDrivingPermitLevelMessage($this->message->getCarTplId());
        return ErrorDefine::SUCCESS;
    }
}
