RoomInfo.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: common.proto
  4. namespace Common_pack;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Generated from protobuf message <code>common_pack.RoomInfo</code>
  10. */
  11. class RoomInfo extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>repeated .common_pack.RoleData roles = 1;</code>
  15. */
  16. private $roles;
  17. /**
  18. * Generated from protobuf field <code>repeated .common_pack.ColorData colors = 2;</code>
  19. */
  20. private $colors;
  21. /**
  22. * Generated from protobuf field <code>.common_pack.roomType room_type = 3;</code>
  23. */
  24. protected $room_type = 0;
  25. /**
  26. * Generated from protobuf field <code>.common_pack.roomMode room_mode = 4;</code>
  27. */
  28. protected $room_mode = 0;
  29. /**
  30. *当前那个阵营的回合
  31. *
  32. * Generated from protobuf field <code>.common_pack.roleType cur_round_color = 5;</code>
  33. */
  34. protected $cur_round_color = 0;
  35. /**
  36. * Generated from protobuf field <code>repeated .common_pack.round rounds = 6;</code>
  37. */
  38. private $rounds;
  39. /**
  40. * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 7;</code>
  41. */
  42. private $finish_colors;
  43. /**
  44. * Generated from protobuf field <code>repeated .common_pack.ColorData kict_colors = 8;</code>
  45. */
  46. private $kict_colors;
  47. /**
  48. * Generated from protobuf field <code>int32 id = 9;</code>
  49. */
  50. protected $id = 0;
  51. /**
  52. *房间的每个等级都对应着不同的奖励和消耗
  53. *
  54. * Generated from protobuf field <code>int32 room_level = 10;</code>
  55. */
  56. protected $room_level = 0;
  57. /**
  58. * Generated from protobuf field <code>.common_pack.roomStatus room_status = 11;</code>
  59. */
  60. protected $room_status = 0;
  61. /**
  62. *当前阵营操作的类型
  63. *
  64. * Generated from protobuf field <code>.common_pack.NotifyPlayerOpt cur_color_opt_data = 12;</code>
  65. */
  66. protected $cur_color_opt_data = null;
  67. /**
  68. *玩家当前剩余操作时间
  69. *
  70. * Generated from protobuf field <code>int32 opt_time = 13;</code>
  71. */
  72. protected $opt_time = 0;
  73. /**
  74. * Constructor.
  75. *
  76. * @param array $data {
  77. * Optional. Data for populating the Message object.
  78. *
  79. * @type \Common_pack\RoleData[]|\Google\Protobuf\Internal\RepeatedField $roles
  80. * @type \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $colors
  81. * @type int $room_type
  82. * @type int $room_mode
  83. * @type int $cur_round_color
  84. * 当前那个阵营的回合
  85. * @type \Common_pack\round[]|\Google\Protobuf\Internal\RepeatedField $rounds
  86. * @type \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $finish_colors
  87. * @type \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $kict_colors
  88. * @type int $id
  89. * @type int $room_level
  90. * 房间的每个等级都对应着不同的奖励和消耗
  91. * @type int $room_status
  92. * @type \Common_pack\NotifyPlayerOpt $cur_color_opt_data
  93. * 当前阵营操作的类型
  94. * @type int $opt_time
  95. * 玩家当前剩余操作时间
  96. * }
  97. */
  98. public function __construct($data = NULL) {
  99. \GPBMetadata\Common::initOnce();
  100. parent::__construct($data);
  101. }
  102. /**
  103. * Generated from protobuf field <code>repeated .common_pack.RoleData roles = 1;</code>
  104. * @return \Google\Protobuf\Internal\RepeatedField
  105. */
  106. public function getRoles()
  107. {
  108. return $this->roles;
  109. }
  110. /**
  111. * Generated from protobuf field <code>repeated .common_pack.RoleData roles = 1;</code>
  112. * @param \Common_pack\RoleData[]|\Google\Protobuf\Internal\RepeatedField $var
  113. * @return $this
  114. */
  115. public function setRoles($var)
  116. {
  117. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\RoleData::class);
  118. $this->roles = $arr;
  119. return $this;
  120. }
  121. /**
  122. * Generated from protobuf field <code>repeated .common_pack.ColorData colors = 2;</code>
  123. * @return \Google\Protobuf\Internal\RepeatedField
  124. */
  125. public function getColors()
  126. {
  127. return $this->colors;
  128. }
  129. /**
  130. * Generated from protobuf field <code>repeated .common_pack.ColorData colors = 2;</code>
  131. * @param \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $var
  132. * @return $this
  133. */
  134. public function setColors($var)
  135. {
  136. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\ColorData::class);
  137. $this->colors = $arr;
  138. return $this;
  139. }
  140. /**
  141. * Generated from protobuf field <code>.common_pack.roomType room_type = 3;</code>
  142. * @return int
  143. */
  144. public function getRoomType()
  145. {
  146. return $this->room_type;
  147. }
  148. /**
  149. * Generated from protobuf field <code>.common_pack.roomType room_type = 3;</code>
  150. * @param int $var
  151. * @return $this
  152. */
  153. public function setRoomType($var)
  154. {
  155. GPBUtil::checkEnum($var, \Common_pack\roomType::class);
  156. $this->room_type = $var;
  157. return $this;
  158. }
  159. /**
  160. * Generated from protobuf field <code>.common_pack.roomMode room_mode = 4;</code>
  161. * @return int
  162. */
  163. public function getRoomMode()
  164. {
  165. return $this->room_mode;
  166. }
  167. /**
  168. * Generated from protobuf field <code>.common_pack.roomMode room_mode = 4;</code>
  169. * @param int $var
  170. * @return $this
  171. */
  172. public function setRoomMode($var)
  173. {
  174. GPBUtil::checkEnum($var, \Common_pack\roomMode::class);
  175. $this->room_mode = $var;
  176. return $this;
  177. }
  178. /**
  179. *当前那个阵营的回合
  180. *
  181. * Generated from protobuf field <code>.common_pack.roleType cur_round_color = 5;</code>
  182. * @return int
  183. */
  184. public function getCurRoundColor()
  185. {
  186. return $this->cur_round_color;
  187. }
  188. /**
  189. *当前那个阵营的回合
  190. *
  191. * Generated from protobuf field <code>.common_pack.roleType cur_round_color = 5;</code>
  192. * @param int $var
  193. * @return $this
  194. */
  195. public function setCurRoundColor($var)
  196. {
  197. GPBUtil::checkEnum($var, \Common_pack\roleType::class);
  198. $this->cur_round_color = $var;
  199. return $this;
  200. }
  201. /**
  202. * Generated from protobuf field <code>repeated .common_pack.round rounds = 6;</code>
  203. * @return \Google\Protobuf\Internal\RepeatedField
  204. */
  205. public function getRounds()
  206. {
  207. return $this->rounds;
  208. }
  209. /**
  210. * Generated from protobuf field <code>repeated .common_pack.round rounds = 6;</code>
  211. * @param \Common_pack\round[]|\Google\Protobuf\Internal\RepeatedField $var
  212. * @return $this
  213. */
  214. public function setRounds($var)
  215. {
  216. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\round::class);
  217. $this->rounds = $arr;
  218. return $this;
  219. }
  220. /**
  221. * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 7;</code>
  222. * @return \Google\Protobuf\Internal\RepeatedField
  223. */
  224. public function getFinishColors()
  225. {
  226. return $this->finish_colors;
  227. }
  228. /**
  229. * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 7;</code>
  230. * @param \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $var
  231. * @return $this
  232. */
  233. public function setFinishColors($var)
  234. {
  235. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\ColorData::class);
  236. $this->finish_colors = $arr;
  237. return $this;
  238. }
  239. /**
  240. * Generated from protobuf field <code>repeated .common_pack.ColorData kict_colors = 8;</code>
  241. * @return \Google\Protobuf\Internal\RepeatedField
  242. */
  243. public function getKictColors()
  244. {
  245. return $this->kict_colors;
  246. }
  247. /**
  248. * Generated from protobuf field <code>repeated .common_pack.ColorData kict_colors = 8;</code>
  249. * @param \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $var
  250. * @return $this
  251. */
  252. public function setKictColors($var)
  253. {
  254. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\ColorData::class);
  255. $this->kict_colors = $arr;
  256. return $this;
  257. }
  258. /**
  259. * Generated from protobuf field <code>int32 id = 9;</code>
  260. * @return int
  261. */
  262. public function getId()
  263. {
  264. return $this->id;
  265. }
  266. /**
  267. * Generated from protobuf field <code>int32 id = 9;</code>
  268. * @param int $var
  269. * @return $this
  270. */
  271. public function setId($var)
  272. {
  273. GPBUtil::checkInt32($var);
  274. $this->id = $var;
  275. return $this;
  276. }
  277. /**
  278. *房间的每个等级都对应着不同的奖励和消耗
  279. *
  280. * Generated from protobuf field <code>int32 room_level = 10;</code>
  281. * @return int
  282. */
  283. public function getRoomLevel()
  284. {
  285. return $this->room_level;
  286. }
  287. /**
  288. *房间的每个等级都对应着不同的奖励和消耗
  289. *
  290. * Generated from protobuf field <code>int32 room_level = 10;</code>
  291. * @param int $var
  292. * @return $this
  293. */
  294. public function setRoomLevel($var)
  295. {
  296. GPBUtil::checkInt32($var);
  297. $this->room_level = $var;
  298. return $this;
  299. }
  300. /**
  301. * Generated from protobuf field <code>.common_pack.roomStatus room_status = 11;</code>
  302. * @return int
  303. */
  304. public function getRoomStatus()
  305. {
  306. return $this->room_status;
  307. }
  308. /**
  309. * Generated from protobuf field <code>.common_pack.roomStatus room_status = 11;</code>
  310. * @param int $var
  311. * @return $this
  312. */
  313. public function setRoomStatus($var)
  314. {
  315. GPBUtil::checkEnum($var, \Common_pack\roomStatus::class);
  316. $this->room_status = $var;
  317. return $this;
  318. }
  319. /**
  320. *当前阵营操作的类型
  321. *
  322. * Generated from protobuf field <code>.common_pack.NotifyPlayerOpt cur_color_opt_data = 12;</code>
  323. * @return \Common_pack\NotifyPlayerOpt|null
  324. */
  325. public function getCurColorOptData()
  326. {
  327. return $this->cur_color_opt_data;
  328. }
  329. public function hasCurColorOptData()
  330. {
  331. return isset($this->cur_color_opt_data);
  332. }
  333. public function clearCurColorOptData()
  334. {
  335. unset($this->cur_color_opt_data);
  336. }
  337. /**
  338. *当前阵营操作的类型
  339. *
  340. * Generated from protobuf field <code>.common_pack.NotifyPlayerOpt cur_color_opt_data = 12;</code>
  341. * @param \Common_pack\NotifyPlayerOpt $var
  342. * @return $this
  343. */
  344. public function setCurColorOptData($var)
  345. {
  346. GPBUtil::checkMessage($var, \Common_pack\NotifyPlayerOpt::class);
  347. $this->cur_color_opt_data = $var;
  348. return $this;
  349. }
  350. /**
  351. *玩家当前剩余操作时间
  352. *
  353. * Generated from protobuf field <code>int32 opt_time = 13;</code>
  354. * @return int
  355. */
  356. public function getOptTime()
  357. {
  358. return $this->opt_time;
  359. }
  360. /**
  361. *玩家当前剩余操作时间
  362. *
  363. * Generated from protobuf field <code>int32 opt_time = 13;</code>
  364. * @param int $var
  365. * @return $this
  366. */
  367. public function setOptTime($var)
  368. {
  369. GPBUtil::checkInt32($var);
  370. $this->opt_time = $var;
  371. return $this;
  372. }
  373. }