12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.6
- // protoc v3.21.5
- // source: common.proto
- package msg
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type RoleType int32
- const (
- RoleType_ROLE_TYPE_UNKNOWN RoleType = 0
- RoleType_RED RoleType = 1 // 无操作
- RoleType_BLUE RoleType = 4
- RoleType_YELLOW RoleType = 3
- RoleType_GREEN RoleType = 2
- )
- // Enum value maps for RoleType.
- var (
- RoleType_name = map[int32]string{
- 0: "ROLE_TYPE_UNKNOWN",
- 1: "RED",
- 4: "BLUE",
- 3: "YELLOW",
- 2: "GREEN",
- }
- RoleType_value = map[string]int32{
- "ROLE_TYPE_UNKNOWN": 0,
- "RED": 1,
- "BLUE": 4,
- "YELLOW": 3,
- "GREEN": 2,
- }
- )
- func (x RoleType) Enum() *RoleType {
- p := new(RoleType)
- *p = x
- return p
- }
- func (x RoleType) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (RoleType) Descriptor() protoreflect.EnumDescriptor {
- return file_common_proto_enumTypes[0].Descriptor()
- }
- func (RoleType) Type() protoreflect.EnumType {
- return &file_common_proto_enumTypes[0]
- }
- func (x RoleType) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use RoleType.Descriptor instead.
- func (RoleType) EnumDescriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{0}
- }
- type OptType int32
- const (
- OptType_OPT_TYPE_UNKNOWN OptType = 0
- OptType_ZHI_SHAI_ZI OptType = 1
- OptType_SELECT_ROLE OptType = 2
- )
- // Enum value maps for OptType.
- var (
- OptType_name = map[int32]string{
- 0: "OPT_TYPE_UNKNOWN",
- 1: "ZHI_SHAI_ZI",
- 2: "SELECT_ROLE",
- }
- OptType_value = map[string]int32{
- "OPT_TYPE_UNKNOWN": 0,
- "ZHI_SHAI_ZI": 1,
- "SELECT_ROLE": 2,
- }
- )
- func (x OptType) Enum() *OptType {
- p := new(OptType)
- *p = x
- return p
- }
- func (x OptType) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (OptType) Descriptor() protoreflect.EnumDescriptor {
- return file_common_proto_enumTypes[1].Descriptor()
- }
- func (OptType) Type() protoreflect.EnumType {
- return &file_common_proto_enumTypes[1]
- }
- func (x OptType) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use OptType.Descriptor instead.
- func (OptType) EnumDescriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{1}
- }
- type RoomType int32
- const (
- RoomType_ROOM_TYPE_UNKNOWN RoomType = 0
- RoomType_SHUANG_REN RoomType = 1
- RoomType_SIREN_REN RoomType = 2
- )
- // Enum value maps for RoomType.
- var (
- RoomType_name = map[int32]string{
- 0: "ROOM_TYPE_UNKNOWN",
- 1: "SHUANG_REN",
- 2: "SIREN_REN",
- }
- RoomType_value = map[string]int32{
- "ROOM_TYPE_UNKNOWN": 0,
- "SHUANG_REN": 1,
- "SIREN_REN": 2,
- }
- )
- func (x RoomType) Enum() *RoomType {
- p := new(RoomType)
- *p = x
- return p
- }
- func (x RoomType) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (RoomType) Descriptor() protoreflect.EnumDescriptor {
- return file_common_proto_enumTypes[2].Descriptor()
- }
- func (RoomType) Type() protoreflect.EnumType {
- return &file_common_proto_enumTypes[2]
- }
- func (x RoomType) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use RoomType.Descriptor instead.
- func (RoomType) EnumDescriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{2}
- }
- type RoomMode int32
- const (
- RoomMode_ROOM_MODE_UNKNOWN RoomMode = 0
- RoomMode_REN_JI RoomMode = 1
- RoomMode_WAN_JIA RoomMode = 2
- )
- // Enum value maps for RoomMode.
- var (
- RoomMode_name = map[int32]string{
- 0: "ROOM_MODE_UNKNOWN",
- 1: "REN_JI",
- 2: "WAN_JIA",
- }
- RoomMode_value = map[string]int32{
- "ROOM_MODE_UNKNOWN": 0,
- "REN_JI": 1,
- "WAN_JIA": 2,
- }
- )
- func (x RoomMode) Enum() *RoomMode {
- p := new(RoomMode)
- *p = x
- return p
- }
- func (x RoomMode) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (RoomMode) Descriptor() protoreflect.EnumDescriptor {
- return file_common_proto_enumTypes[3].Descriptor()
- }
- func (RoomMode) Type() protoreflect.EnumType {
- return &file_common_proto_enumTypes[3]
- }
- func (x RoomMode) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use RoomMode.Descriptor instead.
- func (RoomMode) EnumDescriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{3}
- }
- type RoadType int32
- const (
- RoadType_ROAD_TYPE_UNKNOWN RoadType = 0
- RoadType_HOME RoadType = 1
- )
- // Enum value maps for RoadType.
- var (
- RoadType_name = map[int32]string{
- 0: "ROAD_TYPE_UNKNOWN",
- 1: "HOME",
- }
- RoadType_value = map[string]int32{
- "ROAD_TYPE_UNKNOWN": 0,
- "HOME": 1,
- }
- )
- func (x RoadType) Enum() *RoadType {
- p := new(RoadType)
- *p = x
- return p
- }
- func (x RoadType) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (RoadType) Descriptor() protoreflect.EnumDescriptor {
- return file_common_proto_enumTypes[4].Descriptor()
- }
- func (RoadType) Type() protoreflect.EnumType {
- return &file_common_proto_enumTypes[4]
- }
- func (x RoadType) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use RoadType.Descriptor instead.
- func (RoadType) EnumDescriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{4}
- }
- type PlayerStatus int32
- const (
- PlayerStatus_PLAYER_STATUS_UNKNOWN PlayerStatus = 0
- PlayerStatus_SZ_ANIMATION PlayerStatus = 1
- PlayerStatus_COLOR_FINISH PlayerStatus = 2
- PlayerStatus_COLOR_KICK PlayerStatus = 3
- PlayerStatus_COLOR_TIME_OUT PlayerStatus = 4
- )
- // Enum value maps for PlayerStatus.
- var (
- PlayerStatus_name = map[int32]string{
- 0: "PLAYER_STATUS_UNKNOWN",
- 1: "SZ_ANIMATION",
- 2: "COLOR_FINISH",
- 3: "COLOR_KICK",
- 4: "COLOR_TIME_OUT",
- }
- PlayerStatus_value = map[string]int32{
- "PLAYER_STATUS_UNKNOWN": 0,
- "SZ_ANIMATION": 1,
- "COLOR_FINISH": 2,
- "COLOR_KICK": 3,
- "COLOR_TIME_OUT": 4,
- }
- )
- func (x PlayerStatus) Enum() *PlayerStatus {
- p := new(PlayerStatus)
- *p = x
- return p
- }
- func (x PlayerStatus) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (PlayerStatus) Descriptor() protoreflect.EnumDescriptor {
- return file_common_proto_enumTypes[5].Descriptor()
- }
- func (PlayerStatus) Type() protoreflect.EnumType {
- return &file_common_proto_enumTypes[5]
- }
- func (x PlayerStatus) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use PlayerStatus.Descriptor instead.
- func (PlayerStatus) EnumDescriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{5}
- }
- type RoomStatus int32
- const (
- RoomStatus_AWAIT RoomStatus = 0
- RoomStatus_START RoomStatus = 1
- RoomStatus_END RoomStatus = 2
- )
- // Enum value maps for RoomStatus.
- var (
- RoomStatus_name = map[int32]string{
- 0: "AWAIT",
- 1: "START",
- 2: "END",
- }
- RoomStatus_value = map[string]int32{
- "AWAIT": 0,
- "START": 1,
- "END": 2,
- }
- )
- func (x RoomStatus) Enum() *RoomStatus {
- p := new(RoomStatus)
- *p = x
- return p
- }
- func (x RoomStatus) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (RoomStatus) Descriptor() protoreflect.EnumDescriptor {
- return file_common_proto_enumTypes[6].Descriptor()
- }
- func (RoomStatus) Type() protoreflect.EnumType {
- return &file_common_proto_enumTypes[6]
- }
- func (x RoomStatus) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use RoomStatus.Descriptor instead.
- func (RoomStatus) EnumDescriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{6}
- }
- type Round struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- MColor RoleType `protobuf:"varint,1,opt,name=m_color,json=mColor,proto3,enum=RoleType" json:"m_color,omitempty"`
- MRoad string `protobuf:"bytes,2,opt,name=m_road,json=mRoad,proto3" json:"m_road,omitempty"`
- Opt OptType `protobuf:"varint,3,opt,name=opt,proto3,enum=OptType" json:"opt,omitempty"`
- SzNumber int32 `protobuf:"varint,4,opt,name=szNumber,proto3" json:"szNumber,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *Round) Reset() {
- *x = Round{}
- mi := &file_common_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *Round) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Round) ProtoMessage() {}
- func (x *Round) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Round.ProtoReflect.Descriptor instead.
- func (*Round) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{0}
- }
- func (x *Round) GetMColor() RoleType {
- if x != nil {
- return x.MColor
- }
- return RoleType_ROLE_TYPE_UNKNOWN
- }
- func (x *Round) GetMRoad() string {
- if x != nil {
- return x.MRoad
- }
- return ""
- }
- func (x *Round) GetOpt() OptType {
- if x != nil {
- return x.Opt
- }
- return OptType_OPT_TYPE_UNKNOWN
- }
- func (x *Round) GetSzNumber() int32 {
- if x != nil {
- return x.SzNumber
- }
- return 0
- }
- type RoomInfo struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Roles []*RoleData `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"`
- Colors []*ColorData `protobuf:"bytes,2,rep,name=colors,proto3" json:"colors,omitempty"`
- RoomType RoomType `protobuf:"varint,3,opt,name=room_type,json=roomType,proto3,enum=RoomType" json:"room_type,omitempty"`
- RoomMode RoomMode `protobuf:"varint,4,opt,name=room_mode,json=roomMode,proto3,enum=RoomMode" json:"room_mode,omitempty"`
- CurRoundColor RoleType `protobuf:"varint,5,opt,name=cur_round_color,json=curRoundColor,proto3,enum=RoleType" json:"cur_round_color,omitempty"` //当前那个阵营的回合
- Rounds []*Round `protobuf:"bytes,6,rep,name=rounds,proto3" json:"rounds,omitempty"`
- FinishColors []*ColorData `protobuf:"bytes,7,rep,name=finish_colors,json=finishColors,proto3" json:"finish_colors,omitempty"`
- KictColors []*ColorData `protobuf:"bytes,8,rep,name=kict_colors,json=kictColors,proto3" json:"kict_colors,omitempty"`
- Id int32 `protobuf:"varint,9,opt,name=id,proto3" json:"id,omitempty"`
- RoomLevel int32 `protobuf:"varint,10,opt,name=room_level,json=roomLevel,proto3" json:"room_level,omitempty"` //房间的每个等级都对应着不同的奖励和消耗
- RoomStatus RoomStatus `protobuf:"varint,11,opt,name=room_status,json=roomStatus,proto3,enum=RoomStatus" json:"room_status,omitempty"`
- CurColorOptData *NotifyPlayerOpt `protobuf:"bytes,12,opt,name=cur_color_opt_data,json=curColorOptData,proto3" json:"cur_color_opt_data,omitempty"` //当前阵营操作的类型
- OptTime int32 `protobuf:"varint,13,opt,name=opt_time,json=optTime,proto3" json:"opt_time,omitempty"` //玩家当前剩余操作时间
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *RoomInfo) Reset() {
- *x = RoomInfo{}
- mi := &file_common_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *RoomInfo) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*RoomInfo) ProtoMessage() {}
- func (x *RoomInfo) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use RoomInfo.ProtoReflect.Descriptor instead.
- func (*RoomInfo) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{1}
- }
- func (x *RoomInfo) GetRoles() []*RoleData {
- if x != nil {
- return x.Roles
- }
- return nil
- }
- func (x *RoomInfo) GetColors() []*ColorData {
- if x != nil {
- return x.Colors
- }
- return nil
- }
- func (x *RoomInfo) GetRoomType() RoomType {
- if x != nil {
- return x.RoomType
- }
- return RoomType_ROOM_TYPE_UNKNOWN
- }
- func (x *RoomInfo) GetRoomMode() RoomMode {
- if x != nil {
- return x.RoomMode
- }
- return RoomMode_ROOM_MODE_UNKNOWN
- }
- func (x *RoomInfo) GetCurRoundColor() RoleType {
- if x != nil {
- return x.CurRoundColor
- }
- return RoleType_ROLE_TYPE_UNKNOWN
- }
- func (x *RoomInfo) GetRounds() []*Round {
- if x != nil {
- return x.Rounds
- }
- return nil
- }
- func (x *RoomInfo) GetFinishColors() []*ColorData {
- if x != nil {
- return x.FinishColors
- }
- return nil
- }
- func (x *RoomInfo) GetKictColors() []*ColorData {
- if x != nil {
- return x.KictColors
- }
- return nil
- }
- func (x *RoomInfo) GetId() int32 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *RoomInfo) GetRoomLevel() int32 {
- if x != nil {
- return x.RoomLevel
- }
- return 0
- }
- func (x *RoomInfo) GetRoomStatus() RoomStatus {
- if x != nil {
- return x.RoomStatus
- }
- return RoomStatus_AWAIT
- }
- func (x *RoomInfo) GetCurColorOptData() *NotifyPlayerOpt {
- if x != nil {
- return x.CurColorOptData
- }
- return nil
- }
- func (x *RoomInfo) GetOptTime() int32 {
- if x != nil {
- return x.OptTime
- }
- return 0
- }
- type RoleData struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- MColor RoleType `protobuf:"varint,1,opt,name=m_color,json=mColor,proto3,enum=RoleType" json:"m_color,omitempty"`
- MSeat int32 `protobuf:"varint,2,opt,name=m_seat,json=mSeat,proto3" json:"m_seat,omitempty"`
- MId string `protobuf:"bytes,3,opt,name=m_id,json=mId,proto3" json:"m_id,omitempty"`
- MCurRoad RoadType `protobuf:"varint,4,opt,name=m_cur_road,json=mCurRoad,proto3,enum=RoadType" json:"m_cur_road,omitempty"`
- Step int32 `protobuf:"varint,5,opt,name=step,proto3" json:"step,omitempty"`
- OldSetp int32 `protobuf:"varint,6,opt,name=old_setp,json=oldSetp,proto3" json:"old_setp,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *RoleData) Reset() {
- *x = RoleData{}
- mi := &file_common_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *RoleData) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*RoleData) ProtoMessage() {}
- func (x *RoleData) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use RoleData.ProtoReflect.Descriptor instead.
- func (*RoleData) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{2}
- }
- func (x *RoleData) GetMColor() RoleType {
- if x != nil {
- return x.MColor
- }
- return RoleType_ROLE_TYPE_UNKNOWN
- }
- func (x *RoleData) GetMSeat() int32 {
- if x != nil {
- return x.MSeat
- }
- return 0
- }
- func (x *RoleData) GetMId() string {
- if x != nil {
- return x.MId
- }
- return ""
- }
- func (x *RoleData) GetMCurRoad() RoadType {
- if x != nil {
- return x.MCurRoad
- }
- return RoadType_ROAD_TYPE_UNKNOWN
- }
- func (x *RoleData) GetStep() int32 {
- if x != nil {
- return x.Step
- }
- return 0
- }
- func (x *RoleData) GetOldSetp() int32 {
- if x != nil {
- return x.OldSetp
- }
- return 0
- }
- type ColorData struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- MId string `protobuf:"bytes,1,opt,name=m_id,json=mId,proto3" json:"m_id,omitempty"`
- MColor RoleType `protobuf:"varint,2,opt,name=m_color,json=mColor,proto3,enum=RoleType" json:"m_color,omitempty"`
- IsKick bool `protobuf:"varint,3,opt,name=is_kick,json=isKick,proto3" json:"is_kick,omitempty"`
- IsFinish bool `protobuf:"varint,4,opt,name=is_finish,json=isFinish,proto3" json:"is_finish,omitempty"`
- TimeOutNum int32 `protobuf:"varint,5,opt,name=time_out_num,json=timeOutNum,proto3" json:"time_out_num,omitempty"`
- MName string `protobuf:"bytes,6,opt,name=m_name,json=mName,proto3" json:"m_name,omitempty"`
- MHead string `protobuf:"bytes,7,opt,name=m_head,json=mHead,proto3" json:"m_head,omitempty"`
- RankNum int32 `protobuf:"varint,8,opt,name=rank_num,json=rankNum,proto3" json:"rank_num,omitempty"`
- MCoin int32 `protobuf:"varint,9,opt,name=m_coin,json=mCoin,proto3" json:"m_coin,omitempty"`
- MRewardCoin int32 `protobuf:"varint,10,opt,name=m_reward_coin,json=mRewardCoin,proto3" json:"m_reward_coin,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ColorData) Reset() {
- *x = ColorData{}
- mi := &file_common_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ColorData) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ColorData) ProtoMessage() {}
- func (x *ColorData) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[3]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ColorData.ProtoReflect.Descriptor instead.
- func (*ColorData) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{3}
- }
- func (x *ColorData) GetMId() string {
- if x != nil {
- return x.MId
- }
- return ""
- }
- func (x *ColorData) GetMColor() RoleType {
- if x != nil {
- return x.MColor
- }
- return RoleType_ROLE_TYPE_UNKNOWN
- }
- func (x *ColorData) GetIsKick() bool {
- if x != nil {
- return x.IsKick
- }
- return false
- }
- func (x *ColorData) GetIsFinish() bool {
- if x != nil {
- return x.IsFinish
- }
- return false
- }
- func (x *ColorData) GetTimeOutNum() int32 {
- if x != nil {
- return x.TimeOutNum
- }
- return 0
- }
- func (x *ColorData) GetMName() string {
- if x != nil {
- return x.MName
- }
- return ""
- }
- func (x *ColorData) GetMHead() string {
- if x != nil {
- return x.MHead
- }
- return ""
- }
- func (x *ColorData) GetRankNum() int32 {
- if x != nil {
- return x.RankNum
- }
- return 0
- }
- func (x *ColorData) GetMCoin() int32 {
- if x != nil {
- return x.MCoin
- }
- return 0
- }
- func (x *ColorData) GetMRewardCoin() int32 {
- if x != nil {
- return x.MRewardCoin
- }
- return 0
- }
- type MoveStepData struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- MId string `protobuf:"bytes,1,opt,name=m_id,json=mId,proto3" json:"m_id,omitempty"`
- Step int32 `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"`
- OldSetp int32 `protobuf:"varint,3,opt,name=old_setp,json=oldSetp,proto3" json:"old_setp,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MoveStepData) Reset() {
- *x = MoveStepData{}
- mi := &file_common_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MoveStepData) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MoveStepData) ProtoMessage() {}
- func (x *MoveStepData) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[4]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use MoveStepData.ProtoReflect.Descriptor instead.
- func (*MoveStepData) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{4}
- }
- func (x *MoveStepData) GetMId() string {
- if x != nil {
- return x.MId
- }
- return ""
- }
- func (x *MoveStepData) GetStep() int32 {
- if x != nil {
- return x.Step
- }
- return 0
- }
- func (x *MoveStepData) GetOldSetp() int32 {
- if x != nil {
- return x.OldSetp
- }
- return 0
- }
- type SendColorSz struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"` //
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *SendColorSz) Reset() {
- *x = SendColorSz{}
- mi := &file_common_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *SendColorSz) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SendColorSz) ProtoMessage() {}
- func (x *SendColorSz) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[5]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use SendColorSz.ProtoReflect.Descriptor instead.
- func (*SendColorSz) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{5}
- }
- func (x *SendColorSz) GetColor() RoleType {
- if x != nil {
- return x.Color
- }
- return RoleType_ROLE_TYPE_UNKNOWN
- }
- type SendRoleMove struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"` //
- RoleId string `protobuf:"bytes,2,opt,name=roleId,proto3" json:"roleId,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *SendRoleMove) Reset() {
- *x = SendRoleMove{}
- mi := &file_common_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *SendRoleMove) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SendRoleMove) ProtoMessage() {}
- func (x *SendRoleMove) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[6]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use SendRoleMove.ProtoReflect.Descriptor instead.
- func (*SendRoleMove) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{6}
- }
- func (x *SendRoleMove) GetColor() RoleType {
- if x != nil {
- return x.Color
- }
- return RoleType_ROLE_TYPE_UNKNOWN
- }
- func (x *SendRoleMove) GetRoleId() string {
- if x != nil {
- return x.RoleId
- }
- return ""
- }
- type SendQuitRoom struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"` //
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *SendQuitRoom) Reset() {
- *x = SendQuitRoom{}
- mi := &file_common_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *SendQuitRoom) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SendQuitRoom) ProtoMessage() {}
- func (x *SendQuitRoom) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[7]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use SendQuitRoom.ProtoReflect.Descriptor instead.
- func (*SendQuitRoom) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{7}
- }
- func (x *SendQuitRoom) GetColor() RoleType {
- if x != nil {
- return x.Color
- }
- return RoleType_ROLE_TYPE_UNKNOWN
- }
- type NotifyPlayerSzNumber struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"` //
- SzNumber int32 `protobuf:"varint,2,opt,name=szNumber,proto3" json:"szNumber,omitempty"` //
- ErrMsg *MsgError `protobuf:"bytes,3,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *NotifyPlayerSzNumber) Reset() {
- *x = NotifyPlayerSzNumber{}
- mi := &file_common_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *NotifyPlayerSzNumber) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*NotifyPlayerSzNumber) ProtoMessage() {}
- func (x *NotifyPlayerSzNumber) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[8]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use NotifyPlayerSzNumber.ProtoReflect.Descriptor instead.
- func (*NotifyPlayerSzNumber) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{8}
- }
- func (x *NotifyPlayerSzNumber) GetColor() RoleType {
- if x != nil {
- return x.Color
- }
- return RoleType_ROLE_TYPE_UNKNOWN
- }
- func (x *NotifyPlayerSzNumber) GetSzNumber() int32 {
- if x != nil {
- return x.SzNumber
- }
- return 0
- }
- func (x *NotifyPlayerSzNumber) GetErrMsg() *MsgError {
- if x != nil {
- return x.ErrMsg
- }
- return nil
- }
- type NotifyPlayerMove struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"` //
- Step *MoveStepData `protobuf:"bytes,2,opt,name=step,proto3" json:"step,omitempty"` //
- Kick []*RoleData `protobuf:"bytes,3,rep,name=kick,proto3" json:"kick,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *NotifyPlayerMove) Reset() {
- *x = NotifyPlayerMove{}
- mi := &file_common_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *NotifyPlayerMove) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*NotifyPlayerMove) ProtoMessage() {}
- func (x *NotifyPlayerMove) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[9]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use NotifyPlayerMove.ProtoReflect.Descriptor instead.
- func (*NotifyPlayerMove) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{9}
- }
- func (x *NotifyPlayerMove) GetColor() RoleType {
- if x != nil {
- return x.Color
- }
- return RoleType_ROLE_TYPE_UNKNOWN
- }
- func (x *NotifyPlayerMove) GetStep() *MoveStepData {
- if x != nil {
- return x.Step
- }
- return nil
- }
- func (x *NotifyPlayerMove) GetKick() []*RoleData {
- if x != nil {
- return x.Kick
- }
- return nil
- }
- type NotifyPlayerOpt struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"` //
- Opt OptType `protobuf:"varint,2,opt,name=opt,proto3,enum=OptType" json:"opt,omitempty"` //
- CanMoveRoles []*RoleData `protobuf:"bytes,3,rep,name=canMoveRoles,proto3" json:"canMoveRoles,omitempty"`
- OptTime int32 `protobuf:"varint,4,opt,name=opt_time,json=optTime,proto3" json:"opt_time,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *NotifyPlayerOpt) Reset() {
- *x = NotifyPlayerOpt{}
- mi := &file_common_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *NotifyPlayerOpt) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*NotifyPlayerOpt) ProtoMessage() {}
- func (x *NotifyPlayerOpt) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[10]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use NotifyPlayerOpt.ProtoReflect.Descriptor instead.
- func (*NotifyPlayerOpt) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{10}
- }
- func (x *NotifyPlayerOpt) GetColor() RoleType {
- if x != nil {
- return x.Color
- }
- return RoleType_ROLE_TYPE_UNKNOWN
- }
- func (x *NotifyPlayerOpt) GetOpt() OptType {
- if x != nil {
- return x.Opt
- }
- return OptType_OPT_TYPE_UNKNOWN
- }
- func (x *NotifyPlayerOpt) GetCanMoveRoles() []*RoleData {
- if x != nil {
- return x.CanMoveRoles
- }
- return nil
- }
- func (x *NotifyPlayerOpt) GetOptTime() int32 {
- if x != nil {
- return x.OptTime
- }
- return 0
- }
- type NotifyPlayerStatus struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"` //
- Status PlayerStatus `protobuf:"varint,2,opt,name=status,proto3,enum=PlayerStatus" json:"status,omitempty"`
- Colors []*ColorData `protobuf:"bytes,3,rep,name=colors,proto3" json:"colors,omitempty"`
- TimeOutColor *ColorData `protobuf:"bytes,4,opt,name=time_out_color,json=timeOutColor,proto3" json:"time_out_color,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *NotifyPlayerStatus) Reset() {
- *x = NotifyPlayerStatus{}
- mi := &file_common_proto_msgTypes[11]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *NotifyPlayerStatus) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*NotifyPlayerStatus) ProtoMessage() {}
- func (x *NotifyPlayerStatus) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[11]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use NotifyPlayerStatus.ProtoReflect.Descriptor instead.
- func (*NotifyPlayerStatus) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{11}
- }
- func (x *NotifyPlayerStatus) GetColor() RoleType {
- if x != nil {
- return x.Color
- }
- return RoleType_ROLE_TYPE_UNKNOWN
- }
- func (x *NotifyPlayerStatus) GetStatus() PlayerStatus {
- if x != nil {
- return x.Status
- }
- return PlayerStatus_PLAYER_STATUS_UNKNOWN
- }
- func (x *NotifyPlayerStatus) GetColors() []*ColorData {
- if x != nil {
- return x.Colors
- }
- return nil
- }
- func (x *NotifyPlayerStatus) GetTimeOutColor() *ColorData {
- if x != nil {
- return x.TimeOutColor
- }
- return nil
- }
- type NotifySettlement struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Color RoleType `protobuf:"varint,1,opt,name=color,proto3,enum=RoleType" json:"color,omitempty"` //
- FinishColors []*ColorData `protobuf:"bytes,2,rep,name=finish_colors,json=finishColors,proto3" json:"finish_colors,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *NotifySettlement) Reset() {
- *x = NotifySettlement{}
- mi := &file_common_proto_msgTypes[12]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *NotifySettlement) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*NotifySettlement) ProtoMessage() {}
- func (x *NotifySettlement) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[12]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use NotifySettlement.ProtoReflect.Descriptor instead.
- func (*NotifySettlement) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{12}
- }
- func (x *NotifySettlement) GetColor() RoleType {
- if x != nil {
- return x.Color
- }
- return RoleType_ROLE_TYPE_UNKNOWN
- }
- func (x *NotifySettlement) GetFinishColors() []*ColorData {
- if x != nil {
- return x.FinishColors
- }
- return nil
- }
- type NotifyUpdateRoomInfo struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- RoomInfo *RoomInfo `protobuf:"bytes,1,opt,name=room_info,json=roomInfo,proto3" json:"room_info,omitempty"` //
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *NotifyUpdateRoomInfo) Reset() {
- *x = NotifyUpdateRoomInfo{}
- mi := &file_common_proto_msgTypes[13]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *NotifyUpdateRoomInfo) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*NotifyUpdateRoomInfo) ProtoMessage() {}
- func (x *NotifyUpdateRoomInfo) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[13]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use NotifyUpdateRoomInfo.ProtoReflect.Descriptor instead.
- func (*NotifyUpdateRoomInfo) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{13}
- }
- func (x *NotifyUpdateRoomInfo) GetRoomInfo() *RoomInfo {
- if x != nil {
- return x.RoomInfo
- }
- return nil
- }
- // 用户信息
- type UserInfo struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- UserId string `protobuf:"bytes,1,opt,name=UserId,proto3" json:"UserId,omitempty"`
- MHead string `protobuf:"bytes,2,opt,name=m_head,json=mHead,proto3" json:"m_head,omitempty"`
- MCoin int32 `protobuf:"varint,3,opt,name=m_coin,json=mCoin,proto3" json:"m_coin,omitempty"`
- Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
- RoomId int32 `protobuf:"varint,5,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` //如果用户在某一个房间玩,他的id就一直存在,
- OnlineStatus int32 `protobuf:"varint,6,opt,name=online_status,json=onlineStatus,proto3" json:"online_status,omitempty"` //在线=1 离线等0
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *UserInfo) Reset() {
- *x = UserInfo{}
- mi := &file_common_proto_msgTypes[14]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *UserInfo) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserInfo) ProtoMessage() {}
- func (x *UserInfo) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[14]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.
- func (*UserInfo) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{14}
- }
- func (x *UserInfo) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *UserInfo) GetMHead() string {
- if x != nil {
- return x.MHead
- }
- return ""
- }
- func (x *UserInfo) GetMCoin() int32 {
- if x != nil {
- return x.MCoin
- }
- return 0
- }
- func (x *UserInfo) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *UserInfo) GetRoomId() int32 {
- if x != nil {
- return x.RoomId
- }
- return 0
- }
- func (x *UserInfo) GetOnlineStatus() int32 {
- if x != nil {
- return x.OnlineStatus
- }
- return 0
- }
- // 登录 请求
- type ReqLogin struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
- Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ReqLogin) Reset() {
- *x = ReqLogin{}
- mi := &file_common_proto_msgTypes[15]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ReqLogin) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ReqLogin) ProtoMessage() {}
- func (x *ReqLogin) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[15]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ReqLogin.ProtoReflect.Descriptor instead.
- func (*ReqLogin) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{15}
- }
- func (x *ReqLogin) GetAccount() string {
- if x != nil {
- return x.Account
- }
- return ""
- }
- func (x *ReqLogin) GetPassword() string {
- if x != nil {
- return x.Password
- }
- return ""
- }
- // 登录 响应
- type ResLogin struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
- NikeName string `protobuf:"bytes,2,opt,name=nikeName,proto3" json:"nikeName,omitempty"`
- UserInfo *UserInfo `protobuf:"bytes,3,opt,name=userInfo,proto3" json:"userInfo,omitempty"`
- ErrMsg *MsgError `protobuf:"bytes,4,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ResLogin) Reset() {
- *x = ResLogin{}
- mi := &file_common_proto_msgTypes[16]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ResLogin) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResLogin) ProtoMessage() {}
- func (x *ResLogin) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[16]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ResLogin.ProtoReflect.Descriptor instead.
- func (*ResLogin) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{16}
- }
- func (x *ResLogin) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *ResLogin) GetNikeName() string {
- if x != nil {
- return x.NikeName
- }
- return ""
- }
- func (x *ResLogin) GetUserInfo() *UserInfo {
- if x != nil {
- return x.UserInfo
- }
- return nil
- }
- func (x *ResLogin) GetErrMsg() *MsgError {
- if x != nil {
- return x.ErrMsg
- }
- return nil
- }
- // 注册 请求
- type ReqRegister struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- NikeName string `protobuf:"bytes,1,opt,name=nikeName,proto3" json:"nikeName,omitempty"`
- Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
- Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
- MHead string `protobuf:"bytes,4,opt,name=m_head,json=mHead,proto3" json:"m_head,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ReqRegister) Reset() {
- *x = ReqRegister{}
- mi := &file_common_proto_msgTypes[17]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ReqRegister) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ReqRegister) ProtoMessage() {}
- func (x *ReqRegister) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[17]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ReqRegister.ProtoReflect.Descriptor instead.
- func (*ReqRegister) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{17}
- }
- func (x *ReqRegister) GetNikeName() string {
- if x != nil {
- return x.NikeName
- }
- return ""
- }
- func (x *ReqRegister) GetAccount() string {
- if x != nil {
- return x.Account
- }
- return ""
- }
- func (x *ReqRegister) GetPassword() string {
- if x != nil {
- return x.Password
- }
- return ""
- }
- func (x *ReqRegister) GetMHead() string {
- if x != nil {
- return x.MHead
- }
- return ""
- }
- // 注册 响应
- type ResRegister struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
- ErrMsg *MsgError `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ResRegister) Reset() {
- *x = ResRegister{}
- mi := &file_common_proto_msgTypes[18]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ResRegister) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResRegister) ProtoMessage() {}
- func (x *ResRegister) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[18]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ResRegister.ProtoReflect.Descriptor instead.
- func (*ResRegister) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{18}
- }
- func (x *ResRegister) GetSuccess() bool {
- if x != nil {
- return x.Success
- }
- return false
- }
- func (x *ResRegister) GetErrMsg() *MsgError {
- if x != nil {
- return x.ErrMsg
- }
- return nil
- }
- // 进入大厅
- type EnterHall struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *EnterHall) Reset() {
- *x = EnterHall{}
- mi := &file_common_proto_msgTypes[19]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *EnterHall) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*EnterHall) ProtoMessage() {}
- func (x *EnterHall) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[19]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use EnterHall.ProtoReflect.Descriptor instead.
- func (*EnterHall) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{19}
- }
- func (x *EnterHall) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- // 进入大厅响应
- type ResEnterHall struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
- ErrMsg *MsgError `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
- ReconnectRoomInfo *RoomInfo `protobuf:"bytes,3,opt,name=reconnect_room_info,json=reconnectRoomInfo,proto3" json:"reconnect_room_info,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ResEnterHall) Reset() {
- *x = ResEnterHall{}
- mi := &file_common_proto_msgTypes[20]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ResEnterHall) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResEnterHall) ProtoMessage() {}
- func (x *ResEnterHall) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[20]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ResEnterHall.ProtoReflect.Descriptor instead.
- func (*ResEnterHall) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{20}
- }
- func (x *ResEnterHall) GetSuccess() bool {
- if x != nil {
- return x.Success
- }
- return false
- }
- func (x *ResEnterHall) GetErrMsg() *MsgError {
- if x != nil {
- return x.ErrMsg
- }
- return nil
- }
- func (x *ResEnterHall) GetReconnectRoomInfo() *RoomInfo {
- if x != nil {
- return x.ReconnectRoomInfo
- }
- return nil
- }
- // 离开大厅
- type LeaveHall struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *LeaveHall) Reset() {
- *x = LeaveHall{}
- mi := &file_common_proto_msgTypes[21]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *LeaveHall) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*LeaveHall) ProtoMessage() {}
- func (x *LeaveHall) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[21]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use LeaveHall.ProtoReflect.Descriptor instead.
- func (*LeaveHall) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{21}
- }
- func (x *LeaveHall) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- // 匹配ludo
- type MatchLudo struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SelectRoomType RoomType `protobuf:"varint,1,opt,name=select_room_type,json=selectRoomType,proto3,enum=RoomType" json:"select_room_type,omitempty"`
- RoomLevel int32 `protobuf:"varint,2,opt,name=room_level,json=roomLevel,proto3" json:"room_level,omitempty"`
- SelectColor RoleType `protobuf:"varint,3,opt,name=select_color,json=selectColor,proto3,enum=RoleType" json:"select_color,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MatchLudo) Reset() {
- *x = MatchLudo{}
- mi := &file_common_proto_msgTypes[22]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MatchLudo) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MatchLudo) ProtoMessage() {}
- func (x *MatchLudo) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[22]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use MatchLudo.ProtoReflect.Descriptor instead.
- func (*MatchLudo) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{22}
- }
- func (x *MatchLudo) GetSelectRoomType() RoomType {
- if x != nil {
- return x.SelectRoomType
- }
- return RoomType_ROOM_TYPE_UNKNOWN
- }
- func (x *MatchLudo) GetRoomLevel() int32 {
- if x != nil {
- return x.RoomLevel
- }
- return 0
- }
- func (x *MatchLudo) GetSelectColor() RoleType {
- if x != nil {
- return x.SelectColor
- }
- return RoleType_ROLE_TYPE_UNKNOWN
- }
- // 匹配ludo 响应
- type ResMatchLudo struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
- ErrMsg *MsgError `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
- Room *RoomInfo `protobuf:"bytes,3,opt,name=room,proto3" json:"room,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ResMatchLudo) Reset() {
- *x = ResMatchLudo{}
- mi := &file_common_proto_msgTypes[23]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ResMatchLudo) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResMatchLudo) ProtoMessage() {}
- func (x *ResMatchLudo) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[23]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ResMatchLudo.ProtoReflect.Descriptor instead.
- func (*ResMatchLudo) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{23}
- }
- func (x *ResMatchLudo) GetSuccess() bool {
- if x != nil {
- return x.Success
- }
- return false
- }
- func (x *ResMatchLudo) GetErrMsg() *MsgError {
- if x != nil {
- return x.ErrMsg
- }
- return nil
- }
- func (x *ResMatchLudo) GetRoom() *RoomInfo {
- if x != nil {
- return x.Room
- }
- return nil
- }
- // error
- type MsgError struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ErrorCode int32 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
- ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MsgError) Reset() {
- *x = MsgError{}
- mi := &file_common_proto_msgTypes[24]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MsgError) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MsgError) ProtoMessage() {}
- func (x *MsgError) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[24]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use MsgError.ProtoReflect.Descriptor instead.
- func (*MsgError) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{24}
- }
- func (x *MsgError) GetErrorCode() int32 {
- if x != nil {
- return x.ErrorCode
- }
- return 0
- }
- func (x *MsgError) GetErrorMsg() string {
- if x != nil {
- return x.ErrorMsg
- }
- return ""
- }
- // 更新用户信息
- type UpdateUserInfo struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Info *UserInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *UpdateUserInfo) Reset() {
- *x = UpdateUserInfo{}
- mi := &file_common_proto_msgTypes[25]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *UpdateUserInfo) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UpdateUserInfo) ProtoMessage() {}
- func (x *UpdateUserInfo) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[25]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UpdateUserInfo.ProtoReflect.Descriptor instead.
- func (*UpdateUserInfo) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{25}
- }
- func (x *UpdateUserInfo) GetInfo() *UserInfo {
- if x != nil {
- return x.Info
- }
- return nil
- }
- type ResHeartBeat struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ResHeartBeat) Reset() {
- *x = ResHeartBeat{}
- mi := &file_common_proto_msgTypes[26]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ResHeartBeat) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResHeartBeat) ProtoMessage() {}
- func (x *ResHeartBeat) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[26]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ResHeartBeat.ProtoReflect.Descriptor instead.
- func (*ResHeartBeat) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{26}
- }
- func (x *ResHeartBeat) GetMsg() string {
- if x != nil {
- return x.Msg
- }
- return ""
- }
- type ReqHeartBeat struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ReqHeartBeat) Reset() {
- *x = ReqHeartBeat{}
- mi := &file_common_proto_msgTypes[27]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ReqHeartBeat) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ReqHeartBeat) ProtoMessage() {}
- func (x *ReqHeartBeat) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[27]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ReqHeartBeat.ProtoReflect.Descriptor instead.
- func (*ReqHeartBeat) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{27}
- }
- func (x *ReqHeartBeat) GetMsg() string {
- if x != nil {
- return x.Msg
- }
- return ""
- }
- type ShopItem struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
- Price int32 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
- Num int32 `protobuf:"varint,4,opt,name=num,proto3" json:"num,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ShopItem) Reset() {
- *x = ShopItem{}
- mi := &file_common_proto_msgTypes[28]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ShopItem) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ShopItem) ProtoMessage() {}
- func (x *ShopItem) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[28]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ShopItem.ProtoReflect.Descriptor instead.
- func (*ShopItem) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{28}
- }
- func (x *ShopItem) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *ShopItem) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
- }
- func (x *ShopItem) GetPrice() int32 {
- if x != nil {
- return x.Price
- }
- return 0
- }
- func (x *ShopItem) GetNum() int32 {
- if x != nil {
- return x.Num
- }
- return 0
- }
- // 被踢登陆
- type BeKickLogin struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ErrMsg *MsgError `protobuf:"bytes,1,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *BeKickLogin) Reset() {
- *x = BeKickLogin{}
- mi := &file_common_proto_msgTypes[29]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *BeKickLogin) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*BeKickLogin) ProtoMessage() {}
- func (x *BeKickLogin) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[29]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use BeKickLogin.ProtoReflect.Descriptor instead.
- func (*BeKickLogin) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{29}
- }
- func (x *BeKickLogin) GetErrMsg() *MsgError {
- if x != nil {
- return x.ErrMsg
- }
- return nil
- }
- // 请求商城
- type ReqShop struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ShopType int32 `protobuf:"varint,1,opt,name=shopType,proto3" json:"shopType,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ReqShop) Reset() {
- *x = ReqShop{}
- mi := &file_common_proto_msgTypes[30]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ReqShop) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ReqShop) ProtoMessage() {}
- func (x *ReqShop) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[30]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ReqShop.ProtoReflect.Descriptor instead.
- func (*ReqShop) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{30}
- }
- func (x *ReqShop) GetShopType() int32 {
- if x != nil {
- return x.ShopType
- }
- return 0
- }
- // 响应商城
- type ResShop struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
- ErrMsg *MsgError `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
- List []*ShopItem `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ResShop) Reset() {
- *x = ResShop{}
- mi := &file_common_proto_msgTypes[31]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ResShop) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResShop) ProtoMessage() {}
- func (x *ResShop) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[31]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ResShop.ProtoReflect.Descriptor instead.
- func (*ResShop) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{31}
- }
- func (x *ResShop) GetSuccess() bool {
- if x != nil {
- return x.Success
- }
- return false
- }
- func (x *ResShop) GetErrMsg() *MsgError {
- if x != nil {
- return x.ErrMsg
- }
- return nil
- }
- func (x *ResShop) GetList() []*ShopItem {
- if x != nil {
- return x.List
- }
- return nil
- }
- type HistoryRecord struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- RoomId int32 `protobuf:"varint,2,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
- UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Time string `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *HistoryRecord) Reset() {
- *x = HistoryRecord{}
- mi := &file_common_proto_msgTypes[32]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *HistoryRecord) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*HistoryRecord) ProtoMessage() {}
- func (x *HistoryRecord) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[32]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use HistoryRecord.ProtoReflect.Descriptor instead.
- func (*HistoryRecord) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{32}
- }
- func (x *HistoryRecord) GetId() int32 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *HistoryRecord) GetRoomId() int32 {
- if x != nil {
- return x.RoomId
- }
- return 0
- }
- func (x *HistoryRecord) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *HistoryRecord) GetTime() string {
- if x != nil {
- return x.Time
- }
- return ""
- }
- type ReqLudoHistory struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ReqLudoHistory) Reset() {
- *x = ReqLudoHistory{}
- mi := &file_common_proto_msgTypes[33]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ReqLudoHistory) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ReqLudoHistory) ProtoMessage() {}
- func (x *ReqLudoHistory) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[33]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ReqLudoHistory.ProtoReflect.Descriptor instead.
- func (*ReqLudoHistory) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{33}
- }
- func (x *ReqLudoHistory) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- type ResLudoHistory struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
- ErrMsg *MsgError `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
- List []*HistoryRecord `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ResLudoHistory) Reset() {
- *x = ResLudoHistory{}
- mi := &file_common_proto_msgTypes[34]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ResLudoHistory) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResLudoHistory) ProtoMessage() {}
- func (x *ResLudoHistory) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[34]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ResLudoHistory.ProtoReflect.Descriptor instead.
- func (*ResLudoHistory) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{34}
- }
- func (x *ResLudoHistory) GetSuccess() bool {
- if x != nil {
- return x.Success
- }
- return false
- }
- func (x *ResLudoHistory) GetErrMsg() *MsgError {
- if x != nil {
- return x.ErrMsg
- }
- return nil
- }
- func (x *ResLudoHistory) GetList() []*HistoryRecord {
- if x != nil {
- return x.List
- }
- return nil
- }
- type ReqLudoRoomInfo struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- RoomId int64 `protobuf:"varint,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ReqLudoRoomInfo) Reset() {
- *x = ReqLudoRoomInfo{}
- mi := &file_common_proto_msgTypes[35]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ReqLudoRoomInfo) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ReqLudoRoomInfo) ProtoMessage() {}
- func (x *ReqLudoRoomInfo) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[35]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ReqLudoRoomInfo.ProtoReflect.Descriptor instead.
- func (*ReqLudoRoomInfo) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{35}
- }
- func (x *ReqLudoRoomInfo) GetRoomId() int64 {
- if x != nil {
- return x.RoomId
- }
- return 0
- }
- type ResLudoRoomInfo struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
- ErrMsg *MsgError `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
- Info *RoomInfo `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ResLudoRoomInfo) Reset() {
- *x = ResLudoRoomInfo{}
- mi := &file_common_proto_msgTypes[36]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ResLudoRoomInfo) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResLudoRoomInfo) ProtoMessage() {}
- func (x *ResLudoRoomInfo) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[36]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ResLudoRoomInfo.ProtoReflect.Descriptor instead.
- func (*ResLudoRoomInfo) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{36}
- }
- func (x *ResLudoRoomInfo) GetSuccess() bool {
- if x != nil {
- return x.Success
- }
- return false
- }
- func (x *ResLudoRoomInfo) GetErrMsg() *MsgError {
- if x != nil {
- return x.ErrMsg
- }
- return nil
- }
- func (x *ResLudoRoomInfo) GetInfo() *RoomInfo {
- if x != nil {
- return x.Info
- }
- return nil
- }
- type BuyShopItem struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *BuyShopItem) Reset() {
- *x = BuyShopItem{}
- mi := &file_common_proto_msgTypes[37]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *BuyShopItem) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*BuyShopItem) ProtoMessage() {}
- func (x *BuyShopItem) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[37]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use BuyShopItem.ProtoReflect.Descriptor instead.
- func (*BuyShopItem) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{37}
- }
- func (x *BuyShopItem) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
- }
- // 好友请求的结构
- type RequestAddFriendItem struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- RequestID string `protobuf:"bytes,2,opt,name=RequestID,proto3" json:"RequestID,omitempty"` //请求id
- FromUserID string `protobuf:"bytes,3,opt,name=FromUserID,proto3" json:"FromUserID,omitempty"`
- ToUserID string `protobuf:"bytes,4,opt,name=ToUserID,proto3" json:"ToUserID,omitempty"`
- Status int32 `protobuf:"varint,5,opt,name=Status,proto3" json:"Status,omitempty"` //状态
- Message string `protobuf:"bytes,6,opt,name=Message,proto3" json:"Message,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *RequestAddFriendItem) Reset() {
- *x = RequestAddFriendItem{}
- mi := &file_common_proto_msgTypes[38]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *RequestAddFriendItem) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*RequestAddFriendItem) ProtoMessage() {}
- func (x *RequestAddFriendItem) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[38]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use RequestAddFriendItem.ProtoReflect.Descriptor instead.
- func (*RequestAddFriendItem) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{38}
- }
- func (x *RequestAddFriendItem) GetId() int32 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *RequestAddFriendItem) GetRequestID() string {
- if x != nil {
- return x.RequestID
- }
- return ""
- }
- func (x *RequestAddFriendItem) GetFromUserID() string {
- if x != nil {
- return x.FromUserID
- }
- return ""
- }
- func (x *RequestAddFriendItem) GetToUserID() string {
- if x != nil {
- return x.ToUserID
- }
- return ""
- }
- func (x *RequestAddFriendItem) GetStatus() int32 {
- if x != nil {
- return x.Status
- }
- return 0
- }
- func (x *RequestAddFriendItem) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- // 请求好友列表
- type ReqFriendList struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ReqFriendList) Reset() {
- *x = ReqFriendList{}
- mi := &file_common_proto_msgTypes[39]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ReqFriendList) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ReqFriendList) ProtoMessage() {}
- func (x *ReqFriendList) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[39]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ReqFriendList.ProtoReflect.Descriptor instead.
- func (*ReqFriendList) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{39}
- }
- func (x *ReqFriendList) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- // 响应好友列表请求,暂时没做分页
- type ResFriendList struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
- ErrMsg *MsgError `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
- List []*UserInfo `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ResFriendList) Reset() {
- *x = ResFriendList{}
- mi := &file_common_proto_msgTypes[40]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ResFriendList) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResFriendList) ProtoMessage() {}
- func (x *ResFriendList) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[40]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ResFriendList.ProtoReflect.Descriptor instead.
- func (*ResFriendList) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{40}
- }
- func (x *ResFriendList) GetSuccess() bool {
- if x != nil {
- return x.Success
- }
- return false
- }
- func (x *ResFriendList) GetErrMsg() *MsgError {
- if x != nil {
- return x.ErrMsg
- }
- return nil
- }
- func (x *ResFriendList) GetList() []*UserInfo {
- if x != nil {
- return x.List
- }
- return nil
- }
- // 请求好友申请单个数据
- type FriendRequestItem struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Info *UserInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
- RequestMsg string `protobuf:"bytes,2,opt,name=request_msg,json=requestMsg,proto3" json:"request_msg,omitempty"`
- CreateTime string `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
- Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *FriendRequestItem) Reset() {
- *x = FriendRequestItem{}
- mi := &file_common_proto_msgTypes[41]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *FriendRequestItem) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FriendRequestItem) ProtoMessage() {}
- func (x *FriendRequestItem) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[41]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use FriendRequestItem.ProtoReflect.Descriptor instead.
- func (*FriendRequestItem) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{41}
- }
- func (x *FriendRequestItem) GetInfo() *UserInfo {
- if x != nil {
- return x.Info
- }
- return nil
- }
- func (x *FriendRequestItem) GetRequestMsg() string {
- if x != nil {
- return x.RequestMsg
- }
- return ""
- }
- func (x *FriendRequestItem) GetCreateTime() string {
- if x != nil {
- return x.CreateTime
- }
- return ""
- }
- func (x *FriendRequestItem) GetStatus() int32 {
- if x != nil {
- return x.Status
- }
- return 0
- }
- // 请求好友申请列表
- type ReqFriendRequestList struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ReqFriendRequestList) Reset() {
- *x = ReqFriendRequestList{}
- mi := &file_common_proto_msgTypes[42]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ReqFriendRequestList) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ReqFriendRequestList) ProtoMessage() {}
- func (x *ReqFriendRequestList) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[42]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ReqFriendRequestList.ProtoReflect.Descriptor instead.
- func (*ReqFriendRequestList) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{42}
- }
- func (x *ReqFriendRequestList) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- // 响应好友申请列表请求,暂时没做分页
- type ResFriendRequestList struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
- ErrMsg *MsgError `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
- List []*FriendRequestItem `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ResFriendRequestList) Reset() {
- *x = ResFriendRequestList{}
- mi := &file_common_proto_msgTypes[43]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ResFriendRequestList) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResFriendRequestList) ProtoMessage() {}
- func (x *ResFriendRequestList) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[43]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ResFriendRequestList.ProtoReflect.Descriptor instead.
- func (*ResFriendRequestList) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{43}
- }
- func (x *ResFriendRequestList) GetSuccess() bool {
- if x != nil {
- return x.Success
- }
- return false
- }
- func (x *ResFriendRequestList) GetErrMsg() *MsgError {
- if x != nil {
- return x.ErrMsg
- }
- return nil
- }
- func (x *ResFriendRequestList) GetList() []*FriendRequestItem {
- if x != nil {
- return x.List
- }
- return nil
- }
- // 请求添加好友
- type ReqAddFriend struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ToUserID string `protobuf:"bytes,1,opt,name=ToUserID,proto3" json:"ToUserID,omitempty"`
- Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ReqAddFriend) Reset() {
- *x = ReqAddFriend{}
- mi := &file_common_proto_msgTypes[44]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ReqAddFriend) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ReqAddFriend) ProtoMessage() {}
- func (x *ReqAddFriend) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[44]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ReqAddFriend.ProtoReflect.Descriptor instead.
- func (*ReqAddFriend) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{44}
- }
- func (x *ReqAddFriend) GetToUserID() string {
- if x != nil {
- return x.ToUserID
- }
- return ""
- }
- func (x *ReqAddFriend) GetMsg() string {
- if x != nil {
- return x.Msg
- }
- return ""
- }
- // 客户端接收到请求消息
- type RecvAddFriendRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Info *UserInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *RecvAddFriendRequest) Reset() {
- *x = RecvAddFriendRequest{}
- mi := &file_common_proto_msgTypes[45]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *RecvAddFriendRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*RecvAddFriendRequest) ProtoMessage() {}
- func (x *RecvAddFriendRequest) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[45]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use RecvAddFriendRequest.ProtoReflect.Descriptor instead.
- func (*RecvAddFriendRequest) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{45}
- }
- func (x *RecvAddFriendRequest) GetInfo() *UserInfo {
- if x != nil {
- return x.Info
- }
- return nil
- }
- // 接收到的玩家对消息进行操作
- type OptAddFriendRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Info *RequestAddFriendItem `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *OptAddFriendRequest) Reset() {
- *x = OptAddFriendRequest{}
- mi := &file_common_proto_msgTypes[46]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *OptAddFriendRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*OptAddFriendRequest) ProtoMessage() {}
- func (x *OptAddFriendRequest) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[46]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use OptAddFriendRequest.ProtoReflect.Descriptor instead.
- func (*OptAddFriendRequest) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{46}
- }
- func (x *OptAddFriendRequest) GetInfo() *RequestAddFriendItem {
- if x != nil {
- return x.Info
- }
- return nil
- }
- // 通知请求的玩家,对方的操作结果
- type NotifyOptFriend struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Info *RequestAddFriendItem `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *NotifyOptFriend) Reset() {
- *x = NotifyOptFriend{}
- mi := &file_common_proto_msgTypes[47]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *NotifyOptFriend) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*NotifyOptFriend) ProtoMessage() {}
- func (x *NotifyOptFriend) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[47]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use NotifyOptFriend.ProtoReflect.Descriptor instead.
- func (*NotifyOptFriend) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{47}
- }
- func (x *NotifyOptFriend) GetInfo() *RequestAddFriendItem {
- if x != nil {
- return x.Info
- }
- return nil
- }
- // 根据玩家id搜索玩家
- type SearchUser struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *SearchUser) Reset() {
- *x = SearchUser{}
- mi := &file_common_proto_msgTypes[48]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *SearchUser) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SearchUser) ProtoMessage() {}
- func (x *SearchUser) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[48]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use SearchUser.ProtoReflect.Descriptor instead.
- func (*SearchUser) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{48}
- }
- func (x *SearchUser) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- // 响应搜索结果
- type ResSearchUser struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
- ErrMsg *MsgError `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
- Info *UserInfo `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ResSearchUser) Reset() {
- *x = ResSearchUser{}
- mi := &file_common_proto_msgTypes[49]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ResSearchUser) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResSearchUser) ProtoMessage() {}
- func (x *ResSearchUser) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[49]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ResSearchUser.ProtoReflect.Descriptor instead.
- func (*ResSearchUser) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{49}
- }
- func (x *ResSearchUser) GetSuccess() bool {
- if x != nil {
- return x.Success
- }
- return false
- }
- func (x *ResSearchUser) GetErrMsg() *MsgError {
- if x != nil {
- return x.ErrMsg
- }
- return nil
- }
- func (x *ResSearchUser) GetInfo() *UserInfo {
- if x != nil {
- return x.Info
- }
- return nil
- }
- // 删除好友
- type ReqDeleteFriend struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ToUserID string `protobuf:"bytes,1,opt,name=ToUserID,proto3" json:"ToUserID,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ReqDeleteFriend) Reset() {
- *x = ReqDeleteFriend{}
- mi := &file_common_proto_msgTypes[50]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ReqDeleteFriend) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ReqDeleteFriend) ProtoMessage() {}
- func (x *ReqDeleteFriend) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[50]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ReqDeleteFriend.ProtoReflect.Descriptor instead.
- func (*ReqDeleteFriend) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{50}
- }
- func (x *ReqDeleteFriend) GetToUserID() string {
- if x != nil {
- return x.ToUserID
- }
- return ""
- }
- // 删除好友响应
- type ResDeleteFriend struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
- ErrMsg *MsgError `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ResDeleteFriend) Reset() {
- *x = ResDeleteFriend{}
- mi := &file_common_proto_msgTypes[51]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ResDeleteFriend) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResDeleteFriend) ProtoMessage() {}
- func (x *ResDeleteFriend) ProtoReflect() protoreflect.Message {
- mi := &file_common_proto_msgTypes[51]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ResDeleteFriend.ProtoReflect.Descriptor instead.
- func (*ResDeleteFriend) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{51}
- }
- func (x *ResDeleteFriend) GetSuccess() bool {
- if x != nil {
- return x.Success
- }
- return false
- }
- func (x *ResDeleteFriend) GetErrMsg() *MsgError {
- if x != nil {
- return x.ErrMsg
- }
- return nil
- }
- var File_common_proto protoreflect.FileDescriptor
- const file_common_proto_rawDesc = "" +
- "\n" +
- "\fcommon.proto\"z\n" +
- "\x05round\x12\"\n" +
- "\am_color\x18\x01 \x01(\x0e2\t.roleTypeR\x06mColor\x12\x15\n" +
- "\x06m_road\x18\x02 \x01(\tR\x05mRoad\x12\x1a\n" +
- "\x03opt\x18\x03 \x01(\x0e2\b.OptTypeR\x03opt\x12\x1a\n" +
- "\bszNumber\x18\x04 \x01(\x05R\bszNumber\"\x87\x04\n" +
- "\bRoomInfo\x12\x1f\n" +
- "\x05roles\x18\x01 \x03(\v2\t.RoleDataR\x05roles\x12\"\n" +
- "\x06colors\x18\x02 \x03(\v2\n" +
- ".ColorDataR\x06colors\x12&\n" +
- "\troom_type\x18\x03 \x01(\x0e2\t.roomTypeR\broomType\x12&\n" +
- "\troom_mode\x18\x04 \x01(\x0e2\t.roomModeR\broomMode\x121\n" +
- "\x0fcur_round_color\x18\x05 \x01(\x0e2\t.roleTypeR\rcurRoundColor\x12\x1e\n" +
- "\x06rounds\x18\x06 \x03(\v2\x06.roundR\x06rounds\x12/\n" +
- "\rfinish_colors\x18\a \x03(\v2\n" +
- ".ColorDataR\ffinishColors\x12+\n" +
- "\vkict_colors\x18\b \x03(\v2\n" +
- ".ColorDataR\n" +
- "kictColors\x12\x0e\n" +
- "\x02id\x18\t \x01(\x05R\x02id\x12\x1d\n" +
- "\n" +
- "room_level\x18\n" +
- " \x01(\x05R\troomLevel\x12,\n" +
- "\vroom_status\x18\v \x01(\x0e2\v.roomStatusR\n" +
- "roomStatus\x12=\n" +
- "\x12cur_color_opt_data\x18\f \x01(\v2\x10.NotifyPlayerOptR\x0fcurColorOptData\x12\x19\n" +
- "\bopt_time\x18\r \x01(\x05R\aoptTime\"\xb0\x01\n" +
- "\bRoleData\x12\"\n" +
- "\am_color\x18\x01 \x01(\x0e2\t.roleTypeR\x06mColor\x12\x15\n" +
- "\x06m_seat\x18\x02 \x01(\x05R\x05mSeat\x12\x11\n" +
- "\x04m_id\x18\x03 \x01(\tR\x03mId\x12'\n" +
- "\n" +
- "m_cur_road\x18\x04 \x01(\x0e2\t.roadTypeR\bmCurRoad\x12\x12\n" +
- "\x04step\x18\x05 \x01(\x05R\x04step\x12\x19\n" +
- "\bold_setp\x18\x06 \x01(\x05R\aoldSetp\"\x9e\x02\n" +
- "\tColorData\x12\x11\n" +
- "\x04m_id\x18\x01 \x01(\tR\x03mId\x12\"\n" +
- "\am_color\x18\x02 \x01(\x0e2\t.roleTypeR\x06mColor\x12\x17\n" +
- "\ais_kick\x18\x03 \x01(\bR\x06isKick\x12\x1b\n" +
- "\tis_finish\x18\x04 \x01(\bR\bisFinish\x12 \n" +
- "\ftime_out_num\x18\x05 \x01(\x05R\n" +
- "timeOutNum\x12\x15\n" +
- "\x06m_name\x18\x06 \x01(\tR\x05mName\x12\x15\n" +
- "\x06m_head\x18\a \x01(\tR\x05mHead\x12\x19\n" +
- "\brank_num\x18\b \x01(\x05R\arankNum\x12\x15\n" +
- "\x06m_coin\x18\t \x01(\x05R\x05mCoin\x12\"\n" +
- "\rm_reward_coin\x18\n" +
- " \x01(\x05R\vmRewardCoin\"P\n" +
- "\fMoveStepData\x12\x11\n" +
- "\x04m_id\x18\x01 \x01(\tR\x03mId\x12\x12\n" +
- "\x04step\x18\x02 \x01(\x05R\x04step\x12\x19\n" +
- "\bold_setp\x18\x03 \x01(\x05R\aoldSetp\".\n" +
- "\vSendColorSz\x12\x1f\n" +
- "\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\"G\n" +
- "\fSendRoleMove\x12\x1f\n" +
- "\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\x12\x16\n" +
- "\x06roleId\x18\x02 \x01(\tR\x06roleId\"/\n" +
- "\fSendQuitRoom\x12\x1f\n" +
- "\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\"w\n" +
- "\x14NotifyPlayerSzNumber\x12\x1f\n" +
- "\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\x12\x1a\n" +
- "\bszNumber\x18\x02 \x01(\x05R\bszNumber\x12\"\n" +
- "\aerr_msg\x18\x03 \x01(\v2\t.MsgErrorR\x06errMsg\"u\n" +
- "\x10NotifyPlayerMove\x12\x1f\n" +
- "\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\x12!\n" +
- "\x04step\x18\x02 \x01(\v2\r.MoveStepDataR\x04step\x12\x1d\n" +
- "\x04kick\x18\x03 \x03(\v2\t.RoleDataR\x04kick\"\x98\x01\n" +
- "\x0fNotifyPlayerOpt\x12\x1f\n" +
- "\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\x12\x1a\n" +
- "\x03opt\x18\x02 \x01(\x0e2\b.OptTypeR\x03opt\x12-\n" +
- "\fcanMoveRoles\x18\x03 \x03(\v2\t.RoleDataR\fcanMoveRoles\x12\x19\n" +
- "\bopt_time\x18\x04 \x01(\x05R\aoptTime\"\xb2\x01\n" +
- "\x12NotifyPlayerStatus\x12\x1f\n" +
- "\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\x12%\n" +
- "\x06status\x18\x02 \x01(\x0e2\r.playerStatusR\x06status\x12\"\n" +
- "\x06colors\x18\x03 \x03(\v2\n" +
- ".ColorDataR\x06colors\x120\n" +
- "\x0etime_out_color\x18\x04 \x01(\v2\n" +
- ".ColorDataR\ftimeOutColor\"d\n" +
- "\x10NotifySettlement\x12\x1f\n" +
- "\x05color\x18\x01 \x01(\x0e2\t.roleTypeR\x05color\x12/\n" +
- "\rfinish_colors\x18\x02 \x03(\v2\n" +
- ".ColorDataR\ffinishColors\">\n" +
- "\x14NotifyUpdateRoomInfo\x12&\n" +
- "\troom_info\x18\x01 \x01(\v2\t.RoomInfoR\broomInfo\"\xa2\x01\n" +
- "\bUserInfo\x12\x16\n" +
- "\x06UserId\x18\x01 \x01(\tR\x06UserId\x12\x15\n" +
- "\x06m_head\x18\x02 \x01(\tR\x05mHead\x12\x15\n" +
- "\x06m_coin\x18\x03 \x01(\x05R\x05mCoin\x12\x12\n" +
- "\x04name\x18\x04 \x01(\tR\x04name\x12\x17\n" +
- "\aroom_id\x18\x05 \x01(\x05R\x06roomId\x12#\n" +
- "\ronline_status\x18\x06 \x01(\x05R\fonlineStatus\"@\n" +
- "\bReqLogin\x12\x18\n" +
- "\aaccount\x18\x01 \x01(\tR\aaccount\x12\x1a\n" +
- "\bpassword\x18\x02 \x01(\tR\bpassword\"\x89\x01\n" +
- "\bResLogin\x12\x16\n" +
- "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x1a\n" +
- "\bnikeName\x18\x02 \x01(\tR\bnikeName\x12%\n" +
- "\buserInfo\x18\x03 \x01(\v2\t.UserInfoR\buserInfo\x12\"\n" +
- "\aerr_msg\x18\x04 \x01(\v2\t.MsgErrorR\x06errMsg\"v\n" +
- "\vReqRegister\x12\x1a\n" +
- "\bnikeName\x18\x01 \x01(\tR\bnikeName\x12\x18\n" +
- "\aaccount\x18\x02 \x01(\tR\aaccount\x12\x1a\n" +
- "\bpassword\x18\x03 \x01(\tR\bpassword\x12\x15\n" +
- "\x06m_head\x18\x04 \x01(\tR\x05mHead\"K\n" +
- "\vResRegister\x12\x18\n" +
- "\asuccess\x18\x01 \x01(\bR\asuccess\x12\"\n" +
- "\aerr_msg\x18\x02 \x01(\v2\t.MsgErrorR\x06errMsg\"#\n" +
- "\tEnterHall\x12\x16\n" +
- "\x06userId\x18\x01 \x01(\tR\x06userId\"\x87\x01\n" +
- "\fResEnterHall\x12\x18\n" +
- "\asuccess\x18\x01 \x01(\bR\asuccess\x12\"\n" +
- "\aerr_msg\x18\x02 \x01(\v2\t.MsgErrorR\x06errMsg\x129\n" +
- "\x13reconnect_room_info\x18\x03 \x01(\v2\t.RoomInfoR\x11reconnectRoomInfo\"#\n" +
- "\tLeaveHall\x12\x16\n" +
- "\x06userId\x18\x01 \x01(\tR\x06userId\"\x8d\x01\n" +
- "\tMatchLudo\x123\n" +
- "\x10select_room_type\x18\x01 \x01(\x0e2\t.roomTypeR\x0eselectRoomType\x12\x1d\n" +
- "\n" +
- "room_level\x18\x02 \x01(\x05R\troomLevel\x12,\n" +
- "\fselect_color\x18\x03 \x01(\x0e2\t.roleTypeR\vselectColor\"k\n" +
- "\fResMatchLudo\x12\x18\n" +
- "\asuccess\x18\x01 \x01(\bR\asuccess\x12\"\n" +
- "\aerr_msg\x18\x02 \x01(\v2\t.MsgErrorR\x06errMsg\x12\x1d\n" +
- "\x04room\x18\x03 \x01(\v2\t.RoomInfoR\x04room\"F\n" +
- "\bMsgError\x12\x1d\n" +
- "\n" +
- "error_code\x18\x01 \x01(\x05R\terrorCode\x12\x1b\n" +
- "\terror_msg\x18\x02 \x01(\tR\berrorMsg\"/\n" +
- "\x0eUpdateUserInfo\x12\x1d\n" +
- "\x04info\x18\x01 \x01(\v2\t.UserInfoR\x04info\" \n" +
- "\fResHeartBeat\x12\x10\n" +
- "\x03msg\x18\x01 \x01(\tR\x03msg\" \n" +
- "\fReqHeartBeat\x12\x10\n" +
- "\x03msg\x18\x01 \x01(\tR\x03msg\"V\n" +
- "\bShopItem\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x12\x0e\n" +
- "\x02id\x18\x02 \x01(\tR\x02id\x12\x14\n" +
- "\x05price\x18\x03 \x01(\x05R\x05price\x12\x10\n" +
- "\x03num\x18\x04 \x01(\x05R\x03num\"1\n" +
- "\vBeKickLogin\x12\"\n" +
- "\aerr_msg\x18\x01 \x01(\v2\t.MsgErrorR\x06errMsg\"%\n" +
- "\aReqShop\x12\x1a\n" +
- "\bshopType\x18\x01 \x01(\x05R\bshopType\"f\n" +
- "\aResShop\x12\x18\n" +
- "\asuccess\x18\x01 \x01(\bR\asuccess\x12\"\n" +
- "\aerr_msg\x18\x02 \x01(\v2\t.MsgErrorR\x06errMsg\x12\x1d\n" +
- "\x04list\x18\x03 \x03(\v2\t.ShopItemR\x04list\"e\n" +
- "\rHistoryRecord\x12\x0e\n" +
- "\x02id\x18\x01 \x01(\x05R\x02id\x12\x17\n" +
- "\aroom_id\x18\x02 \x01(\x05R\x06roomId\x12\x17\n" +
- "\auser_id\x18\x03 \x01(\tR\x06userId\x12\x12\n" +
- "\x04time\x18\x04 \x01(\tR\x04time\")\n" +
- "\x0eReqLudoHistory\x12\x17\n" +
- "\auser_id\x18\x01 \x01(\tR\x06userId\"r\n" +
- "\x0eResLudoHistory\x12\x18\n" +
- "\asuccess\x18\x01 \x01(\bR\asuccess\x12\"\n" +
- "\aerr_msg\x18\x02 \x01(\v2\t.MsgErrorR\x06errMsg\x12\"\n" +
- "\x04list\x18\x03 \x03(\v2\x0e.HistoryRecordR\x04list\"*\n" +
- "\x0fReqLudoRoomInfo\x12\x17\n" +
- "\aroom_id\x18\x01 \x01(\x03R\x06roomId\"n\n" +
- "\x0fResLudoRoomInfo\x12\x18\n" +
- "\asuccess\x18\x01 \x01(\bR\asuccess\x12\"\n" +
- "\aerr_msg\x18\x02 \x01(\v2\t.MsgErrorR\x06errMsg\x12\x1d\n" +
- "\x04info\x18\x03 \x01(\v2\t.RoomInfoR\x04info\"\x1d\n" +
- "\vBuyShopItem\x12\x0e\n" +
- "\x02id\x18\x01 \x01(\tR\x02id\"\xb2\x01\n" +
- "\x14RequestAddFriendItem\x12\x0e\n" +
- "\x02id\x18\x01 \x01(\x05R\x02id\x12\x1c\n" +
- "\tRequestID\x18\x02 \x01(\tR\tRequestID\x12\x1e\n" +
- "\n" +
- "FromUserID\x18\x03 \x01(\tR\n" +
- "FromUserID\x12\x1a\n" +
- "\bToUserID\x18\x04 \x01(\tR\bToUserID\x12\x16\n" +
- "\x06Status\x18\x05 \x01(\x05R\x06Status\x12\x18\n" +
- "\aMessage\x18\x06 \x01(\tR\aMessage\"(\n" +
- "\rReqFriendList\x12\x17\n" +
- "\auser_id\x18\x01 \x01(\tR\x06userId\"l\n" +
- "\rResFriendList\x12\x18\n" +
- "\asuccess\x18\x01 \x01(\bR\asuccess\x12\"\n" +
- "\aerr_msg\x18\x02 \x01(\v2\t.MsgErrorR\x06errMsg\x12\x1d\n" +
- "\x04list\x18\x03 \x03(\v2\t.UserInfoR\x04list\"\x8c\x01\n" +
- "\x11FriendRequestItem\x12\x1d\n" +
- "\x04info\x18\x01 \x01(\v2\t.UserInfoR\x04info\x12\x1f\n" +
- "\vrequest_msg\x18\x02 \x01(\tR\n" +
- "requestMsg\x12\x1f\n" +
- "\vcreate_time\x18\x03 \x01(\tR\n" +
- "createTime\x12\x16\n" +
- "\x06status\x18\x04 \x01(\x05R\x06status\"/\n" +
- "\x14ReqFriendRequestList\x12\x17\n" +
- "\auser_id\x18\x01 \x01(\tR\x06userId\"|\n" +
- "\x14ResFriendRequestList\x12\x18\n" +
- "\asuccess\x18\x01 \x01(\bR\asuccess\x12\"\n" +
- "\aerr_msg\x18\x02 \x01(\v2\t.MsgErrorR\x06errMsg\x12&\n" +
- "\x04list\x18\x03 \x03(\v2\x12.FriendRequestItemR\x04list\"<\n" +
- "\fReqAddFriend\x12\x1a\n" +
- "\bToUserID\x18\x01 \x01(\tR\bToUserID\x12\x10\n" +
- "\x03msg\x18\x02 \x01(\tR\x03msg\"5\n" +
- "\x14RecvAddFriendRequest\x12\x1d\n" +
- "\x04info\x18\x01 \x01(\v2\t.UserInfoR\x04info\"@\n" +
- "\x13OptAddFriendRequest\x12)\n" +
- "\x04info\x18\x01 \x01(\v2\x15.RequestAddFriendItemR\x04info\"<\n" +
- "\x0fNotifyOptFriend\x12)\n" +
- "\x04info\x18\x01 \x01(\v2\x15.RequestAddFriendItemR\x04info\"%\n" +
- "\n" +
- "SearchUser\x12\x17\n" +
- "\auser_id\x18\x01 \x01(\tR\x06userId\"l\n" +
- "\rResSearchUser\x12\x18\n" +
- "\asuccess\x18\x01 \x01(\bR\asuccess\x12\"\n" +
- "\aerr_msg\x18\x02 \x01(\v2\t.MsgErrorR\x06errMsg\x12\x1d\n" +
- "\x04info\x18\x03 \x01(\v2\t.UserInfoR\x04info\"-\n" +
- "\x0fReqDeleteFriend\x12\x1a\n" +
- "\bToUserID\x18\x01 \x01(\tR\bToUserID\"O\n" +
- "\x0fResDeleteFriend\x12\x18\n" +
- "\asuccess\x18\x01 \x01(\bR\asuccess\x12\"\n" +
- "\aerr_msg\x18\x02 \x01(\v2\t.MsgErrorR\x06errMsg*K\n" +
- "\broleType\x12\x15\n" +
- "\x11ROLE_TYPE_UNKNOWN\x10\x00\x12\a\n" +
- "\x03RED\x10\x01\x12\b\n" +
- "\x04BLUE\x10\x04\x12\n" +
- "\n" +
- "\x06YELLOW\x10\x03\x12\t\n" +
- "\x05GREEN\x10\x02*A\n" +
- "\aOptType\x12\x14\n" +
- "\x10OPT_TYPE_UNKNOWN\x10\x00\x12\x0f\n" +
- "\vZHI_SHAI_ZI\x10\x01\x12\x0f\n" +
- "\vSELECT_ROLE\x10\x02*@\n" +
- "\broomType\x12\x15\n" +
- "\x11ROOM_TYPE_UNKNOWN\x10\x00\x12\x0e\n" +
- "\n" +
- "SHUANG_REN\x10\x01\x12\r\n" +
- "\tSIREN_REN\x10\x02*:\n" +
- "\broomMode\x12\x15\n" +
- "\x11ROOM_MODE_UNKNOWN\x10\x00\x12\n" +
- "\n" +
- "\x06REN_JI\x10\x01\x12\v\n" +
- "\aWAN_JIA\x10\x02*+\n" +
- "\broadType\x12\x15\n" +
- "\x11ROAD_TYPE_UNKNOWN\x10\x00\x12\b\n" +
- "\x04HOME\x10\x01*q\n" +
- "\fplayerStatus\x12\x19\n" +
- "\x15PLAYER_STATUS_UNKNOWN\x10\x00\x12\x10\n" +
- "\fSZ_ANIMATION\x10\x01\x12\x10\n" +
- "\fCOLOR_FINISH\x10\x02\x12\x0e\n" +
- "\n" +
- "COLOR_KICK\x10\x03\x12\x12\n" +
- "\x0eCOLOR_TIME_OUT\x10\x04*+\n" +
- "\n" +
- "roomStatus\x12\t\n" +
- "\x05AWAIT\x10\x00\x12\t\n" +
- "\x05START\x10\x01\x12\a\n" +
- "\x03END\x10\x02B\aZ\x05./msgb\x06proto3"
- var (
- file_common_proto_rawDescOnce sync.Once
- file_common_proto_rawDescData []byte
- )
- func file_common_proto_rawDescGZIP() []byte {
- file_common_proto_rawDescOnce.Do(func() {
- file_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_common_proto_rawDesc), len(file_common_proto_rawDesc)))
- })
- return file_common_proto_rawDescData
- }
- var file_common_proto_enumTypes = make([]protoimpl.EnumInfo, 7)
- var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 52)
- var file_common_proto_goTypes = []any{
- (RoleType)(0), // 0: roleType
- (OptType)(0), // 1: OptType
- (RoomType)(0), // 2: roomType
- (RoomMode)(0), // 3: roomMode
- (RoadType)(0), // 4: roadType
- (PlayerStatus)(0), // 5: playerStatus
- (RoomStatus)(0), // 6: roomStatus
- (*Round)(nil), // 7: round
- (*RoomInfo)(nil), // 8: RoomInfo
- (*RoleData)(nil), // 9: RoleData
- (*ColorData)(nil), // 10: ColorData
- (*MoveStepData)(nil), // 11: MoveStepData
- (*SendColorSz)(nil), // 12: SendColorSz
- (*SendRoleMove)(nil), // 13: SendRoleMove
- (*SendQuitRoom)(nil), // 14: SendQuitRoom
- (*NotifyPlayerSzNumber)(nil), // 15: NotifyPlayerSzNumber
- (*NotifyPlayerMove)(nil), // 16: NotifyPlayerMove
- (*NotifyPlayerOpt)(nil), // 17: NotifyPlayerOpt
- (*NotifyPlayerStatus)(nil), // 18: NotifyPlayerStatus
- (*NotifySettlement)(nil), // 19: NotifySettlement
- (*NotifyUpdateRoomInfo)(nil), // 20: NotifyUpdateRoomInfo
- (*UserInfo)(nil), // 21: UserInfo
- (*ReqLogin)(nil), // 22: ReqLogin
- (*ResLogin)(nil), // 23: ResLogin
- (*ReqRegister)(nil), // 24: ReqRegister
- (*ResRegister)(nil), // 25: ResRegister
- (*EnterHall)(nil), // 26: EnterHall
- (*ResEnterHall)(nil), // 27: ResEnterHall
- (*LeaveHall)(nil), // 28: LeaveHall
- (*MatchLudo)(nil), // 29: MatchLudo
- (*ResMatchLudo)(nil), // 30: ResMatchLudo
- (*MsgError)(nil), // 31: MsgError
- (*UpdateUserInfo)(nil), // 32: UpdateUserInfo
- (*ResHeartBeat)(nil), // 33: ResHeartBeat
- (*ReqHeartBeat)(nil), // 34: ReqHeartBeat
- (*ShopItem)(nil), // 35: ShopItem
- (*BeKickLogin)(nil), // 36: BeKickLogin
- (*ReqShop)(nil), // 37: ReqShop
- (*ResShop)(nil), // 38: ResShop
- (*HistoryRecord)(nil), // 39: HistoryRecord
- (*ReqLudoHistory)(nil), // 40: ReqLudoHistory
- (*ResLudoHistory)(nil), // 41: ResLudoHistory
- (*ReqLudoRoomInfo)(nil), // 42: ReqLudoRoomInfo
- (*ResLudoRoomInfo)(nil), // 43: ResLudoRoomInfo
- (*BuyShopItem)(nil), // 44: BuyShopItem
- (*RequestAddFriendItem)(nil), // 45: RequestAddFriendItem
- (*ReqFriendList)(nil), // 46: ReqFriendList
- (*ResFriendList)(nil), // 47: ResFriendList
- (*FriendRequestItem)(nil), // 48: FriendRequestItem
- (*ReqFriendRequestList)(nil), // 49: ReqFriendRequestList
- (*ResFriendRequestList)(nil), // 50: ResFriendRequestList
- (*ReqAddFriend)(nil), // 51: ReqAddFriend
- (*RecvAddFriendRequest)(nil), // 52: RecvAddFriendRequest
- (*OptAddFriendRequest)(nil), // 53: OptAddFriendRequest
- (*NotifyOptFriend)(nil), // 54: NotifyOptFriend
- (*SearchUser)(nil), // 55: SearchUser
- (*ResSearchUser)(nil), // 56: ResSearchUser
- (*ReqDeleteFriend)(nil), // 57: ReqDeleteFriend
- (*ResDeleteFriend)(nil), // 58: ResDeleteFriend
- }
- var file_common_proto_depIdxs = []int32{
- 0, // 0: round.m_color:type_name -> roleType
- 1, // 1: round.opt:type_name -> OptType
- 9, // 2: RoomInfo.roles:type_name -> RoleData
- 10, // 3: RoomInfo.colors:type_name -> ColorData
- 2, // 4: RoomInfo.room_type:type_name -> roomType
- 3, // 5: RoomInfo.room_mode:type_name -> roomMode
- 0, // 6: RoomInfo.cur_round_color:type_name -> roleType
- 7, // 7: RoomInfo.rounds:type_name -> round
- 10, // 8: RoomInfo.finish_colors:type_name -> ColorData
- 10, // 9: RoomInfo.kict_colors:type_name -> ColorData
- 6, // 10: RoomInfo.room_status:type_name -> roomStatus
- 17, // 11: RoomInfo.cur_color_opt_data:type_name -> NotifyPlayerOpt
- 0, // 12: RoleData.m_color:type_name -> roleType
- 4, // 13: RoleData.m_cur_road:type_name -> roadType
- 0, // 14: ColorData.m_color:type_name -> roleType
- 0, // 15: SendColorSz.color:type_name -> roleType
- 0, // 16: SendRoleMove.color:type_name -> roleType
- 0, // 17: SendQuitRoom.color:type_name -> roleType
- 0, // 18: NotifyPlayerSzNumber.color:type_name -> roleType
- 31, // 19: NotifyPlayerSzNumber.err_msg:type_name -> MsgError
- 0, // 20: NotifyPlayerMove.color:type_name -> roleType
- 11, // 21: NotifyPlayerMove.step:type_name -> MoveStepData
- 9, // 22: NotifyPlayerMove.kick:type_name -> RoleData
- 0, // 23: NotifyPlayerOpt.color:type_name -> roleType
- 1, // 24: NotifyPlayerOpt.opt:type_name -> OptType
- 9, // 25: NotifyPlayerOpt.canMoveRoles:type_name -> RoleData
- 0, // 26: NotifyPlayerStatus.color:type_name -> roleType
- 5, // 27: NotifyPlayerStatus.status:type_name -> playerStatus
- 10, // 28: NotifyPlayerStatus.colors:type_name -> ColorData
- 10, // 29: NotifyPlayerStatus.time_out_color:type_name -> ColorData
- 0, // 30: NotifySettlement.color:type_name -> roleType
- 10, // 31: NotifySettlement.finish_colors:type_name -> ColorData
- 8, // 32: NotifyUpdateRoomInfo.room_info:type_name -> RoomInfo
- 21, // 33: ResLogin.userInfo:type_name -> UserInfo
- 31, // 34: ResLogin.err_msg:type_name -> MsgError
- 31, // 35: ResRegister.err_msg:type_name -> MsgError
- 31, // 36: ResEnterHall.err_msg:type_name -> MsgError
- 8, // 37: ResEnterHall.reconnect_room_info:type_name -> RoomInfo
- 2, // 38: MatchLudo.select_room_type:type_name -> roomType
- 0, // 39: MatchLudo.select_color:type_name -> roleType
- 31, // 40: ResMatchLudo.err_msg:type_name -> MsgError
- 8, // 41: ResMatchLudo.room:type_name -> RoomInfo
- 21, // 42: UpdateUserInfo.info:type_name -> UserInfo
- 31, // 43: BeKickLogin.err_msg:type_name -> MsgError
- 31, // 44: ResShop.err_msg:type_name -> MsgError
- 35, // 45: ResShop.list:type_name -> ShopItem
- 31, // 46: ResLudoHistory.err_msg:type_name -> MsgError
- 39, // 47: ResLudoHistory.list:type_name -> HistoryRecord
- 31, // 48: ResLudoRoomInfo.err_msg:type_name -> MsgError
- 8, // 49: ResLudoRoomInfo.info:type_name -> RoomInfo
- 31, // 50: ResFriendList.err_msg:type_name -> MsgError
- 21, // 51: ResFriendList.list:type_name -> UserInfo
- 21, // 52: FriendRequestItem.info:type_name -> UserInfo
- 31, // 53: ResFriendRequestList.err_msg:type_name -> MsgError
- 48, // 54: ResFriendRequestList.list:type_name -> FriendRequestItem
- 21, // 55: RecvAddFriendRequest.info:type_name -> UserInfo
- 45, // 56: OptAddFriendRequest.info:type_name -> RequestAddFriendItem
- 45, // 57: NotifyOptFriend.info:type_name -> RequestAddFriendItem
- 31, // 58: ResSearchUser.err_msg:type_name -> MsgError
- 21, // 59: ResSearchUser.info:type_name -> UserInfo
- 31, // 60: ResDeleteFriend.err_msg:type_name -> MsgError
- 61, // [61:61] is the sub-list for method output_type
- 61, // [61:61] is the sub-list for method input_type
- 61, // [61:61] is the sub-list for extension type_name
- 61, // [61:61] is the sub-list for extension extendee
- 0, // [0:61] is the sub-list for field type_name
- }
- func init() { file_common_proto_init() }
- func file_common_proto_init() {
- if File_common_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_proto_rawDesc), len(file_common_proto_rawDesc)),
- NumEnums: 7,
- NumMessages: 52,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_common_proto_goTypes,
- DependencyIndexes: file_common_proto_depIdxs,
- EnumInfos: file_common_proto_enumTypes,
- MessageInfos: file_common_proto_msgTypes,
- }.Build()
- File_common_proto = out.File
- file_common_proto_goTypes = nil
- file_common_proto_depIdxs = nil
- }
|