<?php

/**
 * 获取总活跃度信息
 */

namespace Game\Controller\Proficiency;

use Framework\Define\ErrorDefine;
use Framework\MVC\ControllerBase;
use Game\Logic\ProficiencyLogic;
use Game\Protobuf\CGProficiencyData;

class CG_ProficiencyData extends ControllerBase
{
    use ProficiencyLogic;

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

    public function run(): int
    {
        $this->sendProficiencyDataMessage($this->getTotalProficiencyData());
        return ErrorDefine::SUCCESS;
    }
}
