<?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.GCUpdateRoomPlayer</code>
 */
class GCUpdateRoomPlayer extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint64 PlayerID = 1;</code>
     */
    protected $PlayerID = 0;
    /**
     *位置 0随机1竞速位2干扰位3辅助位
     *
     * Generated from protobuf field <code>int32 Position = 2;</code>
     */
    protected $Position = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $PlayerID
     *     @type int $Position
     *          位置 0随机1竞速位2干扰位3辅助位
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>uint64 PlayerID = 1;</code>
     * @return int|string
     */
    public function getPlayerID()
    {
        return $this->PlayerID;
    }

    /**
     * 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;
    }

    /**
     *位置 0随机1竞速位2干扰位3辅助位
     *
     * Generated from protobuf field <code>int32 Position = 2;</code>
     * @return int
     */
    public function getPosition()
    {
        return $this->Position;
    }

    /**
     *位置 0随机1竞速位2干扰位3辅助位
     *
     * Generated from protobuf field <code>int32 Position = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setPosition($var)
    {
        GPBUtil::checkInt32($var);
        $this->Position = $var;

        return $this;
    }

}

