<?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.GCSyncScuffleData</code>
 */
class GCSyncScuffleData extends \Google\Protobuf\Internal\Message
{
    /**
     *骰子点数
     *
     * Generated from protobuf field <code>int32 ScuffleRollPoint = 1;</code>
     */
    protected $ScuffleRollPoint = 0;
    /**
     *大乱斗积分
     *
     * Generated from protobuf field <code>int32 ScuffleScore = 2;</code>
     */
    protected $ScuffleScore = 0;
    /**
     *大乱斗最高积分,判断奖励用
     *
     * Generated from protobuf field <code>int32 ScuffleMaxScore = 3;</code>
     */
    protected $ScuffleMaxScore = 0;
    /**
     *大乱斗已领取称号奖励Id
     *
     * Generated from protobuf field <code>repeated int32 RewardId = 4;</code>
     */
    private $RewardId;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $ScuffleRollPoint
     *          骰子点数
     *     @type int $ScuffleScore
     *          大乱斗积分
     *     @type int $ScuffleMaxScore
     *          大乱斗最高积分,判断奖励用
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $RewardId
     *          大乱斗已领取称号奖励Id
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *骰子点数
     *
     * Generated from protobuf field <code>int32 ScuffleRollPoint = 1;</code>
     * @return int
     */
    public function getScuffleRollPoint()
    {
        return $this->ScuffleRollPoint;
    }

    /**
     *骰子点数
     *
     * Generated from protobuf field <code>int32 ScuffleRollPoint = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setScuffleRollPoint($var)
    {
        GPBUtil::checkInt32($var);
        $this->ScuffleRollPoint = $var;

        return $this;
    }

    /**
     *大乱斗积分
     *
     * Generated from protobuf field <code>int32 ScuffleScore = 2;</code>
     * @return int
     */
    public function getScuffleScore()
    {
        return $this->ScuffleScore;
    }

    /**
     *大乱斗积分
     *
     * Generated from protobuf field <code>int32 ScuffleScore = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setScuffleScore($var)
    {
        GPBUtil::checkInt32($var);
        $this->ScuffleScore = $var;

        return $this;
    }

    /**
     *大乱斗最高积分,判断奖励用
     *
     * Generated from protobuf field <code>int32 ScuffleMaxScore = 3;</code>
     * @return int
     */
    public function getScuffleMaxScore()
    {
        return $this->ScuffleMaxScore;
    }

    /**
     *大乱斗最高积分,判断奖励用
     *
     * Generated from protobuf field <code>int32 ScuffleMaxScore = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setScuffleMaxScore($var)
    {
        GPBUtil::checkInt32($var);
        $this->ScuffleMaxScore = $var;

        return $this;
    }

    /**
     *大乱斗已领取称号奖励Id
     *
     * Generated from protobuf field <code>repeated int32 RewardId = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRewardId()
    {
        return $this->RewardId;
    }

    /**
     *大乱斗已领取称号奖励Id
     *
     * Generated from protobuf field <code>repeated int32 RewardId = 4;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRewardId($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->RewardId = $arr;

        return $this;
    }

}

