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