<?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.IMRoom</code>
 */
class IMRoom extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 RoomID = 1;</code>
     */
    protected $RoomID = 0;
    /**
     * 玩家昵称
     *
     * Generated from protobuf field <code>string NickName = 2;</code>
     */
    protected $NickName = '';
    /**
     * 头像
     *
     * Generated from protobuf field <code>int32 Head = 3;</code>
     */
    protected $Head = 0;
    /**
     * 模式
     *
     * Generated from protobuf field <code>int32 ModeType = 4;</code>
     */
    protected $ModeType = 0;
    /**
     * 地图id
     *
     * Generated from protobuf field <code>int32 MapID = 5;</code>
     */
    protected $MapID = 0;
    /**
     * 人数
     *
     * Generated from protobuf field <code>int32 PlayerNum = 6;</code>
     */
    protected $PlayerNum = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $RoomID
     *     @type string $NickName
     *           玩家昵称
     *     @type int $Head
     *           头像
     *     @type int $ModeType
     *           模式
     *     @type int $MapID
     *           地图id
     *     @type int $PlayerNum
     *           人数
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * 玩家昵称
     *
     * Generated from protobuf field <code>string NickName = 2;</code>
     * @return string
     */
    public function getNickName()
    {
        return $this->NickName;
    }

    /**
     * 玩家昵称
     *
     * Generated from protobuf field <code>string NickName = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setNickName($var)
    {
        GPBUtil::checkString($var, True);
        $this->NickName = $var;

        return $this;
    }

    /**
     * 头像
     *
     * Generated from protobuf field <code>int32 Head = 3;</code>
     * @return int
     */
    public function getHead()
    {
        return $this->Head;
    }

    /**
     * 头像
     *
     * Generated from protobuf field <code>int32 Head = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setHead($var)
    {
        GPBUtil::checkInt32($var);
        $this->Head = $var;

        return $this;
    }

    /**
     * 模式
     *
     * Generated from protobuf field <code>int32 ModeType = 4;</code>
     * @return int
     */
    public function getModeType()
    {
        return $this->ModeType;
    }

    /**
     * 模式
     *
     * Generated from protobuf field <code>int32 ModeType = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setModeType($var)
    {
        GPBUtil::checkInt32($var);
        $this->ModeType = $var;

        return $this;
    }

    /**
     * 地图id
     *
     * Generated from protobuf field <code>int32 MapID = 5;</code>
     * @return int
     */
    public function getMapID()
    {
        return $this->MapID;
    }

    /**
     * 地图id
     *
     * Generated from protobuf field <code>int32 MapID = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setMapID($var)
    {
        GPBUtil::checkInt32($var);
        $this->MapID = $var;

        return $this;
    }

    /**
     * 人数
     *
     * Generated from protobuf field <code>int32 PlayerNum = 6;</code>
     * @return int
     */
    public function getPlayerNum()
    {
        return $this->PlayerNum;
    }

    /**
     * 人数
     *
     * Generated from protobuf field <code>int32 PlayerNum = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setPlayerNum($var)
    {
        GPBUtil::checkInt32($var);
        $this->PlayerNum = $var;

        return $this;
    }

}

