<?php

/**
 * 获取驾照信息
 */

namespace Game\Controller\DrivingLicense;

use Framework\Define\ErrorDefine;
use Framework\MVC\ControllerBase;
use Framework\MVC\ModelManager;
use Game\Constant\ModelTypeDefine;
use Game\Model\PVE\PveModel;
use Game\Protobuf\CGDrivingLicense;

class CG_DrivingLicense extends ControllerBase
{

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

    public function run(): int
    {
        /**
         * @var PveModel $pveModel
         */
        $pveModel = ModelManager::getInstance()->getModel(ModelTypeDefine::PVE);
        $pveModel->sendDrivingLicenseMessage();
        return ErrorDefine::SUCCESS;
    }
}
