|
@@ -0,0 +1,420 @@
|
|
|
+<?php
|
|
|
+# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
+# source: common.proto
|
|
|
+
|
|
|
+namespace Common_pack;
|
|
|
+
|
|
|
+use Google\Protobuf\Internal\GPBType;
|
|
|
+use Google\Protobuf\Internal\RepeatedField;
|
|
|
+use Google\Protobuf\Internal\GPBUtil;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Generated from protobuf message <code>common_pack.RoomInfo</code>
|
|
|
+ */
|
|
|
+class RoomInfo extends \Google\Protobuf\Internal\Message
|
|
|
+{
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>repeated .common_pack.RoleData roles = 1;</code>
|
|
|
+ */
|
|
|
+ private $roles;
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>repeated .common_pack.ColorData colors = 2;</code>
|
|
|
+ */
|
|
|
+ private $colors;
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>.common_pack.roomType room_type = 3;</code>
|
|
|
+ */
|
|
|
+ protected $room_type = 0;
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>.common_pack.roomMode room_mode = 4;</code>
|
|
|
+ */
|
|
|
+ protected $room_mode = 0;
|
|
|
+ /**
|
|
|
+ *当前那个阵营的回合
|
|
|
+ *
|
|
|
+ * Generated from protobuf field <code>.common_pack.roleType cur_round_color = 5;</code>
|
|
|
+ */
|
|
|
+ protected $cur_round_color = 0;
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>repeated .common_pack.round rounds = 6;</code>
|
|
|
+ */
|
|
|
+ private $rounds;
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 7;</code>
|
|
|
+ */
|
|
|
+ private $finish_colors;
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>repeated .common_pack.ColorData kict_colors = 8;</code>
|
|
|
+ */
|
|
|
+ private $kict_colors;
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>int32 id = 9;</code>
|
|
|
+ */
|
|
|
+ protected $id = 0;
|
|
|
+ /**
|
|
|
+ *房间的每个等级都对应着不同的奖励和消耗
|
|
|
+ *
|
|
|
+ * Generated from protobuf field <code>int32 room_level = 10;</code>
|
|
|
+ */
|
|
|
+ protected $room_level = 0;
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>.common_pack.roomStatus room_status = 11;</code>
|
|
|
+ */
|
|
|
+ protected $room_status = 0;
|
|
|
+ /**
|
|
|
+ *当前阵营操作的类型
|
|
|
+ *
|
|
|
+ * Generated from protobuf field <code>.common_pack.NotifyPlayerOpt cur_color_opt_data = 12;</code>
|
|
|
+ */
|
|
|
+ protected $cur_color_opt_data = null;
|
|
|
+ /**
|
|
|
+ *玩家当前剩余操作时间
|
|
|
+ *
|
|
|
+ * Generated from protobuf field <code>int32 opt_time = 13;</code>
|
|
|
+ */
|
|
|
+ protected $opt_time = 0;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Constructor.
|
|
|
+ *
|
|
|
+ * @param array $data {
|
|
|
+ * Optional. Data for populating the Message object.
|
|
|
+ *
|
|
|
+ * @type \Common_pack\RoleData[]|\Google\Protobuf\Internal\RepeatedField $roles
|
|
|
+ * @type \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $colors
|
|
|
+ * @type int $room_type
|
|
|
+ * @type int $room_mode
|
|
|
+ * @type int $cur_round_color
|
|
|
+ * 当前那个阵营的回合
|
|
|
+ * @type \Common_pack\round[]|\Google\Protobuf\Internal\RepeatedField $rounds
|
|
|
+ * @type \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $finish_colors
|
|
|
+ * @type \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $kict_colors
|
|
|
+ * @type int $id
|
|
|
+ * @type int $room_level
|
|
|
+ * 房间的每个等级都对应着不同的奖励和消耗
|
|
|
+ * @type int $room_status
|
|
|
+ * @type \Common_pack\NotifyPlayerOpt $cur_color_opt_data
|
|
|
+ * 当前阵营操作的类型
|
|
|
+ * @type int $opt_time
|
|
|
+ * 玩家当前剩余操作时间
|
|
|
+ * }
|
|
|
+ */
|
|
|
+ public function __construct($data = NULL) {
|
|
|
+ \GPBMetadata\Common::initOnce();
|
|
|
+ parent::__construct($data);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>repeated .common_pack.RoleData roles = 1;</code>
|
|
|
+ * @return \Google\Protobuf\Internal\RepeatedField
|
|
|
+ */
|
|
|
+ public function getRoles()
|
|
|
+ {
|
|
|
+ return $this->roles;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>repeated .common_pack.RoleData roles = 1;</code>
|
|
|
+ * @param \Common_pack\RoleData[]|\Google\Protobuf\Internal\RepeatedField $var
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function setRoles($var)
|
|
|
+ {
|
|
|
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\RoleData::class);
|
|
|
+ $this->roles = $arr;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>repeated .common_pack.ColorData colors = 2;</code>
|
|
|
+ * @return \Google\Protobuf\Internal\RepeatedField
|
|
|
+ */
|
|
|
+ public function getColors()
|
|
|
+ {
|
|
|
+ return $this->colors;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>repeated .common_pack.ColorData colors = 2;</code>
|
|
|
+ * @param \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $var
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function setColors($var)
|
|
|
+ {
|
|
|
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\ColorData::class);
|
|
|
+ $this->colors = $arr;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>.common_pack.roomType room_type = 3;</code>
|
|
|
+ * @return int
|
|
|
+ */
|
|
|
+ public function getRoomType()
|
|
|
+ {
|
|
|
+ return $this->room_type;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>.common_pack.roomType room_type = 3;</code>
|
|
|
+ * @param int $var
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function setRoomType($var)
|
|
|
+ {
|
|
|
+ GPBUtil::checkEnum($var, \Common_pack\roomType::class);
|
|
|
+ $this->room_type = $var;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>.common_pack.roomMode room_mode = 4;</code>
|
|
|
+ * @return int
|
|
|
+ */
|
|
|
+ public function getRoomMode()
|
|
|
+ {
|
|
|
+ return $this->room_mode;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>.common_pack.roomMode room_mode = 4;</code>
|
|
|
+ * @param int $var
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function setRoomMode($var)
|
|
|
+ {
|
|
|
+ GPBUtil::checkEnum($var, \Common_pack\roomMode::class);
|
|
|
+ $this->room_mode = $var;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *当前那个阵营的回合
|
|
|
+ *
|
|
|
+ * Generated from protobuf field <code>.common_pack.roleType cur_round_color = 5;</code>
|
|
|
+ * @return int
|
|
|
+ */
|
|
|
+ public function getCurRoundColor()
|
|
|
+ {
|
|
|
+ return $this->cur_round_color;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *当前那个阵营的回合
|
|
|
+ *
|
|
|
+ * Generated from protobuf field <code>.common_pack.roleType cur_round_color = 5;</code>
|
|
|
+ * @param int $var
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function setCurRoundColor($var)
|
|
|
+ {
|
|
|
+ GPBUtil::checkEnum($var, \Common_pack\roleType::class);
|
|
|
+ $this->cur_round_color = $var;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>repeated .common_pack.round rounds = 6;</code>
|
|
|
+ * @return \Google\Protobuf\Internal\RepeatedField
|
|
|
+ */
|
|
|
+ public function getRounds()
|
|
|
+ {
|
|
|
+ return $this->rounds;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>repeated .common_pack.round rounds = 6;</code>
|
|
|
+ * @param \Common_pack\round[]|\Google\Protobuf\Internal\RepeatedField $var
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function setRounds($var)
|
|
|
+ {
|
|
|
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\round::class);
|
|
|
+ $this->rounds = $arr;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 7;</code>
|
|
|
+ * @return \Google\Protobuf\Internal\RepeatedField
|
|
|
+ */
|
|
|
+ public function getFinishColors()
|
|
|
+ {
|
|
|
+ return $this->finish_colors;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 7;</code>
|
|
|
+ * @param \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $var
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function setFinishColors($var)
|
|
|
+ {
|
|
|
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\ColorData::class);
|
|
|
+ $this->finish_colors = $arr;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>repeated .common_pack.ColorData kict_colors = 8;</code>
|
|
|
+ * @return \Google\Protobuf\Internal\RepeatedField
|
|
|
+ */
|
|
|
+ public function getKictColors()
|
|
|
+ {
|
|
|
+ return $this->kict_colors;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>repeated .common_pack.ColorData kict_colors = 8;</code>
|
|
|
+ * @param \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $var
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function setKictColors($var)
|
|
|
+ {
|
|
|
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\ColorData::class);
|
|
|
+ $this->kict_colors = $arr;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>int32 id = 9;</code>
|
|
|
+ * @return int
|
|
|
+ */
|
|
|
+ public function getId()
|
|
|
+ {
|
|
|
+ return $this->id;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>int32 id = 9;</code>
|
|
|
+ * @param int $var
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function setId($var)
|
|
|
+ {
|
|
|
+ GPBUtil::checkInt32($var);
|
|
|
+ $this->id = $var;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *房间的每个等级都对应着不同的奖励和消耗
|
|
|
+ *
|
|
|
+ * Generated from protobuf field <code>int32 room_level = 10;</code>
|
|
|
+ * @return int
|
|
|
+ */
|
|
|
+ public function getRoomLevel()
|
|
|
+ {
|
|
|
+ return $this->room_level;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *房间的每个等级都对应着不同的奖励和消耗
|
|
|
+ *
|
|
|
+ * Generated from protobuf field <code>int32 room_level = 10;</code>
|
|
|
+ * @param int $var
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function setRoomLevel($var)
|
|
|
+ {
|
|
|
+ GPBUtil::checkInt32($var);
|
|
|
+ $this->room_level = $var;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>.common_pack.roomStatus room_status = 11;</code>
|
|
|
+ * @return int
|
|
|
+ */
|
|
|
+ public function getRoomStatus()
|
|
|
+ {
|
|
|
+ return $this->room_status;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Generated from protobuf field <code>.common_pack.roomStatus room_status = 11;</code>
|
|
|
+ * @param int $var
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function setRoomStatus($var)
|
|
|
+ {
|
|
|
+ GPBUtil::checkEnum($var, \Common_pack\roomStatus::class);
|
|
|
+ $this->room_status = $var;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *当前阵营操作的类型
|
|
|
+ *
|
|
|
+ * Generated from protobuf field <code>.common_pack.NotifyPlayerOpt cur_color_opt_data = 12;</code>
|
|
|
+ * @return \Common_pack\NotifyPlayerOpt|null
|
|
|
+ */
|
|
|
+ public function getCurColorOptData()
|
|
|
+ {
|
|
|
+ return $this->cur_color_opt_data;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function hasCurColorOptData()
|
|
|
+ {
|
|
|
+ return isset($this->cur_color_opt_data);
|
|
|
+ }
|
|
|
+
|
|
|
+ public function clearCurColorOptData()
|
|
|
+ {
|
|
|
+ unset($this->cur_color_opt_data);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *当前阵营操作的类型
|
|
|
+ *
|
|
|
+ * Generated from protobuf field <code>.common_pack.NotifyPlayerOpt cur_color_opt_data = 12;</code>
|
|
|
+ * @param \Common_pack\NotifyPlayerOpt $var
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function setCurColorOptData($var)
|
|
|
+ {
|
|
|
+ GPBUtil::checkMessage($var, \Common_pack\NotifyPlayerOpt::class);
|
|
|
+ $this->cur_color_opt_data = $var;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *玩家当前剩余操作时间
|
|
|
+ *
|
|
|
+ * Generated from protobuf field <code>int32 opt_time = 13;</code>
|
|
|
+ * @return int
|
|
|
+ */
|
|
|
+ public function getOptTime()
|
|
|
+ {
|
|
|
+ return $this->opt_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *玩家当前剩余操作时间
|
|
|
+ *
|
|
|
+ * Generated from protobuf field <code>int32 opt_time = 13;</code>
|
|
|
+ * @param int $var
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function setOptTime($var)
|
|
|
+ {
|
|
|
+ GPBUtil::checkInt32($var);
|
|
|
+ $this->opt_time = $var;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|