<?php

/**
 * 获取技巧教学等级
 */

namespace Game\Controller\TeachingSkill;

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

class CG_TeachingSkill extends ControllerBase
{
    public function __construct()
    {
        $this->message = new CGTeachingSkill();
    }

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