12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702 |
- // 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就一直存在,
- 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
- }
- // 登录 请求
- 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 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[32]
- 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[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 BuyShopItem.ProtoReflect.Descriptor instead.
- func (*BuyShopItem) Descriptor() ([]byte, []int) {
- return file_common_proto_rawDescGZIP(), []int{32}
- }
- func (x *BuyShopItem) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
- }
- 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\"}\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\"@\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\"\x1d\n" +
- "\vBuyShopItem\x12\x0e\n" +
- "\x02id\x18\x01 \x01(\tR\x02id*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, 33)
- 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
- (*BuyShopItem)(nil), // 39: BuyShopItem
- }
- 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
- 46, // [46:46] is the sub-list for method output_type
- 46, // [46:46] is the sub-list for method input_type
- 46, // [46:46] is the sub-list for extension type_name
- 46, // [46:46] is the sub-list for extension extendee
- 0, // [0:46] 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: 33,
- 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
- }
|