<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: Client_Game_Packet.proto

namespace Game\Protobuf;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 *广播房间内赛车变化--给所有人,包括自己
 *
 * Generated from protobuf message <code>Game.Protobuf.GCBroadcastScuffleRoomPlayer</code>
 */
class GCBroadcastScuffleRoomPlayer extends \Google\Protobuf\Internal\Message
{
    /**
     *发生变化的玩家Id
     *
     * Generated from protobuf field <code>uint64 PlayerId = 1;</code>
     */
    protected $PlayerId = 0;
    /**
     * Generated from protobuf field <code>int32 CarTplId = 2;</code>
     */
    protected $CarTplId = 0;
    /**
     * Generated from protobuf field <code>string ExteriorRefit = 3;</code>
     */
    protected $ExteriorRefit = '';
    /**
     * 熟练度等级
     *
     * Generated from protobuf field <code>int32 ProficiencyLv = 4;</code>
     */
    protected $ProficiencyLv = 0;
    /**
     * 熟练度经验
     *
     * Generated from protobuf field <code>int32 Proficiency = 5;</code>
     */
    protected $Proficiency = 0;
    /**
     *赛车等级
     *
     * Generated from protobuf field <code>int32 CarLevel = 6;</code>
     */
    protected $CarLevel = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $PlayerId
     *          发生变化的玩家Id
     *     @type int $CarTplId
     *     @type string $ExteriorRefit
     *     @type int $ProficiencyLv
     *           熟练度等级
     *     @type int $Proficiency
     *           熟练度经验
     *     @type int $CarLevel
     *          赛车等级
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *发生变化的玩家Id
     *
     * Generated from protobuf field <code>uint64 PlayerId = 1;</code>
     * @return int|string
     */
    public function getPlayerId()
    {
        return $this->PlayerId;
    }

    /**
     *发生变化的玩家Id
     *
     * Generated from protobuf field <code>uint64 PlayerId = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setPlayerId($var)
    {
        GPBUtil::checkUint64($var);
        $this->PlayerId = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 CarTplId = 2;</code>
     * @return int
     */
    public function getCarTplId()
    {
        return $this->CarTplId;
    }

    /**
     * Generated from protobuf field <code>int32 CarTplId = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setCarTplId($var)
    {
        GPBUtil::checkInt32($var);
        $this->CarTplId = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string ExteriorRefit = 3;</code>
     * @return string
     */
    public function getExteriorRefit()
    {
        return $this->ExteriorRefit;
    }

    /**
     * Generated from protobuf field <code>string ExteriorRefit = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setExteriorRefit($var)
    {
        GPBUtil::checkString($var, True);
        $this->ExteriorRefit = $var;

        return $this;
    }

    /**
     * 熟练度等级
     *
     * Generated from protobuf field <code>int32 ProficiencyLv = 4;</code>
     * @return int
     */
    public function getProficiencyLv()
    {
        return $this->ProficiencyLv;
    }

    /**
     * 熟练度等级
     *
     * Generated from protobuf field <code>int32 ProficiencyLv = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setProficiencyLv($var)
    {
        GPBUtil::checkInt32($var);
        $this->ProficiencyLv = $var;

        return $this;
    }

    /**
     * 熟练度经验
     *
     * Generated from protobuf field <code>int32 Proficiency = 5;</code>
     * @return int
     */
    public function getProficiency()
    {
        return $this->Proficiency;
    }

    /**
     * 熟练度经验
     *
     * Generated from protobuf field <code>int32 Proficiency = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setProficiency($var)
    {
        GPBUtil::checkInt32($var);
        $this->Proficiency = $var;

        return $this;
    }

    /**
     *赛车等级
     *
     * Generated from protobuf field <code>int32 CarLevel = 6;</code>
     * @return int
     */
    public function getCarLevel()
    {
        return $this->CarLevel;
    }

    /**
     *赛车等级
     *
     * Generated from protobuf field <code>int32 CarLevel = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setCarLevel($var)
    {
        GPBUtil::checkInt32($var);
        $this->CarLevel = $var;

        return $this;
    }

}

