<?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;

/**
 *--------------------------PVE模块Start-----------------------------//
 *进入pve场景
 *
 * Generated from protobuf message <code>Game.Protobuf.CGEnterPve</code>
 */
class CGEnterPve extends \Google\Protobuf\Internal\Message
{
    /**
     *关卡id
     *
     * Generated from protobuf field <code>int32 LevelId = 1;</code>
     */
    protected $LevelId = 0;
    /**
     *使用车辆模板id
     *
     * Generated from protobuf field <code>int32 CarTplId = 2;</code>
     */
    protected $CarTplId = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $LevelId
     *          关卡id
     *     @type int $CarTplId
     *          使用车辆模板id
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *关卡id
     *
     * Generated from protobuf field <code>int32 LevelId = 1;</code>
     * @return int
     */
    public function getLevelId()
    {
        return $this->LevelId;
    }

    /**
     *关卡id
     *
     * Generated from protobuf field <code>int32 LevelId = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setLevelId($var)
    {
        GPBUtil::checkInt32($var);
        $this->LevelId = $var;

        return $this;
    }

    /**
     *使用车辆模板id
     *
     * Generated from protobuf field <code>int32 CarTplId = 2;</code>
     * @return int
     */
    public function getCarTplId()
    {
        return $this->CarTplId;
    }

    /**
     *使用车辆模板id
     *
     * 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;
    }

}

