You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Message2Server.pb.go 24 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  1. // Message2Server
  2. // Code generated by protoc-gen-go. DO NOT EDIT.
  3. // versions:
  4. // protoc-gen-go v1.28.0
  5. // protoc (unknown)
  6. // source: Message2Server.proto
  7. package proto
  8. import (
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type PlayerMsg struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. PlayerId int64 `protobuf:"varint,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
  25. // Types that are assignable to JobType:
  26. // *PlayerMsg_StudentType
  27. // *PlayerMsg_TrickerType
  28. JobType isPlayerMsg_JobType `protobuf_oneof:"job_type"`
  29. PlayerType PlayerType `protobuf:"varint,4,opt,name=player_type,json=playerType,proto3,enum=protobuf.PlayerType" json:"player_type,omitempty"`
  30. }
  31. func (x *PlayerMsg) Reset() {
  32. *x = PlayerMsg{}
  33. if protoimpl.UnsafeEnabled {
  34. mi := &file_Message2Server_proto_msgTypes[0]
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. ms.StoreMessageInfo(mi)
  37. }
  38. }
  39. func (x *PlayerMsg) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*PlayerMsg) ProtoMessage() {}
  43. func (x *PlayerMsg) ProtoReflect() protoreflect.Message {
  44. mi := &file_Message2Server_proto_msgTypes[0]
  45. if protoimpl.UnsafeEnabled && x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use PlayerMsg.ProtoReflect.Descriptor instead.
  55. func (*PlayerMsg) Descriptor() ([]byte, []int) {
  56. return file_Message2Server_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *PlayerMsg) GetPlayerId() int64 {
  59. if x != nil {
  60. return x.PlayerId
  61. }
  62. return 0
  63. }
  64. func (m *PlayerMsg) GetJobType() isPlayerMsg_JobType {
  65. if m != nil {
  66. return m.JobType
  67. }
  68. return nil
  69. }
  70. func (x *PlayerMsg) GetStudentType() StudentType {
  71. if x, ok := x.GetJobType().(*PlayerMsg_StudentType); ok {
  72. return x.StudentType
  73. }
  74. return StudentType_NULL_STUDENT_TYPE
  75. }
  76. func (x *PlayerMsg) GetTrickerType() TrickerType {
  77. if x, ok := x.GetJobType().(*PlayerMsg_TrickerType); ok {
  78. return x.TrickerType
  79. }
  80. return TrickerType_NULL_TRICKER_TYPE
  81. }
  82. func (x *PlayerMsg) GetPlayerType() PlayerType {
  83. if x != nil {
  84. return x.PlayerType
  85. }
  86. return PlayerType_NULL_PLAYER_TYPE
  87. }
  88. type isPlayerMsg_JobType interface {
  89. isPlayerMsg_JobType()
  90. }
  91. type PlayerMsg_StudentType struct {
  92. StudentType StudentType `protobuf:"varint,2,opt,name=student_type,json=studentType,proto3,enum=protobuf.StudentType,oneof"`
  93. }
  94. type PlayerMsg_TrickerType struct {
  95. TrickerType TrickerType `protobuf:"varint,3,opt,name=tricker_type,json=trickerType,proto3,enum=protobuf.TrickerType,oneof"`
  96. }
  97. func (*PlayerMsg_StudentType) isPlayerMsg_JobType() {}
  98. func (*PlayerMsg_TrickerType) isPlayerMsg_JobType() {}
  99. type MoveMsg struct {
  100. state protoimpl.MessageState
  101. sizeCache protoimpl.SizeCache
  102. unknownFields protoimpl.UnknownFields
  103. PlayerId int64 `protobuf:"varint,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
  104. Angle float64 `protobuf:"fixed64,2,opt,name=angle,proto3" json:"angle,omitempty"`
  105. TimeInMilliseconds int64 `protobuf:"varint,3,opt,name=time_in_milliseconds,json=timeInMilliseconds,proto3" json:"time_in_milliseconds,omitempty"`
  106. }
  107. func (x *MoveMsg) Reset() {
  108. *x = MoveMsg{}
  109. if protoimpl.UnsafeEnabled {
  110. mi := &file_Message2Server_proto_msgTypes[1]
  111. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  112. ms.StoreMessageInfo(mi)
  113. }
  114. }
  115. func (x *MoveMsg) String() string {
  116. return protoimpl.X.MessageStringOf(x)
  117. }
  118. func (*MoveMsg) ProtoMessage() {}
  119. func (x *MoveMsg) ProtoReflect() protoreflect.Message {
  120. mi := &file_Message2Server_proto_msgTypes[1]
  121. if protoimpl.UnsafeEnabled && x != nil {
  122. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  123. if ms.LoadMessageInfo() == nil {
  124. ms.StoreMessageInfo(mi)
  125. }
  126. return ms
  127. }
  128. return mi.MessageOf(x)
  129. }
  130. // Deprecated: Use MoveMsg.ProtoReflect.Descriptor instead.
  131. func (*MoveMsg) Descriptor() ([]byte, []int) {
  132. return file_Message2Server_proto_rawDescGZIP(), []int{1}
  133. }
  134. func (x *MoveMsg) GetPlayerId() int64 {
  135. if x != nil {
  136. return x.PlayerId
  137. }
  138. return 0
  139. }
  140. func (x *MoveMsg) GetAngle() float64 {
  141. if x != nil {
  142. return x.Angle
  143. }
  144. return 0
  145. }
  146. func (x *MoveMsg) GetTimeInMilliseconds() int64 {
  147. if x != nil {
  148. return x.TimeInMilliseconds
  149. }
  150. return 0
  151. }
  152. type PropMsg struct {
  153. state protoimpl.MessageState
  154. sizeCache protoimpl.SizeCache
  155. unknownFields protoimpl.UnknownFields
  156. PlayerId int64 `protobuf:"varint,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
  157. PropType PropType `protobuf:"varint,2,opt,name=prop_type,json=propType,proto3,enum=protobuf.PropType" json:"prop_type,omitempty"`
  158. }
  159. func (x *PropMsg) Reset() {
  160. *x = PropMsg{}
  161. if protoimpl.UnsafeEnabled {
  162. mi := &file_Message2Server_proto_msgTypes[2]
  163. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  164. ms.StoreMessageInfo(mi)
  165. }
  166. }
  167. func (x *PropMsg) String() string {
  168. return protoimpl.X.MessageStringOf(x)
  169. }
  170. func (*PropMsg) ProtoMessage() {}
  171. func (x *PropMsg) ProtoReflect() protoreflect.Message {
  172. mi := &file_Message2Server_proto_msgTypes[2]
  173. if protoimpl.UnsafeEnabled && x != nil {
  174. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  175. if ms.LoadMessageInfo() == nil {
  176. ms.StoreMessageInfo(mi)
  177. }
  178. return ms
  179. }
  180. return mi.MessageOf(x)
  181. }
  182. // Deprecated: Use PropMsg.ProtoReflect.Descriptor instead.
  183. func (*PropMsg) Descriptor() ([]byte, []int) {
  184. return file_Message2Server_proto_rawDescGZIP(), []int{2}
  185. }
  186. func (x *PropMsg) GetPlayerId() int64 {
  187. if x != nil {
  188. return x.PlayerId
  189. }
  190. return 0
  191. }
  192. func (x *PropMsg) GetPropType() PropType {
  193. if x != nil {
  194. return x.PropType
  195. }
  196. return PropType_NULL_PROP_TYPE
  197. }
  198. type SendMsg struct {
  199. state protoimpl.MessageState
  200. sizeCache protoimpl.SizeCache
  201. unknownFields protoimpl.UnknownFields
  202. PlayerId int64 `protobuf:"varint,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
  203. ToPlayerId int64 `protobuf:"varint,2,opt,name=to_player_id,json=toPlayerId,proto3" json:"to_player_id,omitempty"`
  204. Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
  205. }
  206. func (x *SendMsg) Reset() {
  207. *x = SendMsg{}
  208. if protoimpl.UnsafeEnabled {
  209. mi := &file_Message2Server_proto_msgTypes[3]
  210. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  211. ms.StoreMessageInfo(mi)
  212. }
  213. }
  214. func (x *SendMsg) String() string {
  215. return protoimpl.X.MessageStringOf(x)
  216. }
  217. func (*SendMsg) ProtoMessage() {}
  218. func (x *SendMsg) ProtoReflect() protoreflect.Message {
  219. mi := &file_Message2Server_proto_msgTypes[3]
  220. if protoimpl.UnsafeEnabled && x != nil {
  221. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  222. if ms.LoadMessageInfo() == nil {
  223. ms.StoreMessageInfo(mi)
  224. }
  225. return ms
  226. }
  227. return mi.MessageOf(x)
  228. }
  229. // Deprecated: Use SendMsg.ProtoReflect.Descriptor instead.
  230. func (*SendMsg) Descriptor() ([]byte, []int) {
  231. return file_Message2Server_proto_rawDescGZIP(), []int{3}
  232. }
  233. func (x *SendMsg) GetPlayerId() int64 {
  234. if x != nil {
  235. return x.PlayerId
  236. }
  237. return 0
  238. }
  239. func (x *SendMsg) GetToPlayerId() int64 {
  240. if x != nil {
  241. return x.ToPlayerId
  242. }
  243. return 0
  244. }
  245. func (x *SendMsg) GetMessage() string {
  246. if x != nil {
  247. return x.Message
  248. }
  249. return ""
  250. }
  251. type AttackMsg struct {
  252. state protoimpl.MessageState
  253. sizeCache protoimpl.SizeCache
  254. unknownFields protoimpl.UnknownFields
  255. PlayerId int64 `protobuf:"varint,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
  256. Angle float64 `protobuf:"fixed64,2,opt,name=angle,proto3" json:"angle,omitempty"`
  257. }
  258. func (x *AttackMsg) Reset() {
  259. *x = AttackMsg{}
  260. if protoimpl.UnsafeEnabled {
  261. mi := &file_Message2Server_proto_msgTypes[4]
  262. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  263. ms.StoreMessageInfo(mi)
  264. }
  265. }
  266. func (x *AttackMsg) String() string {
  267. return protoimpl.X.MessageStringOf(x)
  268. }
  269. func (*AttackMsg) ProtoMessage() {}
  270. func (x *AttackMsg) ProtoReflect() protoreflect.Message {
  271. mi := &file_Message2Server_proto_msgTypes[4]
  272. if protoimpl.UnsafeEnabled && x != nil {
  273. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  274. if ms.LoadMessageInfo() == nil {
  275. ms.StoreMessageInfo(mi)
  276. }
  277. return ms
  278. }
  279. return mi.MessageOf(x)
  280. }
  281. // Deprecated: Use AttackMsg.ProtoReflect.Descriptor instead.
  282. func (*AttackMsg) Descriptor() ([]byte, []int) {
  283. return file_Message2Server_proto_rawDescGZIP(), []int{4}
  284. }
  285. func (x *AttackMsg) GetPlayerId() int64 {
  286. if x != nil {
  287. return x.PlayerId
  288. }
  289. return 0
  290. }
  291. func (x *AttackMsg) GetAngle() float64 {
  292. if x != nil {
  293. return x.Angle
  294. }
  295. return 0
  296. }
  297. type IDMsg struct {
  298. state protoimpl.MessageState
  299. sizeCache protoimpl.SizeCache
  300. unknownFields protoimpl.UnknownFields
  301. PlayerId int64 `protobuf:"varint,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
  302. }
  303. func (x *IDMsg) Reset() {
  304. *x = IDMsg{}
  305. if protoimpl.UnsafeEnabled {
  306. mi := &file_Message2Server_proto_msgTypes[5]
  307. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  308. ms.StoreMessageInfo(mi)
  309. }
  310. }
  311. func (x *IDMsg) String() string {
  312. return protoimpl.X.MessageStringOf(x)
  313. }
  314. func (*IDMsg) ProtoMessage() {}
  315. func (x *IDMsg) ProtoReflect() protoreflect.Message {
  316. mi := &file_Message2Server_proto_msgTypes[5]
  317. if protoimpl.UnsafeEnabled && x != nil {
  318. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  319. if ms.LoadMessageInfo() == nil {
  320. ms.StoreMessageInfo(mi)
  321. }
  322. return ms
  323. }
  324. return mi.MessageOf(x)
  325. }
  326. // Deprecated: Use IDMsg.ProtoReflect.Descriptor instead.
  327. func (*IDMsg) Descriptor() ([]byte, []int) {
  328. return file_Message2Server_proto_rawDescGZIP(), []int{5}
  329. }
  330. func (x *IDMsg) GetPlayerId() int64 {
  331. if x != nil {
  332. return x.PlayerId
  333. }
  334. return 0
  335. }
  336. type TreatAndRescueMsg struct {
  337. state protoimpl.MessageState
  338. sizeCache protoimpl.SizeCache
  339. unknownFields protoimpl.UnknownFields
  340. PlayerId int64 `protobuf:"varint,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
  341. ToPlayerId int64 `protobuf:"varint,2,opt,name=to_player_id,json=toPlayerId,proto3" json:"to_player_id,omitempty"`
  342. }
  343. func (x *TreatAndRescueMsg) Reset() {
  344. *x = TreatAndRescueMsg{}
  345. if protoimpl.UnsafeEnabled {
  346. mi := &file_Message2Server_proto_msgTypes[6]
  347. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  348. ms.StoreMessageInfo(mi)
  349. }
  350. }
  351. func (x *TreatAndRescueMsg) String() string {
  352. return protoimpl.X.MessageStringOf(x)
  353. }
  354. func (*TreatAndRescueMsg) ProtoMessage() {}
  355. func (x *TreatAndRescueMsg) ProtoReflect() protoreflect.Message {
  356. mi := &file_Message2Server_proto_msgTypes[6]
  357. if protoimpl.UnsafeEnabled && x != nil {
  358. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  359. if ms.LoadMessageInfo() == nil {
  360. ms.StoreMessageInfo(mi)
  361. }
  362. return ms
  363. }
  364. return mi.MessageOf(x)
  365. }
  366. // Deprecated: Use TreatAndRescueMsg.ProtoReflect.Descriptor instead.
  367. func (*TreatAndRescueMsg) Descriptor() ([]byte, []int) {
  368. return file_Message2Server_proto_rawDescGZIP(), []int{6}
  369. }
  370. func (x *TreatAndRescueMsg) GetPlayerId() int64 {
  371. if x != nil {
  372. return x.PlayerId
  373. }
  374. return 0
  375. }
  376. func (x *TreatAndRescueMsg) GetToPlayerId() int64 {
  377. if x != nil {
  378. return x.ToPlayerId
  379. }
  380. return 0
  381. }
  382. type SkillMsg struct {
  383. state protoimpl.MessageState
  384. sizeCache protoimpl.SizeCache
  385. unknownFields protoimpl.UnknownFields
  386. PlayerId int64 `protobuf:"varint,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
  387. SkillId int32 `protobuf:"varint,2,opt,name=skill_id,json=skillId,proto3" json:"skill_id,omitempty"`
  388. }
  389. func (x *SkillMsg) Reset() {
  390. *x = SkillMsg{}
  391. if protoimpl.UnsafeEnabled {
  392. mi := &file_Message2Server_proto_msgTypes[7]
  393. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  394. ms.StoreMessageInfo(mi)
  395. }
  396. }
  397. func (x *SkillMsg) String() string {
  398. return protoimpl.X.MessageStringOf(x)
  399. }
  400. func (*SkillMsg) ProtoMessage() {}
  401. func (x *SkillMsg) ProtoReflect() protoreflect.Message {
  402. mi := &file_Message2Server_proto_msgTypes[7]
  403. if protoimpl.UnsafeEnabled && x != nil {
  404. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  405. if ms.LoadMessageInfo() == nil {
  406. ms.StoreMessageInfo(mi)
  407. }
  408. return ms
  409. }
  410. return mi.MessageOf(x)
  411. }
  412. // Deprecated: Use SkillMsg.ProtoReflect.Descriptor instead.
  413. func (*SkillMsg) Descriptor() ([]byte, []int) {
  414. return file_Message2Server_proto_rawDescGZIP(), []int{7}
  415. }
  416. func (x *SkillMsg) GetPlayerId() int64 {
  417. if x != nil {
  418. return x.PlayerId
  419. }
  420. return 0
  421. }
  422. func (x *SkillMsg) GetSkillId() int32 {
  423. if x != nil {
  424. return x.SkillId
  425. }
  426. return 0
  427. }
  428. var File_Message2Server_proto protoreflect.FileDescriptor
  429. var file_Message2Server_proto_rawDesc = []byte{
  430. 0x0a, 0x14, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
  431. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  432. 0x1a, 0x11, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72,
  433. 0x6f, 0x74, 0x6f, 0x22, 0xe3, 0x01, 0x0a, 0x09, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4d, 0x73,
  434. 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01,
  435. 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3a,
  436. 0x0a, 0x0c, 0x73, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,
  437. 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
  438. 0x53, 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x73,
  439. 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3a, 0x0a, 0x0c, 0x74, 0x72,
  440. 0x69, 0x63, 0x6b, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e,
  441. 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x72, 0x69, 0x63,
  442. 0x6b, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x63, 0x6b,
  443. 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72,
  444. 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x70, 0x72,
  445. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x54, 0x79, 0x70,
  446. 0x65, 0x52, 0x0a, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x42, 0x0a, 0x0a,
  447. 0x08, 0x6a, 0x6f, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x6e, 0x0a, 0x07, 0x4d, 0x6f, 0x76,
  448. 0x65, 0x4d, 0x73, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x69,
  449. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49,
  450. 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6e, 0x67, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01,
  451. 0x52, 0x05, 0x61, 0x6e, 0x67, 0x6c, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x5f,
  452. 0x69, 0x6e, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18,
  453. 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x74, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x4d, 0x69, 0x6c,
  454. 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x57, 0x0a, 0x07, 0x50, 0x72, 0x6f,
  455. 0x70, 0x4d, 0x73, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x69,
  456. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49,
  457. 0x64, 0x12, 0x2f, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,
  458. 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
  459. 0x50, 0x72, 0x6f, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x54, 0x79,
  460. 0x70, 0x65, 0x22, 0x62, 0x0a, 0x07, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x1b, 0x0a,
  461. 0x09, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  462. 0x52, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0c, 0x74, 0x6f,
  463. 0x5f, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
  464. 0x52, 0x0a, 0x74, 0x6f, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07,
  465. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d,
  466. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x3e, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x61, 0x63, 0x6b,
  467. 0x4d, 0x73, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x69, 0x64,
  468. 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64,
  469. 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6e, 0x67, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52,
  470. 0x05, 0x61, 0x6e, 0x67, 0x6c, 0x65, 0x22, 0x24, 0x0a, 0x05, 0x49, 0x44, 0x4d, 0x73, 0x67, 0x12,
  471. 0x1b, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  472. 0x28, 0x03, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, 0x22, 0x52, 0x0a, 0x11,
  473. 0x54, 0x72, 0x65, 0x61, 0x74, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x63, 0x75, 0x65, 0x4d, 0x73,
  474. 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01,
  475. 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20,
  476. 0x0a, 0x0c, 0x74, 0x6f, 0x5f, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02,
  477. 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64,
  478. 0x22, 0x42, 0x0a, 0x08, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x4d, 0x73, 0x67, 0x12, 0x1b, 0x0a, 0x09,
  479. 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  480. 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x6b, 0x69,
  481. 0x6c, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x6b, 0x69,
  482. 0x6c, 0x6c, 0x49, 0x64, 0x42, 0x72, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  483. 0x6f, 0x62, 0x75, 0x66, 0x42, 0x13, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x53, 0x65,
  484. 0x72, 0x76, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0d, 0x6a, 0x6f, 0x62,
  485. 0x2d, 0x41, 0x50, 0x49, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0xa2, 0x02, 0x03, 0x50, 0x58, 0x58,
  486. 0xaa, 0x02, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0xca, 0x02, 0x08, 0x50, 0x72,
  487. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0xe2, 0x02, 0x14, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  488. 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08,
  489. 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  490. }
  491. var (
  492. file_Message2Server_proto_rawDescOnce sync.Once
  493. file_Message2Server_proto_rawDescData = file_Message2Server_proto_rawDesc
  494. )
  495. func file_Message2Server_proto_rawDescGZIP() []byte {
  496. file_Message2Server_proto_rawDescOnce.Do(func() {
  497. file_Message2Server_proto_rawDescData = protoimpl.X.CompressGZIP(file_Message2Server_proto_rawDescData)
  498. })
  499. return file_Message2Server_proto_rawDescData
  500. }
  501. var file_Message2Server_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
  502. var file_Message2Server_proto_goTypes = []interface{}{
  503. (*PlayerMsg)(nil), // 0: protobuf.PlayerMsg
  504. (*MoveMsg)(nil), // 1: protobuf.MoveMsg
  505. (*PropMsg)(nil), // 2: protobuf.PropMsg
  506. (*SendMsg)(nil), // 3: protobuf.SendMsg
  507. (*AttackMsg)(nil), // 4: protobuf.AttackMsg
  508. (*IDMsg)(nil), // 5: protobuf.IDMsg
  509. (*TreatAndRescueMsg)(nil), // 6: protobuf.TreatAndRescueMsg
  510. (*SkillMsg)(nil), // 7: protobuf.SkillMsg
  511. (StudentType)(0), // 8: protobuf.StudentType
  512. (TrickerType)(0), // 9: protobuf.TrickerType
  513. (PlayerType)(0), // 10: protobuf.PlayerType
  514. (PropType)(0), // 11: protobuf.PropType
  515. }
  516. var file_Message2Server_proto_depIdxs = []int32{
  517. 8, // 0: protobuf.PlayerMsg.student_type:type_name -> protobuf.StudentType
  518. 9, // 1: protobuf.PlayerMsg.tricker_type:type_name -> protobuf.TrickerType
  519. 10, // 2: protobuf.PlayerMsg.player_type:type_name -> protobuf.PlayerType
  520. 11, // 3: protobuf.PropMsg.prop_type:type_name -> protobuf.PropType
  521. 4, // [4:4] is the sub-list for method output_type
  522. 4, // [4:4] is the sub-list for method input_type
  523. 4, // [4:4] is the sub-list for extension type_name
  524. 4, // [4:4] is the sub-list for extension extendee
  525. 0, // [0:4] is the sub-list for field type_name
  526. }
  527. func init() { file_Message2Server_proto_init() }
  528. func file_Message2Server_proto_init() {
  529. if File_Message2Server_proto != nil {
  530. return
  531. }
  532. file_MessageType_proto_init()
  533. if !protoimpl.UnsafeEnabled {
  534. file_Message2Server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  535. switch v := v.(*PlayerMsg); i {
  536. case 0:
  537. return &v.state
  538. case 1:
  539. return &v.sizeCache
  540. case 2:
  541. return &v.unknownFields
  542. default:
  543. return nil
  544. }
  545. }
  546. file_Message2Server_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  547. switch v := v.(*MoveMsg); i {
  548. case 0:
  549. return &v.state
  550. case 1:
  551. return &v.sizeCache
  552. case 2:
  553. return &v.unknownFields
  554. default:
  555. return nil
  556. }
  557. }
  558. file_Message2Server_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  559. switch v := v.(*PropMsg); i {
  560. case 0:
  561. return &v.state
  562. case 1:
  563. return &v.sizeCache
  564. case 2:
  565. return &v.unknownFields
  566. default:
  567. return nil
  568. }
  569. }
  570. file_Message2Server_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  571. switch v := v.(*SendMsg); i {
  572. case 0:
  573. return &v.state
  574. case 1:
  575. return &v.sizeCache
  576. case 2:
  577. return &v.unknownFields
  578. default:
  579. return nil
  580. }
  581. }
  582. file_Message2Server_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  583. switch v := v.(*AttackMsg); i {
  584. case 0:
  585. return &v.state
  586. case 1:
  587. return &v.sizeCache
  588. case 2:
  589. return &v.unknownFields
  590. default:
  591. return nil
  592. }
  593. }
  594. file_Message2Server_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  595. switch v := v.(*IDMsg); i {
  596. case 0:
  597. return &v.state
  598. case 1:
  599. return &v.sizeCache
  600. case 2:
  601. return &v.unknownFields
  602. default:
  603. return nil
  604. }
  605. }
  606. file_Message2Server_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  607. switch v := v.(*TreatAndRescueMsg); i {
  608. case 0:
  609. return &v.state
  610. case 1:
  611. return &v.sizeCache
  612. case 2:
  613. return &v.unknownFields
  614. default:
  615. return nil
  616. }
  617. }
  618. file_Message2Server_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  619. switch v := v.(*SkillMsg); i {
  620. case 0:
  621. return &v.state
  622. case 1:
  623. return &v.sizeCache
  624. case 2:
  625. return &v.unknownFields
  626. default:
  627. return nil
  628. }
  629. }
  630. }
  631. file_Message2Server_proto_msgTypes[0].OneofWrappers = []interface{}{
  632. (*PlayerMsg_StudentType)(nil),
  633. (*PlayerMsg_TrickerType)(nil),
  634. }
  635. type x struct{}
  636. out := protoimpl.TypeBuilder{
  637. File: protoimpl.DescBuilder{
  638. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  639. RawDescriptor: file_Message2Server_proto_rawDesc,
  640. NumEnums: 0,
  641. NumMessages: 8,
  642. NumExtensions: 0,
  643. NumServices: 0,
  644. },
  645. GoTypes: file_Message2Server_proto_goTypes,
  646. DependencyIndexes: file_Message2Server_proto_depIdxs,
  647. MessageInfos: file_Message2Server_proto_msgTypes,
  648. }.Build()
  649. File_Message2Server_proto = out.File
  650. file_Message2Server_proto_rawDesc = nil
  651. file_Message2Server_proto_goTypes = nil
  652. file_Message2Server_proto_depIdxs = nil
  653. }