common_pack.RoomInfo */ class RoomInfo extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field repeated .common_pack.RoleData roles = 1; */ private $roles; /** * Generated from protobuf field repeated .common_pack.ColorData colors = 2; */ private $colors; /** * Generated from protobuf field .common_pack.roomType room_type = 3; */ protected $room_type = 0; /** * Generated from protobuf field .common_pack.roomMode room_mode = 4; */ protected $room_mode = 0; /** *当前那个阵营的回合 * * Generated from protobuf field .common_pack.roleType cur_round_color = 5; */ protected $cur_round_color = 0; /** * Generated from protobuf field repeated .common_pack.round rounds = 6; */ private $rounds; /** * Generated from protobuf field repeated .common_pack.ColorData finish_colors = 7; */ private $finish_colors; /** * Generated from protobuf field repeated .common_pack.ColorData kict_colors = 8; */ private $kict_colors; /** * Generated from protobuf field int32 id = 9; */ protected $id = 0; /** *房间的每个等级都对应着不同的奖励和消耗 * * Generated from protobuf field int32 room_level = 10; */ protected $room_level = 0; /** * Generated from protobuf field .common_pack.roomStatus room_status = 11; */ protected $room_status = 0; /** *当前阵营操作的类型 * * Generated from protobuf field .common_pack.NotifyPlayerOpt cur_color_opt_data = 12; */ protected $cur_color_opt_data = null; /** *玩家当前剩余操作时间 * * Generated from protobuf field int32 opt_time = 13; */ 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 repeated .common_pack.RoleData roles = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRoles() { return $this->roles; } /** * Generated from protobuf field repeated .common_pack.RoleData roles = 1; * @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 repeated .common_pack.ColorData colors = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getColors() { return $this->colors; } /** * Generated from protobuf field repeated .common_pack.ColorData colors = 2; * @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 .common_pack.roomType room_type = 3; * @return int */ public function getRoomType() { return $this->room_type; } /** * Generated from protobuf field .common_pack.roomType room_type = 3; * @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 .common_pack.roomMode room_mode = 4; * @return int */ public function getRoomMode() { return $this->room_mode; } /** * Generated from protobuf field .common_pack.roomMode room_mode = 4; * @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 .common_pack.roleType cur_round_color = 5; * @return int */ public function getCurRoundColor() { return $this->cur_round_color; } /** *当前那个阵营的回合 * * Generated from protobuf field .common_pack.roleType cur_round_color = 5; * @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 repeated .common_pack.round rounds = 6; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRounds() { return $this->rounds; } /** * Generated from protobuf field repeated .common_pack.round rounds = 6; * @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 repeated .common_pack.ColorData finish_colors = 7; * @return \Google\Protobuf\Internal\RepeatedField */ public function getFinishColors() { return $this->finish_colors; } /** * Generated from protobuf field repeated .common_pack.ColorData finish_colors = 7; * @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 repeated .common_pack.ColorData kict_colors = 8; * @return \Google\Protobuf\Internal\RepeatedField */ public function getKictColors() { return $this->kict_colors; } /** * Generated from protobuf field repeated .common_pack.ColorData kict_colors = 8; * @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 int32 id = 9; * @return int */ public function getId() { return $this->id; } /** * Generated from protobuf field int32 id = 9; * @param int $var * @return $this */ public function setId($var) { GPBUtil::checkInt32($var); $this->id = $var; return $this; } /** *房间的每个等级都对应着不同的奖励和消耗 * * Generated from protobuf field int32 room_level = 10; * @return int */ public function getRoomLevel() { return $this->room_level; } /** *房间的每个等级都对应着不同的奖励和消耗 * * Generated from protobuf field int32 room_level = 10; * @param int $var * @return $this */ public function setRoomLevel($var) { GPBUtil::checkInt32($var); $this->room_level = $var; return $this; } /** * Generated from protobuf field .common_pack.roomStatus room_status = 11; * @return int */ public function getRoomStatus() { return $this->room_status; } /** * Generated from protobuf field .common_pack.roomStatus room_status = 11; * @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 .common_pack.NotifyPlayerOpt cur_color_opt_data = 12; * @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 .common_pack.NotifyPlayerOpt cur_color_opt_data = 12; * @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 int32 opt_time = 13; * @return int */ public function getOptTime() { return $this->opt_time; } /** *玩家当前剩余操作时间 * * Generated from protobuf field int32 opt_time = 13; * @param int $var * @return $this */ public function setOptTime($var) { GPBUtil::checkInt32($var); $this->opt_time = $var; return $this; } }