<?php
/**
 * Test
 **/
namespace Game\Controller\Gm;

use Framework\Define\ErrorDefine;
use Framework\MVC\ControllerBase;
use Framework\Network\SendMessage;
use Game\Protobuf\CGTest;
use Game\Protobuf\GCTest;
use Game\Protobuf\PacketId;


class Test extends ControllerBase
{
    public GCTest $test;

    public function __construct()
    {
        $this->message = new CGTest();
        $this->test = new GCTest();
    }

    public function run(): int
    {
        $this->test->setCode(ErrorDefine::SUCCESS);
        SendMessage::getInstance()->sendClient(PacketId::GC_Test, $this->test);
        return ErrorDefine::SUCCESS;
    }

}