common.pb.go 73 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.6
  4. // protoc v3.21.5
  5. // source: common.proto
  6. package msg
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. unsafe "unsafe"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type RoleType int32
  21. const (
  22. RoleType_ROLE_TYPE_UNKNOWN RoleType = 0
  23. RoleType_RED RoleType = 1 // 无操作
  24. RoleType_BLUE RoleType = 4
  25. RoleType_YELLOW RoleType = 3
  26. RoleType_GREEN RoleType = 2
  27. )
  28. // Enum value maps for RoleType.
  29. var (
  30. RoleType_name = map[int32]string{
  31. 0: "ROLE_TYPE_UNKNOWN",
  32. 1: "RED",
  33. 4: "BLUE",
  34. 3: "YELLOW",
  35. 2: "GREEN",
  36. }
  37. RoleType_value = map[string]int32{
  38. "ROLE_TYPE_UNKNOWN": 0,
  39. "RED": 1,
  40. "BLUE": 4,
  41. "YELLOW": 3,
  42. "GREEN": 2,
  43. }
  44. )
  45. func (x RoleType) Enum() *RoleType {
  46. p := new(RoleType)
  47. *p = x
  48. return p
  49. }
  50. func (x RoleType) String() string {
  51. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  52. }
  53. func (RoleType) Descriptor() protoreflect.EnumDescriptor {
  54. return file_common_proto_enumTypes[0].Descriptor()
  55. }
  56. func (RoleType) Type() protoreflect.EnumType {
  57. return &file_common_proto_enumTypes[0]
  58. }
  59. func (x RoleType) Number() protoreflect.EnumNumber {
  60. return protoreflect.EnumNumber(x)
  61. }
  62. // Deprecated: Use RoleType.Descriptor instead.
  63. func (RoleType) EnumDescriptor() ([]byte, []int) {
  64. return file_common_proto_rawDescGZIP(), []int{0}
  65. }
  66. type OptType int32
  67. const (
  68. OptType_OPT_TYPE_UNKNOWN OptType = 0
  69. OptType_ZHI_SHAI_ZI OptType = 1
  70. OptType_SELECT_ROLE OptType = 2
  71. )
  72. // Enum value maps for OptType.
  73. var (
  74. OptType_name = map[int32]string{
  75. 0: "OPT_TYPE_UNKNOWN",
  76. 1: "ZHI_SHAI_ZI",
  77. 2: "SELECT_ROLE",
  78. }
  79. OptType_value = map[string]int32{
  80. "OPT_TYPE_UNKNOWN": 0,
  81. "ZHI_SHAI_ZI": 1,
  82. "SELECT_ROLE": 2,
  83. }
  84. )
  85. func (x OptType) Enum() *OptType {
  86. p := new(OptType)
  87. *p = x
  88. return p
  89. }
  90. func (x OptType) String() string {
  91. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  92. }
  93. func (OptType) Descriptor() protoreflect.EnumDescriptor {
  94. return file_common_proto_enumTypes[1].Descriptor()
  95. }
  96. func (OptType) Type() protoreflect.EnumType {
  97. return &file_common_proto_enumTypes[1]
  98. }
  99. func (x OptType) Number() protoreflect.EnumNumber {
  100. return protoreflect.EnumNumber(x)
  101. }
  102. // Deprecated: Use OptType.Descriptor instead.
  103. func (OptType) EnumDescriptor() ([]byte, []int) {
  104. return file_common_proto_rawDescGZIP(), []int{1}
  105. }
  106. type RoomType int32
  107. const (
  108. RoomType_ROOM_TYPE_UNKNOWN RoomType = 0
  109. RoomType_SHUANG_REN RoomType = 1
  110. RoomType_SIREN_REN RoomType = 2
  111. )
  112. // Enum value maps for RoomType.
  113. var (
  114. RoomType_name = map[int32]string{
  115. 0: "ROOM_TYPE_UNKNOWN",
  116. 1: "SHUANG_REN",
  117. 2: "SIREN_REN",
  118. }
  119. RoomType_value = map[string]int32{
  120. "ROOM_TYPE_UNKNOWN": 0,
  121. "SHUANG_REN": 1,
  122. "SIREN_REN": 2,
  123. }
  124. )
  125. func (x RoomType) Enum() *RoomType {
  126. p := new(RoomType)
  127. *p = x
  128. return p
  129. }
  130. func (x RoomType) String() string {
  131. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  132. }
  133. func (RoomType) Descriptor() protoreflect.EnumDescriptor {
  134. return file_common_proto_enumTypes[2].Descriptor()
  135. }
  136. func (RoomType) Type() protoreflect.EnumType {
  137. return &file_common_proto_enumTypes[2]
  138. }
  139. func (x RoomType) Number() protoreflect.EnumNumber {
  140. return protoreflect.EnumNumber(x)
  141. }
  142. // Deprecated: Use RoomType.Descriptor instead.
  143. func (RoomType) EnumDescriptor() ([]byte, []int) {
  144. return file_common_proto_rawDescGZIP(), []int{2}
  145. }
  146. type RoomMode int32
  147. const (
  148. RoomMode_ROOM_MODE_UNKNOWN RoomMode = 0
  149. RoomMode_REN_JI RoomMode = 1
  150. RoomMode_WAN_JIA RoomMode = 2
  151. )
  152. // Enum value maps for RoomMode.
  153. var (
  154. RoomMode_name = map[int32]string{
  155. 0: "ROOM_MODE_UNKNOWN",
  156. 1: "REN_JI",
  157. 2: "WAN_JIA",
  158. }
  159. RoomMode_value = map[string]int32{
  160. "ROOM_MODE_UNKNOWN": 0,
  161. "REN_JI": 1,
  162. "WAN_JIA": 2,
  163. }
  164. )
  165. func (x RoomMode) Enum() *RoomMode {
  166. p := new(RoomMode)
  167. *p = x
  168. return p
  169. }
  170. func (x RoomMode) String() string {
  171. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  172. }
  173. func (RoomMode) Descriptor() protoreflect.EnumDescriptor {
  174. return file_common_proto_enumTypes[3].Descriptor()
  175. }
  176. func (RoomMode) Type() protoreflect.EnumType {
  177. return &file_common_proto_enumTypes[3]
  178. }
  179. func (x RoomMode) Number() protoreflect.EnumNumber {
  180. return protoreflect.EnumNumber(x)
  181. }
  182. // Deprecated: Use RoomMode.Descriptor instead.
  183. func (RoomMode) EnumDescriptor() ([]byte, []int) {
  184. return file_common_proto_rawDescGZIP(), []int{3}
  185. }
  186. type RoadType int32
  187. const (
  188. RoadType_ROAD_TYPE_UNKNOWN RoadType = 0
  189. RoadType_HOME RoadType = 1
  190. )
  191. // Enum value maps for RoadType.
  192. var (
  193. RoadType_name = map[int32]string{
  194. 0: "ROAD_TYPE_UNKNOWN",
  195. 1: "HOME",
  196. }
  197. RoadType_value = map[string]int32{
  198. "ROAD_TYPE_UNKNOWN": 0,
  199. "HOME": 1,
  200. }
  201. )
  202. func (x RoadType) Enum() *RoadType {
  203. p := new(RoadType)
  204. *p = x
  205. return p
  206. }
  207. func (x RoadType) String() string {
  208. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  209. }
  210. func (RoadType) Descriptor() protoreflect.EnumDescriptor {
  211. return file_common_proto_enumTypes[4].Descriptor()
  212. }
  213. func (RoadType) Type() protoreflect.EnumType {
  214. return &file_common_proto_enumTypes[4]
  215. }
  216. func (x RoadType) Number() protoreflect.EnumNumber {
  217. return protoreflect.EnumNumber(x)
  218. }
  219. // Deprecated: Use RoadType.Descriptor instead.
  220. func (RoadType) EnumDescriptor() ([]byte, []int) {
  221. return file_common_proto_rawDescGZIP(), []int{4}
  222. }
  223. type PlayerStatus int32
  224. const (
  225. PlayerStatus_PLAYER_STATUS_UNKNOWN PlayerStatus = 0
  226. PlayerStatus_SZ_ANIMATION PlayerStatus = 1
  227. PlayerStatus_COLOR_FINISH PlayerStatus = 2
  228. PlayerStatus_COLOR_KICK PlayerStatus = 3
  229. PlayerStatus_COLOR_TIME_OUT PlayerStatus = 4
  230. )
  231. // Enum value maps for PlayerStatus.
  232. var (
  233. PlayerStatus_name = map[int32]string{
  234. 0: "PLAYER_STATUS_UNKNOWN",
  235. 1: "SZ_ANIMATION",
  236. 2: "COLOR_FINISH",
  237. 3: "COLOR_KICK",
  238. 4: "COLOR_TIME_OUT",
  239. }
  240. PlayerStatus_value = map[string]int32{
  241. "PLAYER_STATUS_UNKNOWN": 0,
  242. "SZ_ANIMATION": 1,
  243. "COLOR_FINISH": 2,
  244. "COLOR_KICK": 3,
  245. "COLOR_TIME_OUT": 4,
  246. }
  247. )
  248. func (x PlayerStatus) Enum() *PlayerStatus {
  249. p := new(PlayerStatus)
  250. *p = x
  251. return p
  252. }
  253. func (x PlayerStatus) String() string {
  254. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  255. }
  256. func (PlayerStatus) Descriptor() protoreflect.EnumDescriptor {
  257. return file_common_proto_enumTypes[5].Descriptor()
  258. }
  259. func (PlayerStatus) Type() protoreflect.EnumType {
  260. return &file_common_proto_enumTypes[5]
  261. }
  262. func (x PlayerStatus) Number() protoreflect.EnumNumber {
  263. return protoreflect.EnumNumber(x)
  264. }
  265. // Deprecated: Use PlayerStatus.Descriptor instead.
  266. func (PlayerStatus) EnumDescriptor() ([]byte, []int) {
  267. return file_common_proto_rawDescGZIP(), []int{5}
  268. }
  269. type RoomStatus int32
  270. const (
  271. RoomStatus_AWAIT RoomStatus = 0
  272. RoomStatus_START RoomStatus = 1
  273. RoomStatus_END RoomStatus = 2
  274. )
  275. // Enum value maps for RoomStatus.
  276. var (
  277. RoomStatus_name = map[int32]string{
  278. 0: "AWAIT",
  279. 1: "START",
  280. 2: "END",
  281. }
  282. RoomStatus_value = map[string]int32{
  283. "AWAIT": 0,
  284. "START": 1,
  285. "END": 2,
  286. }
  287. )
  288. func (x RoomStatus) Enum() *RoomStatus {
  289. p := new(RoomStatus)
  290. *p = x
  291. return p
  292. }
  293. func (x RoomStatus) String() string {
  294. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  295. }
  296. func (RoomStatus) Descriptor() protoreflect.EnumDescriptor {
  297. return file_common_proto_enumTypes[6].Descriptor()
  298. }
  299. func (RoomStatus) Type() protoreflect.EnumType {
  300. return &file_common_proto_enumTypes[6]
  301. }
  302. func (x RoomStatus) Number() protoreflect.EnumNumber {
  303. return protoreflect.EnumNumber(x)
  304. }
  305. // Deprecated: Use RoomStatus.Descriptor instead.
  306. func (RoomStatus) EnumDescriptor() ([]byte, []int) {
  307. return file_common_proto_rawDescGZIP(), []int{6}
  308. }
  309. type Round struct {
  310. state protoimpl.MessageState `protogen:"open.v1"`
  311. MColor RoleType `protobuf:"varint,1,opt,name=m_color,json=mColor,proto3,enum=RoleType" json:"m_color,omitempty"`
  312. MRoad string `protobuf:"bytes,2,opt,name=m_road,json=mRoad,proto3" json:"m_road,omitempty"`
  313. Opt OptType `protobuf:"varint,3,opt,name=opt,proto3,enum=OptType" json:"opt,omitempty"`
  314. SzNumber int32 `protobuf:"varint,4,opt,name=szNumber,proto3" json:"szNumber,omitempty"`
  315. unknownFields protoimpl.UnknownFields
  316. sizeCache protoimpl.SizeCache
  317. }
  318. func (x *Round) Reset() {
  319. *x = Round{}
  320. mi := &file_common_proto_msgTypes[0]
  321. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  322. ms.StoreMessageInfo(mi)
  323. }
  324. func (x *Round) String() string {
  325. return protoimpl.X.MessageStringOf(x)
  326. }
  327. func (*Round) ProtoMessage() {}
  328. func (x *Round) ProtoReflect() protoreflect.Message {
  329. mi := &file_common_proto_msgTypes[0]
  330. if x != nil {
  331. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  332. if ms.LoadMessageInfo() == nil {
  333. ms.StoreMessageInfo(mi)
  334. }
  335. return ms
  336. }
  337. return mi.MessageOf(x)
  338. }
  339. // Deprecated: Use Round.ProtoReflect.Descriptor instead.
  340. func (*Round) Descriptor() ([]byte, []int) {
  341. return file_common_proto_rawDescGZIP(), []int{0}
  342. }
  343. func (x *Round) GetMColor() RoleType {
  344. if x != nil {
  345. return x.MColor
  346. }
  347. return RoleType_ROLE_TYPE_UNKNOWN
  348. }
  349. func (x *Round) GetMRoad() string {
  350. if x != nil {
  351. return x.MRoad
  352. }
  353. return ""
  354. }
  355. func (x *Round) GetOpt() OptType {
  356. if x != nil {
  357. return x.Opt
  358. }
  359. return OptType_OPT_TYPE_UNKNOWN
  360. }
  361. func (x *Round) GetSzNumber() int32 {
  362. if x != nil {
  363. return x.SzNumber
  364. }
  365. return 0
  366. }
  367. type RoomInfo struct {
  368. state protoimpl.MessageState `protogen:"open.v1"`
  369. Roles []*RoleData `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"`
  370. Colors []*ColorData `protobuf:"bytes,2,rep,name=colors,proto3" json:"colors,omitempty"`
  371. RoomType RoomType `protobuf:"varint,3,opt,name=room_type,json=roomType,proto3,enum=RoomType" json:"room_type,omitempty"`
  372. RoomMode RoomMode `protobuf:"varint,4,opt,name=room_mode,json=roomMode,proto3,enum=RoomMode" json:"room_mode,omitempty"`
  373. CurRoundColor RoleType `protobuf:"varint,5,opt,name=cur_round_color,json=curRoundColor,proto3,enum=RoleType" json:"cur_round_color,omitempty"` //当前那个阵营的回合
  374. Rounds []*Round `protobuf:"bytes,6,rep,name=rounds,proto3" json:"rounds,omitempty"`
  375. FinishColors []*ColorData `protobuf:"bytes,7,rep,name=finish_colors,json=finishColors,proto3" json:"finish_colors,omitempty"`
  376. KictColors []*ColorData `protobuf:"bytes,8,rep,name=kict_colors,json=kictColors,proto3" json:"kict_colors,omitempty"`
  377. Id int32 `protobuf:"varint,9,opt,name=id,proto3" json:"id,omitempty"`
  378. RoomLevel int32 `protobuf:"varint,10,opt,name=room_level,json=roomLevel,proto3" json:"room_level,omitempty"` //房间的每个等级都对应着不同的奖励和消耗
  379. RoomStatus RoomStatus `protobuf:"varint,11,opt,name=room_status,json=roomStatus,proto3,enum=RoomStatus" json:"room_status,omitempty"`
  380. CurColorOptData *NotifyPlayerOpt `protobuf:"bytes,12,opt,name=cur_color_opt_data,json=curColorOptData,proto3" json:"cur_color_opt_data,omitempty"` //当前阵营操作的类型
  381. OptTime int32 `protobuf:"varint,13,opt,name=opt_time,json=optTime,proto3" json:"opt_time,omitempty"` //玩家当前剩余操作时间
  382. unknownFields protoimpl.UnknownFields
  383. sizeCache protoimpl.SizeCache
  384. }
  385. func (x *RoomInfo) Reset() {
  386. *x = RoomInfo{}
  387. mi := &file_common_proto_msgTypes[1]
  388. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  389. ms.StoreMessageInfo(mi)
  390. }
  391. func (x *RoomInfo) String() string {
  392. return protoimpl.X.MessageStringOf(x)
  393. }
  394. func (*RoomInfo) ProtoMessage() {}
  395. func (x *RoomInfo) ProtoReflect() protoreflect.Message {
  396. mi := &file_common_proto_msgTypes[1]
  397. if x != nil {
  398. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  399. if ms.LoadMessageInfo() == nil {
  400. ms.StoreMessageInfo(mi)
  401. }
  402. return ms
  403. }
  404. return mi.MessageOf(x)
  405. }
  406. // Deprecated: Use RoomInfo.ProtoReflect.Descriptor instead.
  407. func (*RoomInfo) Descriptor() ([]byte, []int) {
  408. return file_common_proto_rawDescGZIP(), []int{1}
  409. }
  410. func (x *RoomInfo) GetRoles() []*RoleData {
  411. if x != nil {
  412. return x.Roles
  413. }
  414. return nil
  415. }
  416. func (x *RoomInfo) GetColors() []*ColorData {
  417. if x != nil {
  418. return x.Colors
  419. }
  420. return nil
  421. }
  422. func (x *RoomInfo) GetRoomType() RoomType {
  423. if x != nil {
  424. return x.RoomType
  425. }
  426. return RoomType_ROOM_TYPE_UNKNOWN
  427. }
  428. func (x *RoomInfo) GetRoomMode() RoomMode {
  429. if x != nil {
  430. return x.RoomMode
  431. }
  432. return RoomMode_ROOM_MODE_UNKNOWN
  433. }
  434. func (x *RoomInfo) GetCurRoundColor() RoleType {
  435. if x != nil {
  436. return x.CurRoundColor
  437. }
  438. return RoleType_ROLE_TYPE_UNKNOWN
  439. }
  440. func (x *RoomInfo) GetRounds() []*Round {
  441. if x != nil {
  442. return x.Rounds
  443. }
  444. return nil
  445. }
  446. func (x *RoomInfo) GetFinishColors() []*ColorData {
  447. if x != nil {
  448. return x.FinishColors
  449. }
  450. return nil
  451. }
  452. func (x *RoomInfo) GetKictColors() []*ColorData {
  453. if x != nil {
  454. return x.KictColors
  455. }
  456. return nil
  457. }
  458. func (x *RoomInfo) GetId() int32 {
  459. if x != nil {
  460. return x.Id
  461. }
  462. return 0
  463. }
  464. func (x *RoomInfo) GetRoomLevel() int32 {
  465. if x != nil {
  466. return x.RoomLevel
  467. }
  468. return 0
  469. }
  470. func (x *RoomInfo) GetRoomStatus() RoomStatus {
  471. if x != nil {
  472. return x.RoomStatus
  473. }
  474. return RoomStatus_AWAIT
  475. }
  476. func (x *RoomInfo) GetCurColorOptData() *NotifyPlayerOpt {
  477. if x != nil {
  478. return x.CurColorOptData
  479. }
  480. return nil
  481. }
  482. func (x *RoomInfo) GetOptTime() int32 {
  483. if x != nil {
  484. return x.OptTime
  485. }
  486. return 0
  487. }
  488. type RoleData struct {
  489. state protoimpl.MessageState `protogen:"open.v1"`
  490. MColor RoleType `protobuf:"varint,1,opt,name=m_color,json=mColor,proto3,enum=RoleType" json:"m_color,omitempty"`
  491. MSeat int32 `protobuf:"varint,2,opt,name=m_seat,json=mSeat,proto3" json:"m_seat,omitempty"`
  492. MId string `protobuf:"bytes,3,opt,name=m_id,json=mId,proto3" json:"m_id,omitempty"`
  493. MCurRoad RoadType `protobuf:"varint,4,opt,name=m_cur_road,json=mCurRoad,proto3,enum=RoadType" json:"m_cur_road,omitempty"`
  494. Step int32 `protobuf:"varint,5,opt,name=step,proto3" json:"step,omitempty"`
  495. OldSetp int32 `protobuf:"varint,6,opt,name=old_setp,json=oldSetp,proto3" json:"old_setp,omitempty"`
  496. unknownFields protoimpl.UnknownFields
  497. sizeCache protoimpl.SizeCache
  498. }
  499. func (x *RoleData) Reset() {
  500. *x = RoleData{}
  501. mi := &file_common_proto_msgTypes[2]
  502. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  503. ms.StoreMessageInfo(mi)
  504. }
  505. func (x *RoleData) String() string {
  506. return protoimpl.X.MessageStringOf(x)
  507. }
  508. func (*RoleData) ProtoMessage() {}
  509. func (x *RoleData) ProtoReflect() protoreflect.Message {
  510. mi := &file_common_proto_msgTypes[2]
  511. if x != nil {
  512. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  513. if ms.LoadMessageInfo() == nil {
  514. ms.StoreMessageInfo(mi)
  515. }
  516. return ms
  517. }
  518. return mi.MessageOf(x)
  519. }
  520. // Deprecated: Use RoleData.ProtoReflect.Descriptor instead.
  521. func (*RoleData) Descriptor() ([]byte, []int) {
  522. return file_common_proto_rawDescGZIP(), []int{2}
  523. }
  524. func (x *RoleData) GetMColor() RoleType {
  525. if x != nil {
  526. return x.MColor
  527. }
  528. return RoleType_ROLE_TYPE_UNKNOWN
  529. }
  530. func (x *RoleData) GetMSeat() int32 {
  531. if x != nil {
  532. return x.MSeat
  533. }
  534. return 0
  535. }
  536. func (x *RoleData) GetMId() string {
  537. if x != nil {
  538. return x.MId
  539. }
  540. return ""
  541. }
  542. func (x *RoleData) GetMCurRoad() RoadType {
  543. if x != nil {
  544. return x.MCurRoad
  545. }
  546. return RoadType_ROAD_TYPE_UNKNOWN
  547. }
  548. func (x *RoleData) GetStep() int32 {
  549. if x != nil {
  550. return x.Step
  551. }
  552. return 0
  553. }
  554. func (x *RoleData) GetOldSetp() int32 {
  555. if x != nil {
  556. return x.OldSetp
  557. }
  558. return 0
  559. }
  560. type ColorData struct {
  561. state protoimpl.MessageState `protogen:"open.v1"`
  562. MId string `protobuf:"bytes,1,opt,name=m_id,json=mId,proto3" json:"m_id,omitempty"`
  563. MColor RoleType `protobuf:"varint,2,opt,name=m_color,json=mColor,proto3,enum=RoleType" json:"m_color,omitempty"`
  564. IsKick bool `protobuf:"varint,3,opt,name=is_kick,json=isKick,proto3" json:"is_kick,omitempty"`
  565. IsFinish bool `protobuf:"varint,4,opt,name=is_finish,json=isFinish,proto3" json:"is_finish,omitempty"`
  566. TimeOutNum int32 `protobuf:"varint,5,opt,name=time_out_num,json=timeOutNum,proto3" json:"time_out_num,omitempty"`
  567. MName string `protobuf:"bytes,6,opt,name=m_name,json=mName,proto3" json:"m_name,omitempty"`
  568. MHead string `protobuf:"bytes,7,opt,name=m_head,json=mHead,proto3" json:"m_head,omitempty"`
  569. RankNum int32 `protobuf:"varint,8,opt,name=rank_num,json=rankNum,proto3" json:"rank_num,omitempty"`
  570. MCoin int32 `protobuf:"varint,9,opt,name=m_coin,json=mCoin,proto3" json:"m_coin,omitempty"`
  571. MRewardCoin int32 `protobuf:"varint,10,opt,name=m_reward_coin,json=mRewardCoin,proto3" json:"m_reward_coin,omitempty"`
  572. unknownFields protoimpl.UnknownFields
  573. sizeCache protoimpl.SizeCache
  574. }
  575. func (x *ColorData) Reset() {
  576. *x = ColorData{}
  577. mi := &file_common_proto_msgTypes[3]
  578. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  579. ms.StoreMessageInfo(mi)
  580. }
  581. func (x *ColorData) String() string {
  582. return protoimpl.X.MessageStringOf(x)
  583. }
  584. func (*ColorData) ProtoMessage() {}
  585. func (x *ColorData) ProtoReflect() protoreflect.Message {
  586. mi := &file_common_proto_msgTypes[3]
  587. if x != nil {
  588. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  589. if ms.LoadMessageInfo() == nil {
  590. ms.StoreMessageInfo(mi)
  591. }
  592. return ms
  593. }
  594. return mi.MessageOf(x)
  595. }
  596. // Deprecated: Use ColorData.ProtoReflect.Descriptor instead.
  597. func (*ColorData) Descriptor() ([]byte, []int) {
  598. return file_common_proto_rawDescGZIP(), []int{3}
  599. }
  600. func (x *ColorData) GetMId() string {
  601. if x != nil {
  602. return x.MId
  603. }
  604. return ""
  605. }
  606. func (x *ColorData) GetMColor() RoleType {
  607. if x != nil {
  608. return x.MColor
  609. }
  610. return RoleType_ROLE_TYPE_UNKNOWN
  611. }
  612. func (x *ColorData) GetIsKick() bool {
  613. if x != nil {
  614. return x.IsKick
  615. }
  616. return false
  617. }
  618. func (x *ColorData) GetIsFinish() bool {
  619. if x != nil {
  620. return x.IsFinish
  621. }
  622. return false
  623. }
  624. func (x *ColorData) GetTimeOutNum() int32 {
  625. if x != nil {
  626. return x.TimeOutNum
  627. }
  628. return 0
  629. }
  630. func (x *ColorData) GetMName() string {
  631. if x != nil {
  632. return x.MName
  633. }
  634. return ""
  635. }
  636. func (x *ColorData) GetMHead() string {
  637. if x != nil {
  638. return x.MHead
  639. }
  640. return ""
  641. }
  642. func (x *ColorData) GetRankNum() int32 {
  643. if x != nil {
  644. return x.RankNum
  645. }
  646. return 0
  647. }
  648. func (x *ColorData) GetMCoin() int32 {
  649. if x != nil {
  650. return x.MCoin
  651. }
  652. return 0
  653. }
  654. func (x *ColorData) GetMRewardCoin() int32 {
  655. if x != nil {
  656. return x.MRewardCoin
  657. }
  658. return 0
  659. }
  660. type MoveStepData struct {
  661. state protoimpl.MessageState `protogen:"open.v1"`
  662. MId string `protobuf:"bytes,1,opt,name=m_id,json=mId,proto3" json:"m_id,omitempty"`
  663. Step int32 `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"`
  664. OldSetp int32 `protobuf:"varint,3,opt,name=old_setp,json=oldSetp,proto3" json:"old_setp,omitempty"`
  665. unknownFields protoimpl.UnknownFields
  666. sizeCache protoimpl.SizeCache
  667. }
  668. func (x *MoveStepData) Reset() {
  669. *x = MoveStepData{}
  670. mi := &file_common_proto_msgTypes[4]
  671. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  672. ms.StoreMessageInfo(mi)
  673. }
  674. func (x *MoveStepData) String() string {
  675. return protoimpl.X.MessageStringOf(x)
  676. }
  677. func (*MoveStepData) ProtoMessage() {}
  678. func (x *MoveStepData) ProtoReflect() protoreflect.Message {
  679. mi := &file_common_proto_msgTypes[4]
  680. if x != nil {
  681. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  682. if ms.LoadMessageInfo() == nil {
  683. ms.StoreMessageInfo(mi)
  684. }
  685. return ms
  686. }
  687. return mi.MessageOf(x)
  688. }
  689. // Deprecated: Use MoveStepData.ProtoReflect.Descriptor instead.
  690. func (*MoveStepData) Descriptor() ([]byte, []int) {
  691. return file_common_proto_rawDescGZIP(), []int{4}
  692. }
  693. func (x *MoveStepData) GetMId() string {
  694. if x != nil {
  695. return x.MId
  696. }
  697. return ""
  698. }
  699. func (x *MoveStepData) GetStep() int32 {
  700. if x != nil {
  701. return x.Step
  702. }
  703. return 0
  704. }
  705. func (x *MoveStepData) GetOldSetp() int32 {
  706. if x != nil {
  707. return x.OldSetp
  708. }
  709. return 0
  710. }
  711. type SendColorSz struct {
  712. state protoimpl.MessageState `protogen:"open.v1"`
  713. Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"` //
  714. unknownFields protoimpl.UnknownFields
  715. sizeCache protoimpl.SizeCache
  716. }
  717. func (x *SendColorSz) Reset() {
  718. *x = SendColorSz{}
  719. mi := &file_common_proto_msgTypes[5]
  720. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  721. ms.StoreMessageInfo(mi)
  722. }
  723. func (x *SendColorSz) String() string {
  724. return protoimpl.X.MessageStringOf(x)
  725. }
  726. func (*SendColorSz) ProtoMessage() {}
  727. func (x *SendColorSz) ProtoReflect() protoreflect.Message {
  728. mi := &file_common_proto_msgTypes[5]
  729. if x != nil {
  730. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  731. if ms.LoadMessageInfo() == nil {
  732. ms.StoreMessageInfo(mi)
  733. }
  734. return ms
  735. }
  736. return mi.MessageOf(x)
  737. }
  738. // Deprecated: Use SendColorSz.ProtoReflect.Descriptor instead.
  739. func (*SendColorSz) Descriptor() ([]byte, []int) {
  740. return file_common_proto_rawDescGZIP(), []int{5}
  741. }
  742. func (x *SendColorSz) GetColor() RoleType {
  743. if x != nil {
  744. return x.Color
  745. }
  746. return RoleType_ROLE_TYPE_UNKNOWN
  747. }
  748. type SendRoleMove struct {
  749. state protoimpl.MessageState `protogen:"open.v1"`
  750. Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"` //
  751. RoleId string `protobuf:"bytes,2,opt,name=roleId,proto3" json:"roleId,omitempty"`
  752. unknownFields protoimpl.UnknownFields
  753. sizeCache protoimpl.SizeCache
  754. }
  755. func (x *SendRoleMove) Reset() {
  756. *x = SendRoleMove{}
  757. mi := &file_common_proto_msgTypes[6]
  758. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  759. ms.StoreMessageInfo(mi)
  760. }
  761. func (x *SendRoleMove) String() string {
  762. return protoimpl.X.MessageStringOf(x)
  763. }
  764. func (*SendRoleMove) ProtoMessage() {}
  765. func (x *SendRoleMove) ProtoReflect() protoreflect.Message {
  766. mi := &file_common_proto_msgTypes[6]
  767. if x != nil {
  768. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  769. if ms.LoadMessageInfo() == nil {
  770. ms.StoreMessageInfo(mi)
  771. }
  772. return ms
  773. }
  774. return mi.MessageOf(x)
  775. }
  776. // Deprecated: Use SendRoleMove.ProtoReflect.Descriptor instead.
  777. func (*SendRoleMove) Descriptor() ([]byte, []int) {
  778. return file_common_proto_rawDescGZIP(), []int{6}
  779. }
  780. func (x *SendRoleMove) GetColor() RoleType {
  781. if x != nil {
  782. return x.Color
  783. }
  784. return RoleType_ROLE_TYPE_UNKNOWN
  785. }
  786. func (x *SendRoleMove) GetRoleId() string {
  787. if x != nil {
  788. return x.RoleId
  789. }
  790. return ""
  791. }
  792. type SendQuitRoom struct {
  793. state protoimpl.MessageState `protogen:"open.v1"`
  794. Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"` //
  795. unknownFields protoimpl.UnknownFields
  796. sizeCache protoimpl.SizeCache
  797. }
  798. func (x *SendQuitRoom) Reset() {
  799. *x = SendQuitRoom{}
  800. mi := &file_common_proto_msgTypes[7]
  801. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  802. ms.StoreMessageInfo(mi)
  803. }
  804. func (x *SendQuitRoom) String() string {
  805. return protoimpl.X.MessageStringOf(x)
  806. }
  807. func (*SendQuitRoom) ProtoMessage() {}
  808. func (x *SendQuitRoom) ProtoReflect() protoreflect.Message {
  809. mi := &file_common_proto_msgTypes[7]
  810. if x != nil {
  811. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  812. if ms.LoadMessageInfo() == nil {
  813. ms.StoreMessageInfo(mi)
  814. }
  815. return ms
  816. }
  817. return mi.MessageOf(x)
  818. }
  819. // Deprecated: Use SendQuitRoom.ProtoReflect.Descriptor instead.
  820. func (*SendQuitRoom) Descriptor() ([]byte, []int) {
  821. return file_common_proto_rawDescGZIP(), []int{7}
  822. }
  823. func (x *SendQuitRoom) GetColor() RoleType {
  824. if x != nil {
  825. return x.Color
  826. }
  827. return RoleType_ROLE_TYPE_UNKNOWN
  828. }
  829. type NotifyPlayerSzNumber struct {
  830. state protoimpl.MessageState `protogen:"open.v1"`
  831. Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"` //
  832. SzNumber int32 `protobuf:"varint,2,opt,name=szNumber,proto3" json:"szNumber,omitempty"` //
  833. ErrMsg *MsgError `protobuf:"bytes,3,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
  834. unknownFields protoimpl.UnknownFields
  835. sizeCache protoimpl.SizeCache
  836. }
  837. func (x *NotifyPlayerSzNumber) Reset() {
  838. *x = NotifyPlayerSzNumber{}
  839. mi := &file_common_proto_msgTypes[8]
  840. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  841. ms.StoreMessageInfo(mi)
  842. }
  843. func (x *NotifyPlayerSzNumber) String() string {
  844. return protoimpl.X.MessageStringOf(x)
  845. }
  846. func (*NotifyPlayerSzNumber) ProtoMessage() {}
  847. func (x *NotifyPlayerSzNumber) ProtoReflect() protoreflect.Message {
  848. mi := &file_common_proto_msgTypes[8]
  849. if x != nil {
  850. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  851. if ms.LoadMessageInfo() == nil {
  852. ms.StoreMessageInfo(mi)
  853. }
  854. return ms
  855. }
  856. return mi.MessageOf(x)
  857. }
  858. // Deprecated: Use NotifyPlayerSzNumber.ProtoReflect.Descriptor instead.
  859. func (*NotifyPlayerSzNumber) Descriptor() ([]byte, []int) {
  860. return file_common_proto_rawDescGZIP(), []int{8}
  861. }
  862. func (x *NotifyPlayerSzNumber) GetColor() RoleType {
  863. if x != nil {
  864. return x.Color
  865. }
  866. return RoleType_ROLE_TYPE_UNKNOWN
  867. }
  868. func (x *NotifyPlayerSzNumber) GetSzNumber() int32 {
  869. if x != nil {
  870. return x.SzNumber
  871. }
  872. return 0
  873. }
  874. func (x *NotifyPlayerSzNumber) GetErrMsg() *MsgError {
  875. if x != nil {
  876. return x.ErrMsg
  877. }
  878. return nil
  879. }
  880. type NotifyPlayerMove struct {
  881. state protoimpl.MessageState `protogen:"open.v1"`
  882. Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"` //
  883. Step *MoveStepData `protobuf:"bytes,2,opt,name=step,proto3" json:"step,omitempty"` //
  884. Kick []*RoleData `protobuf:"bytes,3,rep,name=kick,proto3" json:"kick,omitempty"`
  885. unknownFields protoimpl.UnknownFields
  886. sizeCache protoimpl.SizeCache
  887. }
  888. func (x *NotifyPlayerMove) Reset() {
  889. *x = NotifyPlayerMove{}
  890. mi := &file_common_proto_msgTypes[9]
  891. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  892. ms.StoreMessageInfo(mi)
  893. }
  894. func (x *NotifyPlayerMove) String() string {
  895. return protoimpl.X.MessageStringOf(x)
  896. }
  897. func (*NotifyPlayerMove) ProtoMessage() {}
  898. func (x *NotifyPlayerMove) ProtoReflect() protoreflect.Message {
  899. mi := &file_common_proto_msgTypes[9]
  900. if x != nil {
  901. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  902. if ms.LoadMessageInfo() == nil {
  903. ms.StoreMessageInfo(mi)
  904. }
  905. return ms
  906. }
  907. return mi.MessageOf(x)
  908. }
  909. // Deprecated: Use NotifyPlayerMove.ProtoReflect.Descriptor instead.
  910. func (*NotifyPlayerMove) Descriptor() ([]byte, []int) {
  911. return file_common_proto_rawDescGZIP(), []int{9}
  912. }
  913. func (x *NotifyPlayerMove) GetColor() RoleType {
  914. if x != nil {
  915. return x.Color
  916. }
  917. return RoleType_ROLE_TYPE_UNKNOWN
  918. }
  919. func (x *NotifyPlayerMove) GetStep() *MoveStepData {
  920. if x != nil {
  921. return x.Step
  922. }
  923. return nil
  924. }
  925. func (x *NotifyPlayerMove) GetKick() []*RoleData {
  926. if x != nil {
  927. return x.Kick
  928. }
  929. return nil
  930. }
  931. type NotifyPlayerOpt struct {
  932. state protoimpl.MessageState `protogen:"open.v1"`
  933. Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"` //
  934. Opt OptType `protobuf:"varint,2,opt,name=opt,proto3,enum=OptType" json:"opt,omitempty"` //
  935. CanMoveRoles []*RoleData `protobuf:"bytes,3,rep,name=canMoveRoles,proto3" json:"canMoveRoles,omitempty"`
  936. OptTime int32 `protobuf:"varint,4,opt,name=opt_time,json=optTime,proto3" json:"opt_time,omitempty"`
  937. unknownFields protoimpl.UnknownFields
  938. sizeCache protoimpl.SizeCache
  939. }
  940. func (x *NotifyPlayerOpt) Reset() {
  941. *x = NotifyPlayerOpt{}
  942. mi := &file_common_proto_msgTypes[10]
  943. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  944. ms.StoreMessageInfo(mi)
  945. }
  946. func (x *NotifyPlayerOpt) String() string {
  947. return protoimpl.X.MessageStringOf(x)
  948. }
  949. func (*NotifyPlayerOpt) ProtoMessage() {}
  950. func (x *NotifyPlayerOpt) ProtoReflect() protoreflect.Message {
  951. mi := &file_common_proto_msgTypes[10]
  952. if x != nil {
  953. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  954. if ms.LoadMessageInfo() == nil {
  955. ms.StoreMessageInfo(mi)
  956. }
  957. return ms
  958. }
  959. return mi.MessageOf(x)
  960. }
  961. // Deprecated: Use NotifyPlayerOpt.ProtoReflect.Descriptor instead.
  962. func (*NotifyPlayerOpt) Descriptor() ([]byte, []int) {
  963. return file_common_proto_rawDescGZIP(), []int{10}
  964. }
  965. func (x *NotifyPlayerOpt) GetColor() RoleType {
  966. if x != nil {
  967. return x.Color
  968. }
  969. return RoleType_ROLE_TYPE_UNKNOWN
  970. }
  971. func (x *NotifyPlayerOpt) GetOpt() OptType {
  972. if x != nil {
  973. return x.Opt
  974. }
  975. return OptType_OPT_TYPE_UNKNOWN
  976. }
  977. func (x *NotifyPlayerOpt) GetCanMoveRoles() []*RoleData {
  978. if x != nil {
  979. return x.CanMoveRoles
  980. }
  981. return nil
  982. }
  983. func (x *NotifyPlayerOpt) GetOptTime() int32 {
  984. if x != nil {
  985. return x.OptTime
  986. }
  987. return 0
  988. }
  989. type NotifyPlayerStatus struct {
  990. state protoimpl.MessageState `protogen:"open.v1"`
  991. Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"` //
  992. Status PlayerStatus `protobuf:"varint,2,opt,name=status,proto3,enum=PlayerStatus" json:"status,omitempty"`
  993. Colors []*ColorData `protobuf:"bytes,3,rep,name=colors,proto3" json:"colors,omitempty"`
  994. TimeOutColor *ColorData `protobuf:"bytes,4,opt,name=time_out_color,json=timeOutColor,proto3" json:"time_out_color,omitempty"`
  995. unknownFields protoimpl.UnknownFields
  996. sizeCache protoimpl.SizeCache
  997. }
  998. func (x *NotifyPlayerStatus) Reset() {
  999. *x = NotifyPlayerStatus{}
  1000. mi := &file_common_proto_msgTypes[11]
  1001. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1002. ms.StoreMessageInfo(mi)
  1003. }
  1004. func (x *NotifyPlayerStatus) String() string {
  1005. return protoimpl.X.MessageStringOf(x)
  1006. }
  1007. func (*NotifyPlayerStatus) ProtoMessage() {}
  1008. func (x *NotifyPlayerStatus) ProtoReflect() protoreflect.Message {
  1009. mi := &file_common_proto_msgTypes[11]
  1010. if x != nil {
  1011. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1012. if ms.LoadMessageInfo() == nil {
  1013. ms.StoreMessageInfo(mi)
  1014. }
  1015. return ms
  1016. }
  1017. return mi.MessageOf(x)
  1018. }
  1019. // Deprecated: Use NotifyPlayerStatus.ProtoReflect.Descriptor instead.
  1020. func (*NotifyPlayerStatus) Descriptor() ([]byte, []int) {
  1021. return file_common_proto_rawDescGZIP(), []int{11}
  1022. }
  1023. func (x *NotifyPlayerStatus) GetColor() RoleType {
  1024. if x != nil {
  1025. return x.Color
  1026. }
  1027. return RoleType_ROLE_TYPE_UNKNOWN
  1028. }
  1029. func (x *NotifyPlayerStatus) GetStatus() PlayerStatus {
  1030. if x != nil {
  1031. return x.Status
  1032. }
  1033. return PlayerStatus_PLAYER_STATUS_UNKNOWN
  1034. }
  1035. func (x *NotifyPlayerStatus) GetColors() []*ColorData {
  1036. if x != nil {
  1037. return x.Colors
  1038. }
  1039. return nil
  1040. }
  1041. func (x *NotifyPlayerStatus) GetTimeOutColor() *ColorData {
  1042. if x != nil {
  1043. return x.TimeOutColor
  1044. }
  1045. return nil
  1046. }
  1047. type NotifySettlement struct {
  1048. state protoimpl.MessageState `protogen:"open.v1"`
  1049. Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"` //
  1050. FinishColors []*ColorData `protobuf:"bytes,2,rep,name=finish_colors,json=finishColors,proto3" json:"finish_colors,omitempty"`
  1051. unknownFields protoimpl.UnknownFields
  1052. sizeCache protoimpl.SizeCache
  1053. }
  1054. func (x *NotifySettlement) Reset() {
  1055. *x = NotifySettlement{}
  1056. mi := &file_common_proto_msgTypes[12]
  1057. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1058. ms.StoreMessageInfo(mi)
  1059. }
  1060. func (x *NotifySettlement) String() string {
  1061. return protoimpl.X.MessageStringOf(x)
  1062. }
  1063. func (*NotifySettlement) ProtoMessage() {}
  1064. func (x *NotifySettlement) ProtoReflect() protoreflect.Message {
  1065. mi := &file_common_proto_msgTypes[12]
  1066. if x != nil {
  1067. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1068. if ms.LoadMessageInfo() == nil {
  1069. ms.StoreMessageInfo(mi)
  1070. }
  1071. return ms
  1072. }
  1073. return mi.MessageOf(x)
  1074. }
  1075. // Deprecated: Use NotifySettlement.ProtoReflect.Descriptor instead.
  1076. func (*NotifySettlement) Descriptor() ([]byte, []int) {
  1077. return file_common_proto_rawDescGZIP(), []int{12}
  1078. }
  1079. func (x *NotifySettlement) GetColor() RoleType {
  1080. if x != nil {
  1081. return x.Color
  1082. }
  1083. return RoleType_ROLE_TYPE_UNKNOWN
  1084. }
  1085. func (x *NotifySettlement) GetFinishColors() []*ColorData {
  1086. if x != nil {
  1087. return x.FinishColors
  1088. }
  1089. return nil
  1090. }
  1091. type NotifyUpdateRoomInfo struct {
  1092. state protoimpl.MessageState `protogen:"open.v1"`
  1093. RoomInfo *RoomInfo `protobuf:"bytes,1,opt,name=room_info,json=roomInfo,proto3" json:"room_info,omitempty"` //
  1094. unknownFields protoimpl.UnknownFields
  1095. sizeCache protoimpl.SizeCache
  1096. }
  1097. func (x *NotifyUpdateRoomInfo) Reset() {
  1098. *x = NotifyUpdateRoomInfo{}
  1099. mi := &file_common_proto_msgTypes[13]
  1100. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1101. ms.StoreMessageInfo(mi)
  1102. }
  1103. func (x *NotifyUpdateRoomInfo) String() string {
  1104. return protoimpl.X.MessageStringOf(x)
  1105. }
  1106. func (*NotifyUpdateRoomInfo) ProtoMessage() {}
  1107. func (x *NotifyUpdateRoomInfo) ProtoReflect() protoreflect.Message {
  1108. mi := &file_common_proto_msgTypes[13]
  1109. if x != nil {
  1110. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1111. if ms.LoadMessageInfo() == nil {
  1112. ms.StoreMessageInfo(mi)
  1113. }
  1114. return ms
  1115. }
  1116. return mi.MessageOf(x)
  1117. }
  1118. // Deprecated: Use NotifyUpdateRoomInfo.ProtoReflect.Descriptor instead.
  1119. func (*NotifyUpdateRoomInfo) Descriptor() ([]byte, []int) {
  1120. return file_common_proto_rawDescGZIP(), []int{13}
  1121. }
  1122. func (x *NotifyUpdateRoomInfo) GetRoomInfo() *RoomInfo {
  1123. if x != nil {
  1124. return x.RoomInfo
  1125. }
  1126. return nil
  1127. }
  1128. // 用户信息
  1129. type UserInfo struct {
  1130. state protoimpl.MessageState `protogen:"open.v1"`
  1131. UserId string `protobuf:"bytes,1,opt,name=UserId,proto3" json:"UserId,omitempty"`
  1132. MHead string `protobuf:"bytes,2,opt,name=m_head,json=mHead,proto3" json:"m_head,omitempty"`
  1133. MCoin int32 `protobuf:"varint,3,opt,name=m_coin,json=mCoin,proto3" json:"m_coin,omitempty"`
  1134. Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
  1135. RoomId int32 `protobuf:"varint,5,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` //如果用户在某一个房间玩,他的id就一直存在,
  1136. unknownFields protoimpl.UnknownFields
  1137. sizeCache protoimpl.SizeCache
  1138. }
  1139. func (x *UserInfo) Reset() {
  1140. *x = UserInfo{}
  1141. mi := &file_common_proto_msgTypes[14]
  1142. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1143. ms.StoreMessageInfo(mi)
  1144. }
  1145. func (x *UserInfo) String() string {
  1146. return protoimpl.X.MessageStringOf(x)
  1147. }
  1148. func (*UserInfo) ProtoMessage() {}
  1149. func (x *UserInfo) ProtoReflect() protoreflect.Message {
  1150. mi := &file_common_proto_msgTypes[14]
  1151. if x != nil {
  1152. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1153. if ms.LoadMessageInfo() == nil {
  1154. ms.StoreMessageInfo(mi)
  1155. }
  1156. return ms
  1157. }
  1158. return mi.MessageOf(x)
  1159. }
  1160. // Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.
  1161. func (*UserInfo) Descriptor() ([]byte, []int) {
  1162. return file_common_proto_rawDescGZIP(), []int{14}
  1163. }
  1164. func (x *UserInfo) GetUserId() string {
  1165. if x != nil {
  1166. return x.UserId
  1167. }
  1168. return ""
  1169. }
  1170. func (x *UserInfo) GetMHead() string {
  1171. if x != nil {
  1172. return x.MHead
  1173. }
  1174. return ""
  1175. }
  1176. func (x *UserInfo) GetMCoin() int32 {
  1177. if x != nil {
  1178. return x.MCoin
  1179. }
  1180. return 0
  1181. }
  1182. func (x *UserInfo) GetName() string {
  1183. if x != nil {
  1184. return x.Name
  1185. }
  1186. return ""
  1187. }
  1188. func (x *UserInfo) GetRoomId() int32 {
  1189. if x != nil {
  1190. return x.RoomId
  1191. }
  1192. return 0
  1193. }
  1194. // 登录 请求
  1195. type ReqLogin struct {
  1196. state protoimpl.MessageState `protogen:"open.v1"`
  1197. Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
  1198. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  1199. unknownFields protoimpl.UnknownFields
  1200. sizeCache protoimpl.SizeCache
  1201. }
  1202. func (x *ReqLogin) Reset() {
  1203. *x = ReqLogin{}
  1204. mi := &file_common_proto_msgTypes[15]
  1205. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1206. ms.StoreMessageInfo(mi)
  1207. }
  1208. func (x *ReqLogin) String() string {
  1209. return protoimpl.X.MessageStringOf(x)
  1210. }
  1211. func (*ReqLogin) ProtoMessage() {}
  1212. func (x *ReqLogin) ProtoReflect() protoreflect.Message {
  1213. mi := &file_common_proto_msgTypes[15]
  1214. if x != nil {
  1215. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1216. if ms.LoadMessageInfo() == nil {
  1217. ms.StoreMessageInfo(mi)
  1218. }
  1219. return ms
  1220. }
  1221. return mi.MessageOf(x)
  1222. }
  1223. // Deprecated: Use ReqLogin.ProtoReflect.Descriptor instead.
  1224. func (*ReqLogin) Descriptor() ([]byte, []int) {
  1225. return file_common_proto_rawDescGZIP(), []int{15}
  1226. }
  1227. func (x *ReqLogin) GetAccount() string {
  1228. if x != nil {
  1229. return x.Account
  1230. }
  1231. return ""
  1232. }
  1233. func (x *ReqLogin) GetPassword() string {
  1234. if x != nil {
  1235. return x.Password
  1236. }
  1237. return ""
  1238. }
  1239. // 登录 响应
  1240. type ResLogin struct {
  1241. state protoimpl.MessageState `protogen:"open.v1"`
  1242. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
  1243. NikeName string `protobuf:"bytes,2,opt,name=nikeName,proto3" json:"nikeName,omitempty"`
  1244. UserInfo *UserInfo `protobuf:"bytes,3,opt,name=userInfo,proto3" json:"userInfo,omitempty"`
  1245. ErrMsg *MsgError `protobuf:"bytes,4,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
  1246. unknownFields protoimpl.UnknownFields
  1247. sizeCache protoimpl.SizeCache
  1248. }
  1249. func (x *ResLogin) Reset() {
  1250. *x = ResLogin{}
  1251. mi := &file_common_proto_msgTypes[16]
  1252. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1253. ms.StoreMessageInfo(mi)
  1254. }
  1255. func (x *ResLogin) String() string {
  1256. return protoimpl.X.MessageStringOf(x)
  1257. }
  1258. func (*ResLogin) ProtoMessage() {}
  1259. func (x *ResLogin) ProtoReflect() protoreflect.Message {
  1260. mi := &file_common_proto_msgTypes[16]
  1261. if x != nil {
  1262. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1263. if ms.LoadMessageInfo() == nil {
  1264. ms.StoreMessageInfo(mi)
  1265. }
  1266. return ms
  1267. }
  1268. return mi.MessageOf(x)
  1269. }
  1270. // Deprecated: Use ResLogin.ProtoReflect.Descriptor instead.
  1271. func (*ResLogin) Descriptor() ([]byte, []int) {
  1272. return file_common_proto_rawDescGZIP(), []int{16}
  1273. }
  1274. func (x *ResLogin) GetUserId() string {
  1275. if x != nil {
  1276. return x.UserId
  1277. }
  1278. return ""
  1279. }
  1280. func (x *ResLogin) GetNikeName() string {
  1281. if x != nil {
  1282. return x.NikeName
  1283. }
  1284. return ""
  1285. }
  1286. func (x *ResLogin) GetUserInfo() *UserInfo {
  1287. if x != nil {
  1288. return x.UserInfo
  1289. }
  1290. return nil
  1291. }
  1292. func (x *ResLogin) GetErrMsg() *MsgError {
  1293. if x != nil {
  1294. return x.ErrMsg
  1295. }
  1296. return nil
  1297. }
  1298. // 注册 请求
  1299. type ReqRegister struct {
  1300. state protoimpl.MessageState `protogen:"open.v1"`
  1301. NikeName string `protobuf:"bytes,1,opt,name=nikeName,proto3" json:"nikeName,omitempty"`
  1302. Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
  1303. Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
  1304. MHead string `protobuf:"bytes,4,opt,name=m_head,json=mHead,proto3" json:"m_head,omitempty"`
  1305. unknownFields protoimpl.UnknownFields
  1306. sizeCache protoimpl.SizeCache
  1307. }
  1308. func (x *ReqRegister) Reset() {
  1309. *x = ReqRegister{}
  1310. mi := &file_common_proto_msgTypes[17]
  1311. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1312. ms.StoreMessageInfo(mi)
  1313. }
  1314. func (x *ReqRegister) String() string {
  1315. return protoimpl.X.MessageStringOf(x)
  1316. }
  1317. func (*ReqRegister) ProtoMessage() {}
  1318. func (x *ReqRegister) ProtoReflect() protoreflect.Message {
  1319. mi := &file_common_proto_msgTypes[17]
  1320. if x != nil {
  1321. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1322. if ms.LoadMessageInfo() == nil {
  1323. ms.StoreMessageInfo(mi)
  1324. }
  1325. return ms
  1326. }
  1327. return mi.MessageOf(x)
  1328. }
  1329. // Deprecated: Use ReqRegister.ProtoReflect.Descriptor instead.
  1330. func (*ReqRegister) Descriptor() ([]byte, []int) {
  1331. return file_common_proto_rawDescGZIP(), []int{17}
  1332. }
  1333. func (x *ReqRegister) GetNikeName() string {
  1334. if x != nil {
  1335. return x.NikeName
  1336. }
  1337. return ""
  1338. }
  1339. func (x *ReqRegister) GetAccount() string {
  1340. if x != nil {
  1341. return x.Account
  1342. }
  1343. return ""
  1344. }
  1345. func (x *ReqRegister) GetPassword() string {
  1346. if x != nil {
  1347. return x.Password
  1348. }
  1349. return ""
  1350. }
  1351. func (x *ReqRegister) GetMHead() string {
  1352. if x != nil {
  1353. return x.MHead
  1354. }
  1355. return ""
  1356. }
  1357. // 注册 响应
  1358. type ResRegister struct {
  1359. state protoimpl.MessageState `protogen:"open.v1"`
  1360. Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
  1361. ErrMsg *MsgError `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
  1362. unknownFields protoimpl.UnknownFields
  1363. sizeCache protoimpl.SizeCache
  1364. }
  1365. func (x *ResRegister) Reset() {
  1366. *x = ResRegister{}
  1367. mi := &file_common_proto_msgTypes[18]
  1368. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1369. ms.StoreMessageInfo(mi)
  1370. }
  1371. func (x *ResRegister) String() string {
  1372. return protoimpl.X.MessageStringOf(x)
  1373. }
  1374. func (*ResRegister) ProtoMessage() {}
  1375. func (x *ResRegister) ProtoReflect() protoreflect.Message {
  1376. mi := &file_common_proto_msgTypes[18]
  1377. if x != nil {
  1378. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1379. if ms.LoadMessageInfo() == nil {
  1380. ms.StoreMessageInfo(mi)
  1381. }
  1382. return ms
  1383. }
  1384. return mi.MessageOf(x)
  1385. }
  1386. // Deprecated: Use ResRegister.ProtoReflect.Descriptor instead.
  1387. func (*ResRegister) Descriptor() ([]byte, []int) {
  1388. return file_common_proto_rawDescGZIP(), []int{18}
  1389. }
  1390. func (x *ResRegister) GetSuccess() bool {
  1391. if x != nil {
  1392. return x.Success
  1393. }
  1394. return false
  1395. }
  1396. func (x *ResRegister) GetErrMsg() *MsgError {
  1397. if x != nil {
  1398. return x.ErrMsg
  1399. }
  1400. return nil
  1401. }
  1402. // 进入大厅
  1403. type EnterHall struct {
  1404. state protoimpl.MessageState `protogen:"open.v1"`
  1405. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
  1406. unknownFields protoimpl.UnknownFields
  1407. sizeCache protoimpl.SizeCache
  1408. }
  1409. func (x *EnterHall) Reset() {
  1410. *x = EnterHall{}
  1411. mi := &file_common_proto_msgTypes[19]
  1412. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1413. ms.StoreMessageInfo(mi)
  1414. }
  1415. func (x *EnterHall) String() string {
  1416. return protoimpl.X.MessageStringOf(x)
  1417. }
  1418. func (*EnterHall) ProtoMessage() {}
  1419. func (x *EnterHall) ProtoReflect() protoreflect.Message {
  1420. mi := &file_common_proto_msgTypes[19]
  1421. if x != nil {
  1422. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1423. if ms.LoadMessageInfo() == nil {
  1424. ms.StoreMessageInfo(mi)
  1425. }
  1426. return ms
  1427. }
  1428. return mi.MessageOf(x)
  1429. }
  1430. // Deprecated: Use EnterHall.ProtoReflect.Descriptor instead.
  1431. func (*EnterHall) Descriptor() ([]byte, []int) {
  1432. return file_common_proto_rawDescGZIP(), []int{19}
  1433. }
  1434. func (x *EnterHall) GetUserId() string {
  1435. if x != nil {
  1436. return x.UserId
  1437. }
  1438. return ""
  1439. }
  1440. // 进入大厅响应
  1441. type ResEnterHall struct {
  1442. state protoimpl.MessageState `protogen:"open.v1"`
  1443. Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
  1444. ErrMsg *MsgError `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
  1445. ReconnectRoomInfo *RoomInfo `protobuf:"bytes,3,opt,name=reconnect_room_info,json=reconnectRoomInfo,proto3" json:"reconnect_room_info,omitempty"`
  1446. unknownFields protoimpl.UnknownFields
  1447. sizeCache protoimpl.SizeCache
  1448. }
  1449. func (x *ResEnterHall) Reset() {
  1450. *x = ResEnterHall{}
  1451. mi := &file_common_proto_msgTypes[20]
  1452. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1453. ms.StoreMessageInfo(mi)
  1454. }
  1455. func (x *ResEnterHall) String() string {
  1456. return protoimpl.X.MessageStringOf(x)
  1457. }
  1458. func (*ResEnterHall) ProtoMessage() {}
  1459. func (x *ResEnterHall) ProtoReflect() protoreflect.Message {
  1460. mi := &file_common_proto_msgTypes[20]
  1461. if x != nil {
  1462. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1463. if ms.LoadMessageInfo() == nil {
  1464. ms.StoreMessageInfo(mi)
  1465. }
  1466. return ms
  1467. }
  1468. return mi.MessageOf(x)
  1469. }
  1470. // Deprecated: Use ResEnterHall.ProtoReflect.Descriptor instead.
  1471. func (*ResEnterHall) Descriptor() ([]byte, []int) {
  1472. return file_common_proto_rawDescGZIP(), []int{20}
  1473. }
  1474. func (x *ResEnterHall) GetSuccess() bool {
  1475. if x != nil {
  1476. return x.Success
  1477. }
  1478. return false
  1479. }
  1480. func (x *ResEnterHall) GetErrMsg() *MsgError {
  1481. if x != nil {
  1482. return x.ErrMsg
  1483. }
  1484. return nil
  1485. }
  1486. func (x *ResEnterHall) GetReconnectRoomInfo() *RoomInfo {
  1487. if x != nil {
  1488. return x.ReconnectRoomInfo
  1489. }
  1490. return nil
  1491. }
  1492. // 离开大厅
  1493. type LeaveHall struct {
  1494. state protoimpl.MessageState `protogen:"open.v1"`
  1495. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
  1496. unknownFields protoimpl.UnknownFields
  1497. sizeCache protoimpl.SizeCache
  1498. }
  1499. func (x *LeaveHall) Reset() {
  1500. *x = LeaveHall{}
  1501. mi := &file_common_proto_msgTypes[21]
  1502. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1503. ms.StoreMessageInfo(mi)
  1504. }
  1505. func (x *LeaveHall) String() string {
  1506. return protoimpl.X.MessageStringOf(x)
  1507. }
  1508. func (*LeaveHall) ProtoMessage() {}
  1509. func (x *LeaveHall) ProtoReflect() protoreflect.Message {
  1510. mi := &file_common_proto_msgTypes[21]
  1511. if x != nil {
  1512. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1513. if ms.LoadMessageInfo() == nil {
  1514. ms.StoreMessageInfo(mi)
  1515. }
  1516. return ms
  1517. }
  1518. return mi.MessageOf(x)
  1519. }
  1520. // Deprecated: Use LeaveHall.ProtoReflect.Descriptor instead.
  1521. func (*LeaveHall) Descriptor() ([]byte, []int) {
  1522. return file_common_proto_rawDescGZIP(), []int{21}
  1523. }
  1524. func (x *LeaveHall) GetUserId() string {
  1525. if x != nil {
  1526. return x.UserId
  1527. }
  1528. return ""
  1529. }
  1530. // 匹配ludo
  1531. type MatchLudo struct {
  1532. state protoimpl.MessageState `protogen:"open.v1"`
  1533. SelectRoomType RoomType `protobuf:"varint,1,opt,name=select_room_type,json=selectRoomType,proto3,enum=RoomType" json:"select_room_type,omitempty"`
  1534. RoomLevel int32 `protobuf:"varint,2,opt,name=room_level,json=roomLevel,proto3" json:"room_level,omitempty"`
  1535. SelectColor RoleType `protobuf:"varint,3,opt,name=select_color,json=selectColor,proto3,enum=RoleType" json:"select_color,omitempty"`
  1536. unknownFields protoimpl.UnknownFields
  1537. sizeCache protoimpl.SizeCache
  1538. }
  1539. func (x *MatchLudo) Reset() {
  1540. *x = MatchLudo{}
  1541. mi := &file_common_proto_msgTypes[22]
  1542. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1543. ms.StoreMessageInfo(mi)
  1544. }
  1545. func (x *MatchLudo) String() string {
  1546. return protoimpl.X.MessageStringOf(x)
  1547. }
  1548. func (*MatchLudo) ProtoMessage() {}
  1549. func (x *MatchLudo) ProtoReflect() protoreflect.Message {
  1550. mi := &file_common_proto_msgTypes[22]
  1551. if x != nil {
  1552. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1553. if ms.LoadMessageInfo() == nil {
  1554. ms.StoreMessageInfo(mi)
  1555. }
  1556. return ms
  1557. }
  1558. return mi.MessageOf(x)
  1559. }
  1560. // Deprecated: Use MatchLudo.ProtoReflect.Descriptor instead.
  1561. func (*MatchLudo) Descriptor() ([]byte, []int) {
  1562. return file_common_proto_rawDescGZIP(), []int{22}
  1563. }
  1564. func (x *MatchLudo) GetSelectRoomType() RoomType {
  1565. if x != nil {
  1566. return x.SelectRoomType
  1567. }
  1568. return RoomType_ROOM_TYPE_UNKNOWN
  1569. }
  1570. func (x *MatchLudo) GetRoomLevel() int32 {
  1571. if x != nil {
  1572. return x.RoomLevel
  1573. }
  1574. return 0
  1575. }
  1576. func (x *MatchLudo) GetSelectColor() RoleType {
  1577. if x != nil {
  1578. return x.SelectColor
  1579. }
  1580. return RoleType_ROLE_TYPE_UNKNOWN
  1581. }
  1582. // 匹配ludo 响应
  1583. type ResMatchLudo struct {
  1584. state protoimpl.MessageState `protogen:"open.v1"`
  1585. Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
  1586. ErrMsg *MsgError `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
  1587. Room *RoomInfo `protobuf:"bytes,3,opt,name=room,proto3" json:"room,omitempty"`
  1588. unknownFields protoimpl.UnknownFields
  1589. sizeCache protoimpl.SizeCache
  1590. }
  1591. func (x *ResMatchLudo) Reset() {
  1592. *x = ResMatchLudo{}
  1593. mi := &file_common_proto_msgTypes[23]
  1594. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1595. ms.StoreMessageInfo(mi)
  1596. }
  1597. func (x *ResMatchLudo) String() string {
  1598. return protoimpl.X.MessageStringOf(x)
  1599. }
  1600. func (*ResMatchLudo) ProtoMessage() {}
  1601. func (x *ResMatchLudo) ProtoReflect() protoreflect.Message {
  1602. mi := &file_common_proto_msgTypes[23]
  1603. if x != nil {
  1604. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1605. if ms.LoadMessageInfo() == nil {
  1606. ms.StoreMessageInfo(mi)
  1607. }
  1608. return ms
  1609. }
  1610. return mi.MessageOf(x)
  1611. }
  1612. // Deprecated: Use ResMatchLudo.ProtoReflect.Descriptor instead.
  1613. func (*ResMatchLudo) Descriptor() ([]byte, []int) {
  1614. return file_common_proto_rawDescGZIP(), []int{23}
  1615. }
  1616. func (x *ResMatchLudo) GetSuccess() bool {
  1617. if x != nil {
  1618. return x.Success
  1619. }
  1620. return false
  1621. }
  1622. func (x *ResMatchLudo) GetErrMsg() *MsgError {
  1623. if x != nil {
  1624. return x.ErrMsg
  1625. }
  1626. return nil
  1627. }
  1628. func (x *ResMatchLudo) GetRoom() *RoomInfo {
  1629. if x != nil {
  1630. return x.Room
  1631. }
  1632. return nil
  1633. }
  1634. // error
  1635. type MsgError struct {
  1636. state protoimpl.MessageState `protogen:"open.v1"`
  1637. ErrorCode int32 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
  1638. ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
  1639. unknownFields protoimpl.UnknownFields
  1640. sizeCache protoimpl.SizeCache
  1641. }
  1642. func (x *MsgError) Reset() {
  1643. *x = MsgError{}
  1644. mi := &file_common_proto_msgTypes[24]
  1645. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1646. ms.StoreMessageInfo(mi)
  1647. }
  1648. func (x *MsgError) String() string {
  1649. return protoimpl.X.MessageStringOf(x)
  1650. }
  1651. func (*MsgError) ProtoMessage() {}
  1652. func (x *MsgError) ProtoReflect() protoreflect.Message {
  1653. mi := &file_common_proto_msgTypes[24]
  1654. if x != nil {
  1655. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1656. if ms.LoadMessageInfo() == nil {
  1657. ms.StoreMessageInfo(mi)
  1658. }
  1659. return ms
  1660. }
  1661. return mi.MessageOf(x)
  1662. }
  1663. // Deprecated: Use MsgError.ProtoReflect.Descriptor instead.
  1664. func (*MsgError) Descriptor() ([]byte, []int) {
  1665. return file_common_proto_rawDescGZIP(), []int{24}
  1666. }
  1667. func (x *MsgError) GetErrorCode() int32 {
  1668. if x != nil {
  1669. return x.ErrorCode
  1670. }
  1671. return 0
  1672. }
  1673. func (x *MsgError) GetErrorMsg() string {
  1674. if x != nil {
  1675. return x.ErrorMsg
  1676. }
  1677. return ""
  1678. }
  1679. // 更新用户信息
  1680. type UpdateUserInfo struct {
  1681. state protoimpl.MessageState `protogen:"open.v1"`
  1682. Info *UserInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
  1683. unknownFields protoimpl.UnknownFields
  1684. sizeCache protoimpl.SizeCache
  1685. }
  1686. func (x *UpdateUserInfo) Reset() {
  1687. *x = UpdateUserInfo{}
  1688. mi := &file_common_proto_msgTypes[25]
  1689. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1690. ms.StoreMessageInfo(mi)
  1691. }
  1692. func (x *UpdateUserInfo) String() string {
  1693. return protoimpl.X.MessageStringOf(x)
  1694. }
  1695. func (*UpdateUserInfo) ProtoMessage() {}
  1696. func (x *UpdateUserInfo) ProtoReflect() protoreflect.Message {
  1697. mi := &file_common_proto_msgTypes[25]
  1698. if x != nil {
  1699. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1700. if ms.LoadMessageInfo() == nil {
  1701. ms.StoreMessageInfo(mi)
  1702. }
  1703. return ms
  1704. }
  1705. return mi.MessageOf(x)
  1706. }
  1707. // Deprecated: Use UpdateUserInfo.ProtoReflect.Descriptor instead.
  1708. func (*UpdateUserInfo) Descriptor() ([]byte, []int) {
  1709. return file_common_proto_rawDescGZIP(), []int{25}
  1710. }
  1711. func (x *UpdateUserInfo) GetInfo() *UserInfo {
  1712. if x != nil {
  1713. return x.Info
  1714. }
  1715. return nil
  1716. }
  1717. type ResHeartBeat struct {
  1718. state protoimpl.MessageState `protogen:"open.v1"`
  1719. Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
  1720. unknownFields protoimpl.UnknownFields
  1721. sizeCache protoimpl.SizeCache
  1722. }
  1723. func (x *ResHeartBeat) Reset() {
  1724. *x = ResHeartBeat{}
  1725. mi := &file_common_proto_msgTypes[26]
  1726. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1727. ms.StoreMessageInfo(mi)
  1728. }
  1729. func (x *ResHeartBeat) String() string {
  1730. return protoimpl.X.MessageStringOf(x)
  1731. }
  1732. func (*ResHeartBeat) ProtoMessage() {}
  1733. func (x *ResHeartBeat) ProtoReflect() protoreflect.Message {
  1734. mi := &file_common_proto_msgTypes[26]
  1735. if x != nil {
  1736. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1737. if ms.LoadMessageInfo() == nil {
  1738. ms.StoreMessageInfo(mi)
  1739. }
  1740. return ms
  1741. }
  1742. return mi.MessageOf(x)
  1743. }
  1744. // Deprecated: Use ResHeartBeat.ProtoReflect.Descriptor instead.
  1745. func (*ResHeartBeat) Descriptor() ([]byte, []int) {
  1746. return file_common_proto_rawDescGZIP(), []int{26}
  1747. }
  1748. func (x *ResHeartBeat) GetMsg() string {
  1749. if x != nil {
  1750. return x.Msg
  1751. }
  1752. return ""
  1753. }
  1754. type ReqHeartBeat struct {
  1755. state protoimpl.MessageState `protogen:"open.v1"`
  1756. Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
  1757. unknownFields protoimpl.UnknownFields
  1758. sizeCache protoimpl.SizeCache
  1759. }
  1760. func (x *ReqHeartBeat) Reset() {
  1761. *x = ReqHeartBeat{}
  1762. mi := &file_common_proto_msgTypes[27]
  1763. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1764. ms.StoreMessageInfo(mi)
  1765. }
  1766. func (x *ReqHeartBeat) String() string {
  1767. return protoimpl.X.MessageStringOf(x)
  1768. }
  1769. func (*ReqHeartBeat) ProtoMessage() {}
  1770. func (x *ReqHeartBeat) ProtoReflect() protoreflect.Message {
  1771. mi := &file_common_proto_msgTypes[27]
  1772. if x != nil {
  1773. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1774. if ms.LoadMessageInfo() == nil {
  1775. ms.StoreMessageInfo(mi)
  1776. }
  1777. return ms
  1778. }
  1779. return mi.MessageOf(x)
  1780. }
  1781. // Deprecated: Use ReqHeartBeat.ProtoReflect.Descriptor instead.
  1782. func (*ReqHeartBeat) Descriptor() ([]byte, []int) {
  1783. return file_common_proto_rawDescGZIP(), []int{27}
  1784. }
  1785. func (x *ReqHeartBeat) GetMsg() string {
  1786. if x != nil {
  1787. return x.Msg
  1788. }
  1789. return ""
  1790. }
  1791. type ShopItem struct {
  1792. state protoimpl.MessageState `protogen:"open.v1"`
  1793. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  1794. Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
  1795. Price int32 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
  1796. Num int32 `protobuf:"varint,4,opt,name=num,proto3" json:"num,omitempty"`
  1797. unknownFields protoimpl.UnknownFields
  1798. sizeCache protoimpl.SizeCache
  1799. }
  1800. func (x *ShopItem) Reset() {
  1801. *x = ShopItem{}
  1802. mi := &file_common_proto_msgTypes[28]
  1803. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1804. ms.StoreMessageInfo(mi)
  1805. }
  1806. func (x *ShopItem) String() string {
  1807. return protoimpl.X.MessageStringOf(x)
  1808. }
  1809. func (*ShopItem) ProtoMessage() {}
  1810. func (x *ShopItem) ProtoReflect() protoreflect.Message {
  1811. mi := &file_common_proto_msgTypes[28]
  1812. if x != nil {
  1813. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1814. if ms.LoadMessageInfo() == nil {
  1815. ms.StoreMessageInfo(mi)
  1816. }
  1817. return ms
  1818. }
  1819. return mi.MessageOf(x)
  1820. }
  1821. // Deprecated: Use ShopItem.ProtoReflect.Descriptor instead.
  1822. func (*ShopItem) Descriptor() ([]byte, []int) {
  1823. return file_common_proto_rawDescGZIP(), []int{28}
  1824. }
  1825. func (x *ShopItem) GetName() string {
  1826. if x != nil {
  1827. return x.Name
  1828. }
  1829. return ""
  1830. }
  1831. func (x *ShopItem) GetId() string {
  1832. if x != nil {
  1833. return x.Id
  1834. }
  1835. return ""
  1836. }
  1837. func (x *ShopItem) GetPrice() int32 {
  1838. if x != nil {
  1839. return x.Price
  1840. }
  1841. return 0
  1842. }
  1843. func (x *ShopItem) GetNum() int32 {
  1844. if x != nil {
  1845. return x.Num
  1846. }
  1847. return 0
  1848. }
  1849. // 被踢登陆
  1850. type BeKickLogin struct {
  1851. state protoimpl.MessageState `protogen:"open.v1"`
  1852. ErrMsg *MsgError `protobuf:"bytes,1,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
  1853. unknownFields protoimpl.UnknownFields
  1854. sizeCache protoimpl.SizeCache
  1855. }
  1856. func (x *BeKickLogin) Reset() {
  1857. *x = BeKickLogin{}
  1858. mi := &file_common_proto_msgTypes[29]
  1859. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1860. ms.StoreMessageInfo(mi)
  1861. }
  1862. func (x *BeKickLogin) String() string {
  1863. return protoimpl.X.MessageStringOf(x)
  1864. }
  1865. func (*BeKickLogin) ProtoMessage() {}
  1866. func (x *BeKickLogin) ProtoReflect() protoreflect.Message {
  1867. mi := &file_common_proto_msgTypes[29]
  1868. if x != nil {
  1869. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1870. if ms.LoadMessageInfo() == nil {
  1871. ms.StoreMessageInfo(mi)
  1872. }
  1873. return ms
  1874. }
  1875. return mi.MessageOf(x)
  1876. }
  1877. // Deprecated: Use BeKickLogin.ProtoReflect.Descriptor instead.
  1878. func (*BeKickLogin) Descriptor() ([]byte, []int) {
  1879. return file_common_proto_rawDescGZIP(), []int{29}
  1880. }
  1881. func (x *BeKickLogin) GetErrMsg() *MsgError {
  1882. if x != nil {
  1883. return x.ErrMsg
  1884. }
  1885. return nil
  1886. }
  1887. // 请求商城
  1888. type ReqShop struct {
  1889. state protoimpl.MessageState `protogen:"open.v1"`
  1890. ShopType int32 `protobuf:"varint,1,opt,name=shopType,proto3" json:"shopType,omitempty"`
  1891. unknownFields protoimpl.UnknownFields
  1892. sizeCache protoimpl.SizeCache
  1893. }
  1894. func (x *ReqShop) Reset() {
  1895. *x = ReqShop{}
  1896. mi := &file_common_proto_msgTypes[30]
  1897. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1898. ms.StoreMessageInfo(mi)
  1899. }
  1900. func (x *ReqShop) String() string {
  1901. return protoimpl.X.MessageStringOf(x)
  1902. }
  1903. func (*ReqShop) ProtoMessage() {}
  1904. func (x *ReqShop) ProtoReflect() protoreflect.Message {
  1905. mi := &file_common_proto_msgTypes[30]
  1906. if x != nil {
  1907. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1908. if ms.LoadMessageInfo() == nil {
  1909. ms.StoreMessageInfo(mi)
  1910. }
  1911. return ms
  1912. }
  1913. return mi.MessageOf(x)
  1914. }
  1915. // Deprecated: Use ReqShop.ProtoReflect.Descriptor instead.
  1916. func (*ReqShop) Descriptor() ([]byte, []int) {
  1917. return file_common_proto_rawDescGZIP(), []int{30}
  1918. }
  1919. func (x *ReqShop) GetShopType() int32 {
  1920. if x != nil {
  1921. return x.ShopType
  1922. }
  1923. return 0
  1924. }
  1925. // 响应商城
  1926. type ResShop struct {
  1927. state protoimpl.MessageState `protogen:"open.v1"`
  1928. Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
  1929. ErrMsg *MsgError `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
  1930. List []*ShopItem `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"`
  1931. unknownFields protoimpl.UnknownFields
  1932. sizeCache protoimpl.SizeCache
  1933. }
  1934. func (x *ResShop) Reset() {
  1935. *x = ResShop{}
  1936. mi := &file_common_proto_msgTypes[31]
  1937. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1938. ms.StoreMessageInfo(mi)
  1939. }
  1940. func (x *ResShop) String() string {
  1941. return protoimpl.X.MessageStringOf(x)
  1942. }
  1943. func (*ResShop) ProtoMessage() {}
  1944. func (x *ResShop) ProtoReflect() protoreflect.Message {
  1945. mi := &file_common_proto_msgTypes[31]
  1946. if x != nil {
  1947. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1948. if ms.LoadMessageInfo() == nil {
  1949. ms.StoreMessageInfo(mi)
  1950. }
  1951. return ms
  1952. }
  1953. return mi.MessageOf(x)
  1954. }
  1955. // Deprecated: Use ResShop.ProtoReflect.Descriptor instead.
  1956. func (*ResShop) Descriptor() ([]byte, []int) {
  1957. return file_common_proto_rawDescGZIP(), []int{31}
  1958. }
  1959. func (x *ResShop) GetSuccess() bool {
  1960. if x != nil {
  1961. return x.Success
  1962. }
  1963. return false
  1964. }
  1965. func (x *ResShop) GetErrMsg() *MsgError {
  1966. if x != nil {
  1967. return x.ErrMsg
  1968. }
  1969. return nil
  1970. }
  1971. func (x *ResShop) GetList() []*ShopItem {
  1972. if x != nil {
  1973. return x.List
  1974. }
  1975. return nil
  1976. }
  1977. type BuyShopItem struct {
  1978. state protoimpl.MessageState `protogen:"open.v1"`
  1979. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  1980. unknownFields protoimpl.UnknownFields
  1981. sizeCache protoimpl.SizeCache
  1982. }
  1983. func (x *BuyShopItem) Reset() {
  1984. *x = BuyShopItem{}
  1985. mi := &file_common_proto_msgTypes[32]
  1986. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1987. ms.StoreMessageInfo(mi)
  1988. }
  1989. func (x *BuyShopItem) String() string {
  1990. return protoimpl.X.MessageStringOf(x)
  1991. }
  1992. func (*BuyShopItem) ProtoMessage() {}
  1993. func (x *BuyShopItem) ProtoReflect() protoreflect.Message {
  1994. mi := &file_common_proto_msgTypes[32]
  1995. if x != nil {
  1996. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1997. if ms.LoadMessageInfo() == nil {
  1998. ms.StoreMessageInfo(mi)
  1999. }
  2000. return ms
  2001. }
  2002. return mi.MessageOf(x)
  2003. }
  2004. // Deprecated: Use BuyShopItem.ProtoReflect.Descriptor instead.
  2005. func (*BuyShopItem) Descriptor() ([]byte, []int) {
  2006. return file_common_proto_rawDescGZIP(), []int{32}
  2007. }
  2008. func (x *BuyShopItem) GetId() string {
  2009. if x != nil {
  2010. return x.Id
  2011. }
  2012. return ""
  2013. }
  2014. var File_common_proto protoreflect.FileDescriptor
  2015. const file_common_proto_rawDesc = "" +
  2016. "\n" +
  2017. "\fcommon.proto\"z\n" +
  2018. "\x05round\x12\"\n" +
  2019. "\am_color\x18\x01 \x01(\x0e2\t.roleTypeR\x06mColor\x12\x15\n" +
  2020. "\x06m_road\x18\x02 \x01(\tR\x05mRoad\x12\x1a\n" +
  2021. "\x03opt\x18\x03 \x01(\x0e2\b.OptTypeR\x03opt\x12\x1a\n" +
  2022. "\bszNumber\x18\x04 \x01(\x05R\bszNumber\"\x87\x04\n" +
  2023. "\bRoomInfo\x12\x1f\n" +
  2024. "\x05roles\x18\x01 \x03(\v2\t.RoleDataR\x05roles\x12\"\n" +
  2025. "\x06colors\x18\x02 \x03(\v2\n" +
  2026. ".ColorDataR\x06colors\x12&\n" +
  2027. "\troom_type\x18\x03 \x01(\x0e2\t.roomTypeR\broomType\x12&\n" +
  2028. "\troom_mode\x18\x04 \x01(\x0e2\t.roomModeR\broomMode\x121\n" +
  2029. "\x0fcur_round_color\x18\x05 \x01(\x0e2\t.roleTypeR\rcurRoundColor\x12\x1e\n" +
  2030. "\x06rounds\x18\x06 \x03(\v2\x06.roundR\x06rounds\x12/\n" +
  2031. "\rfinish_colors\x18\a \x03(\v2\n" +
  2032. ".ColorDataR\ffinishColors\x12+\n" +
  2033. "\vkict_colors\x18\b \x03(\v2\n" +
  2034. ".ColorDataR\n" +
  2035. "kictColors\x12\x0e\n" +
  2036. "\x02id\x18\t \x01(\x05R\x02id\x12\x1d\n" +
  2037. "\n" +
  2038. "room_level\x18\n" +
  2039. " \x01(\x05R\troomLevel\x12,\n" +
  2040. "\vroom_status\x18\v \x01(\x0e2\v.roomStatusR\n" +
  2041. "roomStatus\x12=\n" +
  2042. "\x12cur_color_opt_data\x18\f \x01(\v2\x10.NotifyPlayerOptR\x0fcurColorOptData\x12\x19\n" +
  2043. "\bopt_time\x18\r \x01(\x05R\aoptTime\"\xb0\x01\n" +
  2044. "\bRoleData\x12\"\n" +
  2045. "\am_color\x18\x01 \x01(\x0e2\t.roleTypeR\x06mColor\x12\x15\n" +
  2046. "\x06m_seat\x18\x02 \x01(\x05R\x05mSeat\x12\x11\n" +
  2047. "\x04m_id\x18\x03 \x01(\tR\x03mId\x12'\n" +
  2048. "\n" +
  2049. "m_cur_road\x18\x04 \x01(\x0e2\t.roadTypeR\bmCurRoad\x12\x12\n" +
  2050. "\x04step\x18\x05 \x01(\x05R\x04step\x12\x19\n" +
  2051. "\bold_setp\x18\x06 \x01(\x05R\aoldSetp\"\x9e\x02\n" +
  2052. "\tColorData\x12\x11\n" +
  2053. "\x04m_id\x18\x01 \x01(\tR\x03mId\x12\"\n" +
  2054. "\am_color\x18\x02 \x01(\x0e2\t.roleTypeR\x06mColor\x12\x17\n" +
  2055. "\ais_kick\x18\x03 \x01(\bR\x06isKick\x12\x1b\n" +
  2056. "\tis_finish\x18\x04 \x01(\bR\bisFinish\x12 \n" +
  2057. "\ftime_out_num\x18\x05 \x01(\x05R\n" +
  2058. "timeOutNum\x12\x15\n" +
  2059. "\x06m_name\x18\x06 \x01(\tR\x05mName\x12\x15\n" +
  2060. "\x06m_head\x18\a \x01(\tR\x05mHead\x12\x19\n" +
  2061. "\brank_num\x18\b \x01(\x05R\arankNum\x12\x15\n" +
  2062. "\x06m_coin\x18\t \x01(\x05R\x05mCoin\x12\"\n" +
  2063. "\rm_reward_coin\x18\n" +
  2064. " \x01(\x05R\vmRewardCoin\"P\n" +
  2065. "\fMoveStepData\x12\x11\n" +
  2066. "\x04m_id\x18\x01 \x01(\tR\x03mId\x12\x12\n" +
  2067. "\x04step\x18\x02 \x01(\x05R\x04step\x12\x19\n" +
  2068. "\bold_setp\x18\x03 \x01(\x05R\aoldSetp\".\n" +
  2069. "\vSendColorSz\x12\x1f\n" +
  2070. "\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\"G\n" +
  2071. "\fSendRoleMove\x12\x1f\n" +
  2072. "\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\x12\x16\n" +
  2073. "\x06roleId\x18\x02 \x01(\tR\x06roleId\"/\n" +
  2074. "\fSendQuitRoom\x12\x1f\n" +
  2075. "\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\"w\n" +
  2076. "\x14NotifyPlayerSzNumber\x12\x1f\n" +
  2077. "\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\x12\x1a\n" +
  2078. "\bszNumber\x18\x02 \x01(\x05R\bszNumber\x12\"\n" +
  2079. "\aerr_msg\x18\x03 \x01(\v2\t.MsgErrorR\x06errMsg\"u\n" +
  2080. "\x10NotifyPlayerMove\x12\x1f\n" +
  2081. "\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\x12!\n" +
  2082. "\x04step\x18\x02 \x01(\v2\r.MoveStepDataR\x04step\x12\x1d\n" +
  2083. "\x04kick\x18\x03 \x03(\v2\t.RoleDataR\x04kick\"\x98\x01\n" +
  2084. "\x0fNotifyPlayerOpt\x12\x1f\n" +
  2085. "\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\x12\x1a\n" +
  2086. "\x03opt\x18\x02 \x01(\x0e2\b.OptTypeR\x03opt\x12-\n" +
  2087. "\fcanMoveRoles\x18\x03 \x03(\v2\t.RoleDataR\fcanMoveRoles\x12\x19\n" +
  2088. "\bopt_time\x18\x04 \x01(\x05R\aoptTime\"\xb2\x01\n" +
  2089. "\x12NotifyPlayerStatus\x12\x1f\n" +
  2090. "\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\x12%\n" +
  2091. "\x06status\x18\x02 \x01(\x0e2\r.playerStatusR\x06status\x12\"\n" +
  2092. "\x06colors\x18\x03 \x03(\v2\n" +
  2093. ".ColorDataR\x06colors\x120\n" +
  2094. "\x0etime_out_color\x18\x04 \x01(\v2\n" +
  2095. ".ColorDataR\ftimeOutColor\"d\n" +
  2096. "\x10NotifySettlement\x12\x1f\n" +
  2097. "\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\x12/\n" +
  2098. "\rfinish_colors\x18\x02 \x03(\v2\n" +
  2099. ".ColorDataR\ffinishColors\">\n" +
  2100. "\x14NotifyUpdateRoomInfo\x12&\n" +
  2101. "\troom_info\x18\x01 \x01(\v2\t.RoomInfoR\broomInfo\"}\n" +
  2102. "\bUserInfo\x12\x16\n" +
  2103. "\x06UserId\x18\x01 \x01(\tR\x06UserId\x12\x15\n" +
  2104. "\x06m_head\x18\x02 \x01(\tR\x05mHead\x12\x15\n" +
  2105. "\x06m_coin\x18\x03 \x01(\x05R\x05mCoin\x12\x12\n" +
  2106. "\x04name\x18\x04 \x01(\tR\x04name\x12\x17\n" +
  2107. "\aroom_id\x18\x05 \x01(\x05R\x06roomId\"@\n" +
  2108. "\bReqLogin\x12\x18\n" +
  2109. "\aaccount\x18\x01 \x01(\tR\aaccount\x12\x1a\n" +
  2110. "\bpassword\x18\x02 \x01(\tR\bpassword\"\x89\x01\n" +
  2111. "\bResLogin\x12\x16\n" +
  2112. "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x1a\n" +
  2113. "\bnikeName\x18\x02 \x01(\tR\bnikeName\x12%\n" +
  2114. "\buserInfo\x18\x03 \x01(\v2\t.UserInfoR\buserInfo\x12\"\n" +
  2115. "\aerr_msg\x18\x04 \x01(\v2\t.MsgErrorR\x06errMsg\"v\n" +
  2116. "\vReqRegister\x12\x1a\n" +
  2117. "\bnikeName\x18\x01 \x01(\tR\bnikeName\x12\x18\n" +
  2118. "\aaccount\x18\x02 \x01(\tR\aaccount\x12\x1a\n" +
  2119. "\bpassword\x18\x03 \x01(\tR\bpassword\x12\x15\n" +
  2120. "\x06m_head\x18\x04 \x01(\tR\x05mHead\"K\n" +
  2121. "\vResRegister\x12\x18\n" +
  2122. "\asuccess\x18\x01 \x01(\bR\asuccess\x12\"\n" +
  2123. "\aerr_msg\x18\x02 \x01(\v2\t.MsgErrorR\x06errMsg\"#\n" +
  2124. "\tEnterHall\x12\x16\n" +
  2125. "\x06userId\x18\x01 \x01(\tR\x06userId\"\x87\x01\n" +
  2126. "\fResEnterHall\x12\x18\n" +
  2127. "\asuccess\x18\x01 \x01(\bR\asuccess\x12\"\n" +
  2128. "\aerr_msg\x18\x02 \x01(\v2\t.MsgErrorR\x06errMsg\x129\n" +
  2129. "\x13reconnect_room_info\x18\x03 \x01(\v2\t.RoomInfoR\x11reconnectRoomInfo\"#\n" +
  2130. "\tLeaveHall\x12\x16\n" +
  2131. "\x06userId\x18\x01 \x01(\tR\x06userId\"\x8d\x01\n" +
  2132. "\tMatchLudo\x123\n" +
  2133. "\x10select_room_type\x18\x01 \x01(\x0e2\t.roomTypeR\x0eselectRoomType\x12\x1d\n" +
  2134. "\n" +
  2135. "room_level\x18\x02 \x01(\x05R\troomLevel\x12,\n" +
  2136. "\fselect_color\x18\x03 \x01(\x0e2\t.roleTypeR\vselectColor\"k\n" +
  2137. "\fResMatchLudo\x12\x18\n" +
  2138. "\asuccess\x18\x01 \x01(\bR\asuccess\x12\"\n" +
  2139. "\aerr_msg\x18\x02 \x01(\v2\t.MsgErrorR\x06errMsg\x12\x1d\n" +
  2140. "\x04room\x18\x03 \x01(\v2\t.RoomInfoR\x04room\"F\n" +
  2141. "\bMsgError\x12\x1d\n" +
  2142. "\n" +
  2143. "error_code\x18\x01 \x01(\x05R\terrorCode\x12\x1b\n" +
  2144. "\terror_msg\x18\x02 \x01(\tR\berrorMsg\"/\n" +
  2145. "\x0eUpdateUserInfo\x12\x1d\n" +
  2146. "\x04info\x18\x01 \x01(\v2\t.UserInfoR\x04info\" \n" +
  2147. "\fResHeartBeat\x12\x10\n" +
  2148. "\x03msg\x18\x01 \x01(\tR\x03msg\" \n" +
  2149. "\fReqHeartBeat\x12\x10\n" +
  2150. "\x03msg\x18\x01 \x01(\tR\x03msg\"V\n" +
  2151. "\bShopItem\x12\x12\n" +
  2152. "\x04name\x18\x01 \x01(\tR\x04name\x12\x0e\n" +
  2153. "\x02id\x18\x02 \x01(\tR\x02id\x12\x14\n" +
  2154. "\x05price\x18\x03 \x01(\x05R\x05price\x12\x10\n" +
  2155. "\x03num\x18\x04 \x01(\x05R\x03num\"1\n" +
  2156. "\vBeKickLogin\x12\"\n" +
  2157. "\aerr_msg\x18\x01 \x01(\v2\t.MsgErrorR\x06errMsg\"%\n" +
  2158. "\aReqShop\x12\x1a\n" +
  2159. "\bshopType\x18\x01 \x01(\x05R\bshopType\"f\n" +
  2160. "\aResShop\x12\x18\n" +
  2161. "\asuccess\x18\x01 \x01(\bR\asuccess\x12\"\n" +
  2162. "\aerr_msg\x18\x02 \x01(\v2\t.MsgErrorR\x06errMsg\x12\x1d\n" +
  2163. "\x04list\x18\x03 \x03(\v2\t.ShopItemR\x04list\"\x1d\n" +
  2164. "\vBuyShopItem\x12\x0e\n" +
  2165. "\x02id\x18\x01 \x01(\tR\x02id*K\n" +
  2166. "\broleType\x12\x15\n" +
  2167. "\x11ROLE_TYPE_UNKNOWN\x10\x00\x12\a\n" +
  2168. "\x03RED\x10\x01\x12\b\n" +
  2169. "\x04BLUE\x10\x04\x12\n" +
  2170. "\n" +
  2171. "\x06YELLOW\x10\x03\x12\t\n" +
  2172. "\x05GREEN\x10\x02*A\n" +
  2173. "\aOptType\x12\x14\n" +
  2174. "\x10OPT_TYPE_UNKNOWN\x10\x00\x12\x0f\n" +
  2175. "\vZHI_SHAI_ZI\x10\x01\x12\x0f\n" +
  2176. "\vSELECT_ROLE\x10\x02*@\n" +
  2177. "\broomType\x12\x15\n" +
  2178. "\x11ROOM_TYPE_UNKNOWN\x10\x00\x12\x0e\n" +
  2179. "\n" +
  2180. "SHUANG_REN\x10\x01\x12\r\n" +
  2181. "\tSIREN_REN\x10\x02*:\n" +
  2182. "\broomMode\x12\x15\n" +
  2183. "\x11ROOM_MODE_UNKNOWN\x10\x00\x12\n" +
  2184. "\n" +
  2185. "\x06REN_JI\x10\x01\x12\v\n" +
  2186. "\aWAN_JIA\x10\x02*+\n" +
  2187. "\broadType\x12\x15\n" +
  2188. "\x11ROAD_TYPE_UNKNOWN\x10\x00\x12\b\n" +
  2189. "\x04HOME\x10\x01*q\n" +
  2190. "\fplayerStatus\x12\x19\n" +
  2191. "\x15PLAYER_STATUS_UNKNOWN\x10\x00\x12\x10\n" +
  2192. "\fSZ_ANIMATION\x10\x01\x12\x10\n" +
  2193. "\fCOLOR_FINISH\x10\x02\x12\x0e\n" +
  2194. "\n" +
  2195. "COLOR_KICK\x10\x03\x12\x12\n" +
  2196. "\x0eCOLOR_TIME_OUT\x10\x04*+\n" +
  2197. "\n" +
  2198. "roomStatus\x12\t\n" +
  2199. "\x05AWAIT\x10\x00\x12\t\n" +
  2200. "\x05START\x10\x01\x12\a\n" +
  2201. "\x03END\x10\x02B\aZ\x05./msgb\x06proto3"
  2202. var (
  2203. file_common_proto_rawDescOnce sync.Once
  2204. file_common_proto_rawDescData []byte
  2205. )
  2206. func file_common_proto_rawDescGZIP() []byte {
  2207. file_common_proto_rawDescOnce.Do(func() {
  2208. file_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_common_proto_rawDesc), len(file_common_proto_rawDesc)))
  2209. })
  2210. return file_common_proto_rawDescData
  2211. }
  2212. var file_common_proto_enumTypes = make([]protoimpl.EnumInfo, 7)
  2213. var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 33)
  2214. var file_common_proto_goTypes = []any{
  2215. (RoleType)(0), // 0: roleType
  2216. (OptType)(0), // 1: OptType
  2217. (RoomType)(0), // 2: roomType
  2218. (RoomMode)(0), // 3: roomMode
  2219. (RoadType)(0), // 4: roadType
  2220. (PlayerStatus)(0), // 5: playerStatus
  2221. (RoomStatus)(0), // 6: roomStatus
  2222. (*Round)(nil), // 7: round
  2223. (*RoomInfo)(nil), // 8: RoomInfo
  2224. (*RoleData)(nil), // 9: RoleData
  2225. (*ColorData)(nil), // 10: ColorData
  2226. (*MoveStepData)(nil), // 11: MoveStepData
  2227. (*SendColorSz)(nil), // 12: SendColorSz
  2228. (*SendRoleMove)(nil), // 13: SendRoleMove
  2229. (*SendQuitRoom)(nil), // 14: SendQuitRoom
  2230. (*NotifyPlayerSzNumber)(nil), // 15: NotifyPlayerSzNumber
  2231. (*NotifyPlayerMove)(nil), // 16: NotifyPlayerMove
  2232. (*NotifyPlayerOpt)(nil), // 17: NotifyPlayerOpt
  2233. (*NotifyPlayerStatus)(nil), // 18: NotifyPlayerStatus
  2234. (*NotifySettlement)(nil), // 19: NotifySettlement
  2235. (*NotifyUpdateRoomInfo)(nil), // 20: NotifyUpdateRoomInfo
  2236. (*UserInfo)(nil), // 21: UserInfo
  2237. (*ReqLogin)(nil), // 22: ReqLogin
  2238. (*ResLogin)(nil), // 23: ResLogin
  2239. (*ReqRegister)(nil), // 24: ReqRegister
  2240. (*ResRegister)(nil), // 25: ResRegister
  2241. (*EnterHall)(nil), // 26: EnterHall
  2242. (*ResEnterHall)(nil), // 27: ResEnterHall
  2243. (*LeaveHall)(nil), // 28: LeaveHall
  2244. (*MatchLudo)(nil), // 29: MatchLudo
  2245. (*ResMatchLudo)(nil), // 30: ResMatchLudo
  2246. (*MsgError)(nil), // 31: MsgError
  2247. (*UpdateUserInfo)(nil), // 32: UpdateUserInfo
  2248. (*ResHeartBeat)(nil), // 33: ResHeartBeat
  2249. (*ReqHeartBeat)(nil), // 34: ReqHeartBeat
  2250. (*ShopItem)(nil), // 35: ShopItem
  2251. (*BeKickLogin)(nil), // 36: BeKickLogin
  2252. (*ReqShop)(nil), // 37: ReqShop
  2253. (*ResShop)(nil), // 38: ResShop
  2254. (*BuyShopItem)(nil), // 39: BuyShopItem
  2255. }
  2256. var file_common_proto_depIdxs = []int32{
  2257. 0, // 0: round.m_color:type_name -> roleType
  2258. 1, // 1: round.opt:type_name -> OptType
  2259. 9, // 2: RoomInfo.roles:type_name -> RoleData
  2260. 10, // 3: RoomInfo.colors:type_name -> ColorData
  2261. 2, // 4: RoomInfo.room_type:type_name -> roomType
  2262. 3, // 5: RoomInfo.room_mode:type_name -> roomMode
  2263. 0, // 6: RoomInfo.cur_round_color:type_name -> roleType
  2264. 7, // 7: RoomInfo.rounds:type_name -> round
  2265. 10, // 8: RoomInfo.finish_colors:type_name -> ColorData
  2266. 10, // 9: RoomInfo.kict_colors:type_name -> ColorData
  2267. 6, // 10: RoomInfo.room_status:type_name -> roomStatus
  2268. 17, // 11: RoomInfo.cur_color_opt_data:type_name -> NotifyPlayerOpt
  2269. 0, // 12: RoleData.m_color:type_name -> roleType
  2270. 4, // 13: RoleData.m_cur_road:type_name -> roadType
  2271. 0, // 14: ColorData.m_color:type_name -> roleType
  2272. 0, // 15: SendColorSz.color:type_name -> roleType
  2273. 0, // 16: SendRoleMove.color:type_name -> roleType
  2274. 0, // 17: SendQuitRoom.color:type_name -> roleType
  2275. 0, // 18: NotifyPlayerSzNumber.color:type_name -> roleType
  2276. 31, // 19: NotifyPlayerSzNumber.err_msg:type_name -> MsgError
  2277. 0, // 20: NotifyPlayerMove.color:type_name -> roleType
  2278. 11, // 21: NotifyPlayerMove.step:type_name -> MoveStepData
  2279. 9, // 22: NotifyPlayerMove.kick:type_name -> RoleData
  2280. 0, // 23: NotifyPlayerOpt.color:type_name -> roleType
  2281. 1, // 24: NotifyPlayerOpt.opt:type_name -> OptType
  2282. 9, // 25: NotifyPlayerOpt.canMoveRoles:type_name -> RoleData
  2283. 0, // 26: NotifyPlayerStatus.color:type_name -> roleType
  2284. 5, // 27: NotifyPlayerStatus.status:type_name -> playerStatus
  2285. 10, // 28: NotifyPlayerStatus.colors:type_name -> ColorData
  2286. 10, // 29: NotifyPlayerStatus.time_out_color:type_name -> ColorData
  2287. 0, // 30: NotifySettlement.color:type_name -> roleType
  2288. 10, // 31: NotifySettlement.finish_colors:type_name -> ColorData
  2289. 8, // 32: NotifyUpdateRoomInfo.room_info:type_name -> RoomInfo
  2290. 21, // 33: ResLogin.userInfo:type_name -> UserInfo
  2291. 31, // 34: ResLogin.err_msg:type_name -> MsgError
  2292. 31, // 35: ResRegister.err_msg:type_name -> MsgError
  2293. 31, // 36: ResEnterHall.err_msg:type_name -> MsgError
  2294. 8, // 37: ResEnterHall.reconnect_room_info:type_name -> RoomInfo
  2295. 2, // 38: MatchLudo.select_room_type:type_name -> roomType
  2296. 0, // 39: MatchLudo.select_color:type_name -> roleType
  2297. 31, // 40: ResMatchLudo.err_msg:type_name -> MsgError
  2298. 8, // 41: ResMatchLudo.room:type_name -> RoomInfo
  2299. 21, // 42: UpdateUserInfo.info:type_name -> UserInfo
  2300. 31, // 43: BeKickLogin.err_msg:type_name -> MsgError
  2301. 31, // 44: ResShop.err_msg:type_name -> MsgError
  2302. 35, // 45: ResShop.list:type_name -> ShopItem
  2303. 46, // [46:46] is the sub-list for method output_type
  2304. 46, // [46:46] is the sub-list for method input_type
  2305. 46, // [46:46] is the sub-list for extension type_name
  2306. 46, // [46:46] is the sub-list for extension extendee
  2307. 0, // [0:46] is the sub-list for field type_name
  2308. }
  2309. func init() { file_common_proto_init() }
  2310. func file_common_proto_init() {
  2311. if File_common_proto != nil {
  2312. return
  2313. }
  2314. type x struct{}
  2315. out := protoimpl.TypeBuilder{
  2316. File: protoimpl.DescBuilder{
  2317. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  2318. RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_proto_rawDesc), len(file_common_proto_rawDesc)),
  2319. NumEnums: 7,
  2320. NumMessages: 33,
  2321. NumExtensions: 0,
  2322. NumServices: 0,
  2323. },
  2324. GoTypes: file_common_proto_goTypes,
  2325. DependencyIndexes: file_common_proto_depIdxs,
  2326. EnumInfos: file_common_proto_enumTypes,
  2327. MessageInfos: file_common_proto_msgTypes,
  2328. }.Build()
  2329. File_common_proto = out.File
  2330. file_common_proto_goTypes = nil
  2331. file_common_proto_depIdxs = nil
  2332. }