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

398 lines
12 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: msg.proto
  3. package pb
  4. import (
  5. fmt "fmt"
  6. proto "github.com/golang/protobuf/proto"
  7. math "math"
  8. )
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  18. //同步客户端玩家ID
  19. type SyncPid struct {
  20. Pid int32 `protobuf:"varint,1,opt,name=Pid,proto3" json:"Pid,omitempty"`
  21. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  22. XXX_unrecognized []byte `json:"-"`
  23. XXX_sizecache int32 `json:"-"`
  24. }
  25. func (m *SyncPid) Reset() { *m = SyncPid{} }
  26. func (m *SyncPid) String() string { return proto.CompactTextString(m) }
  27. func (*SyncPid) ProtoMessage() {}
  28. func (*SyncPid) Descriptor() ([]byte, []int) {
  29. return fileDescriptor_c06e4cca6c2cc899, []int{0}
  30. }
  31. func (m *SyncPid) XXX_Unmarshal(b []byte) error {
  32. return xxx_messageInfo_SyncPid.Unmarshal(m, b)
  33. }
  34. func (m *SyncPid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  35. return xxx_messageInfo_SyncPid.Marshal(b, m, deterministic)
  36. }
  37. func (m *SyncPid) XXX_Merge(src proto.Message) {
  38. xxx_messageInfo_SyncPid.Merge(m, src)
  39. }
  40. func (m *SyncPid) XXX_Size() int {
  41. return xxx_messageInfo_SyncPid.Size(m)
  42. }
  43. func (m *SyncPid) XXX_DiscardUnknown() {
  44. xxx_messageInfo_SyncPid.DiscardUnknown(m)
  45. }
  46. var xxx_messageInfo_SyncPid proto.InternalMessageInfo
  47. func (m *SyncPid) GetPid() int32 {
  48. if m != nil {
  49. return m.Pid
  50. }
  51. return 0
  52. }
  53. //玩家位置
  54. type Position struct {
  55. X float32 `protobuf:"fixed32,1,opt,name=X,proto3" json:"X,omitempty"`
  56. Y float32 `protobuf:"fixed32,2,opt,name=Y,proto3" json:"Y,omitempty"`
  57. Z float32 `protobuf:"fixed32,3,opt,name=Z,proto3" json:"Z,omitempty"`
  58. V float32 `protobuf:"fixed32,4,opt,name=V,proto3" json:"V,omitempty"`
  59. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  60. XXX_unrecognized []byte `json:"-"`
  61. XXX_sizecache int32 `json:"-"`
  62. }
  63. func (m *Position) Reset() { *m = Position{} }
  64. func (m *Position) String() string { return proto.CompactTextString(m) }
  65. func (*Position) ProtoMessage() {}
  66. func (*Position) Descriptor() ([]byte, []int) {
  67. return fileDescriptor_c06e4cca6c2cc899, []int{1}
  68. }
  69. func (m *Position) XXX_Unmarshal(b []byte) error {
  70. return xxx_messageInfo_Position.Unmarshal(m, b)
  71. }
  72. func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  73. return xxx_messageInfo_Position.Marshal(b, m, deterministic)
  74. }
  75. func (m *Position) XXX_Merge(src proto.Message) {
  76. xxx_messageInfo_Position.Merge(m, src)
  77. }
  78. func (m *Position) XXX_Size() int {
  79. return xxx_messageInfo_Position.Size(m)
  80. }
  81. func (m *Position) XXX_DiscardUnknown() {
  82. xxx_messageInfo_Position.DiscardUnknown(m)
  83. }
  84. var xxx_messageInfo_Position proto.InternalMessageInfo
  85. func (m *Position) GetX() float32 {
  86. if m != nil {
  87. return m.X
  88. }
  89. return 0
  90. }
  91. func (m *Position) GetY() float32 {
  92. if m != nil {
  93. return m.Y
  94. }
  95. return 0
  96. }
  97. func (m *Position) GetZ() float32 {
  98. if m != nil {
  99. return m.Z
  100. }
  101. return 0
  102. }
  103. func (m *Position) GetV() float32 {
  104. if m != nil {
  105. return m.V
  106. }
  107. return 0
  108. }
  109. //玩家广播数据
  110. type BroadCast struct {
  111. Pid int32 `protobuf:"varint,1,opt,name=Pid,proto3" json:"Pid,omitempty"`
  112. Tp int32 `protobuf:"varint,2,opt,name=Tp,proto3" json:"Tp,omitempty"`
  113. // Types that are valid to be assigned to Data:
  114. // *BroadCast_Content
  115. // *BroadCast_P
  116. // *BroadCast_ActionData
  117. Data isBroadCast_Data `protobuf_oneof:"Data"`
  118. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  119. XXX_unrecognized []byte `json:"-"`
  120. XXX_sizecache int32 `json:"-"`
  121. }
  122. func (m *BroadCast) Reset() { *m = BroadCast{} }
  123. func (m *BroadCast) String() string { return proto.CompactTextString(m) }
  124. func (*BroadCast) ProtoMessage() {}
  125. func (*BroadCast) Descriptor() ([]byte, []int) {
  126. return fileDescriptor_c06e4cca6c2cc899, []int{2}
  127. }
  128. func (m *BroadCast) XXX_Unmarshal(b []byte) error {
  129. return xxx_messageInfo_BroadCast.Unmarshal(m, b)
  130. }
  131. func (m *BroadCast) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  132. return xxx_messageInfo_BroadCast.Marshal(b, m, deterministic)
  133. }
  134. func (m *BroadCast) XXX_Merge(src proto.Message) {
  135. xxx_messageInfo_BroadCast.Merge(m, src)
  136. }
  137. func (m *BroadCast) XXX_Size() int {
  138. return xxx_messageInfo_BroadCast.Size(m)
  139. }
  140. func (m *BroadCast) XXX_DiscardUnknown() {
  141. xxx_messageInfo_BroadCast.DiscardUnknown(m)
  142. }
  143. var xxx_messageInfo_BroadCast proto.InternalMessageInfo
  144. func (m *BroadCast) GetPid() int32 {
  145. if m != nil {
  146. return m.Pid
  147. }
  148. return 0
  149. }
  150. func (m *BroadCast) GetTp() int32 {
  151. if m != nil {
  152. return m.Tp
  153. }
  154. return 0
  155. }
  156. type isBroadCast_Data interface {
  157. isBroadCast_Data()
  158. }
  159. type BroadCast_Content struct {
  160. Content string `protobuf:"bytes,3,opt,name=Content,proto3,oneof"`
  161. }
  162. type BroadCast_P struct {
  163. P *Position `protobuf:"bytes,4,opt,name=P,proto3,oneof"`
  164. }
  165. type BroadCast_ActionData struct {
  166. ActionData int32 `protobuf:"varint,5,opt,name=ActionData,proto3,oneof"`
  167. }
  168. func (*BroadCast_Content) isBroadCast_Data() {}
  169. func (*BroadCast_P) isBroadCast_Data() {}
  170. func (*BroadCast_ActionData) isBroadCast_Data() {}
  171. func (m *BroadCast) GetData() isBroadCast_Data {
  172. if m != nil {
  173. return m.Data
  174. }
  175. return nil
  176. }
  177. func (m *BroadCast) GetContent() string {
  178. if x, ok := m.GetData().(*BroadCast_Content); ok {
  179. return x.Content
  180. }
  181. return ""
  182. }
  183. func (m *BroadCast) GetP() *Position {
  184. if x, ok := m.GetData().(*BroadCast_P); ok {
  185. return x.P
  186. }
  187. return nil
  188. }
  189. func (m *BroadCast) GetActionData() int32 {
  190. if x, ok := m.GetData().(*BroadCast_ActionData); ok {
  191. return x.ActionData
  192. }
  193. return 0
  194. }
  195. // XXX_OneofWrappers is for the internal use of the proto package.
  196. func (*BroadCast) XXX_OneofWrappers() []interface{} {
  197. return []interface{}{
  198. (*BroadCast_Content)(nil),
  199. (*BroadCast_P)(nil),
  200. (*BroadCast_ActionData)(nil),
  201. }
  202. }
  203. //玩家聊天数据
  204. type Talk struct {
  205. Content string `protobuf:"bytes,1,opt,name=Content,proto3" json:"Content,omitempty"`
  206. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  207. XXX_unrecognized []byte `json:"-"`
  208. XXX_sizecache int32 `json:"-"`
  209. }
  210. func (m *Talk) Reset() { *m = Talk{} }
  211. func (m *Talk) String() string { return proto.CompactTextString(m) }
  212. func (*Talk) ProtoMessage() {}
  213. func (*Talk) Descriptor() ([]byte, []int) {
  214. return fileDescriptor_c06e4cca6c2cc899, []int{3}
  215. }
  216. func (m *Talk) XXX_Unmarshal(b []byte) error {
  217. return xxx_messageInfo_Talk.Unmarshal(m, b)
  218. }
  219. func (m *Talk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  220. return xxx_messageInfo_Talk.Marshal(b, m, deterministic)
  221. }
  222. func (m *Talk) XXX_Merge(src proto.Message) {
  223. xxx_messageInfo_Talk.Merge(m, src)
  224. }
  225. func (m *Talk) XXX_Size() int {
  226. return xxx_messageInfo_Talk.Size(m)
  227. }
  228. func (m *Talk) XXX_DiscardUnknown() {
  229. xxx_messageInfo_Talk.DiscardUnknown(m)
  230. }
  231. var xxx_messageInfo_Talk proto.InternalMessageInfo
  232. func (m *Talk) GetContent() string {
  233. if m != nil {
  234. return m.Content
  235. }
  236. return ""
  237. }
  238. //玩家信息
  239. type Player struct {
  240. Pid int32 `protobuf:"varint,1,opt,name=Pid,proto3" json:"Pid,omitempty"`
  241. P *Position `protobuf:"bytes,2,opt,name=P,proto3" json:"P,omitempty"`
  242. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  243. XXX_unrecognized []byte `json:"-"`
  244. XXX_sizecache int32 `json:"-"`
  245. }
  246. func (m *Player) Reset() { *m = Player{} }
  247. func (m *Player) String() string { return proto.CompactTextString(m) }
  248. func (*Player) ProtoMessage() {}
  249. func (*Player) Descriptor() ([]byte, []int) {
  250. return fileDescriptor_c06e4cca6c2cc899, []int{4}
  251. }
  252. func (m *Player) XXX_Unmarshal(b []byte) error {
  253. return xxx_messageInfo_Player.Unmarshal(m, b)
  254. }
  255. func (m *Player) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  256. return xxx_messageInfo_Player.Marshal(b, m, deterministic)
  257. }
  258. func (m *Player) XXX_Merge(src proto.Message) {
  259. xxx_messageInfo_Player.Merge(m, src)
  260. }
  261. func (m *Player) XXX_Size() int {
  262. return xxx_messageInfo_Player.Size(m)
  263. }
  264. func (m *Player) XXX_DiscardUnknown() {
  265. xxx_messageInfo_Player.DiscardUnknown(m)
  266. }
  267. var xxx_messageInfo_Player proto.InternalMessageInfo
  268. func (m *Player) GetPid() int32 {
  269. if m != nil {
  270. return m.Pid
  271. }
  272. return 0
  273. }
  274. func (m *Player) GetP() *Position {
  275. if m != nil {
  276. return m.P
  277. }
  278. return nil
  279. }
  280. //同步玩家显示数据
  281. type SyncPlayers struct {
  282. Ps []*Player `protobuf:"bytes,1,rep,name=ps,proto3" json:"ps,omitempty"`
  283. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  284. XXX_unrecognized []byte `json:"-"`
  285. XXX_sizecache int32 `json:"-"`
  286. }
  287. func (m *SyncPlayers) Reset() { *m = SyncPlayers{} }
  288. func (m *SyncPlayers) String() string { return proto.CompactTextString(m) }
  289. func (*SyncPlayers) ProtoMessage() {}
  290. func (*SyncPlayers) Descriptor() ([]byte, []int) {
  291. return fileDescriptor_c06e4cca6c2cc899, []int{5}
  292. }
  293. func (m *SyncPlayers) XXX_Unmarshal(b []byte) error {
  294. return xxx_messageInfo_SyncPlayers.Unmarshal(m, b)
  295. }
  296. func (m *SyncPlayers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  297. return xxx_messageInfo_SyncPlayers.Marshal(b, m, deterministic)
  298. }
  299. func (m *SyncPlayers) XXX_Merge(src proto.Message) {
  300. xxx_messageInfo_SyncPlayers.Merge(m, src)
  301. }
  302. func (m *SyncPlayers) XXX_Size() int {
  303. return xxx_messageInfo_SyncPlayers.Size(m)
  304. }
  305. func (m *SyncPlayers) XXX_DiscardUnknown() {
  306. xxx_messageInfo_SyncPlayers.DiscardUnknown(m)
  307. }
  308. var xxx_messageInfo_SyncPlayers proto.InternalMessageInfo
  309. func (m *SyncPlayers) GetPs() []*Player {
  310. if m != nil {
  311. return m.Ps
  312. }
  313. return nil
  314. }
  315. func init() {
  316. proto.RegisterType((*SyncPid)(nil), "pb.SyncPid")
  317. proto.RegisterType((*Position)(nil), "pb.Position")
  318. proto.RegisterType((*BroadCast)(nil), "pb.BroadCast")
  319. proto.RegisterType((*Talk)(nil), "pb.Talk")
  320. proto.RegisterType((*Player)(nil), "pb.Player")
  321. proto.RegisterType((*SyncPlayers)(nil), "pb.SyncPlayers")
  322. }
  323. func init() { proto.RegisterFile("msg.proto", fileDescriptor_c06e4cca6c2cc899) }
  324. var fileDescriptor_c06e4cca6c2cc899 = []byte{
  325. // 278 bytes of a gzipped FileDescriptorProto
  326. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xbf, 0x4e, 0xc3, 0x30,
  327. 0x10, 0x87, 0x63, 0xe7, 0x4f, 0xc9, 0xa5, 0x42, 0xc8, 0x93, 0x15, 0x18, 0x22, 0x4f, 0x65, 0xc9,
  328. 0x50, 0x24, 0x76, 0x52, 0x86, 0x8c, 0x96, 0x89, 0xaa, 0xb6, 0x9b, 0xd3, 0x54, 0x28, 0xa2, 0xc4,
  329. 0x56, 0xec, 0xa5, 0x8f, 0xc1, 0x6b, 0xf0, 0x94, 0xc8, 0x8e, 0x0a, 0x48, 0xed, 0x64, 0x7f, 0x77,
  330. 0xf6, 0xef, 0x3e, 0xd9, 0x90, 0x7e, 0x9a, 0xf7, 0x52, 0x8f, 0xca, 0x2a, 0x82, 0x75, 0xcb, 0xee,
  331. 0x61, 0xf6, 0x76, 0x1a, 0xf6, 0xbc, 0xef, 0xc8, 0x1d, 0x84, 0xbc, 0xef, 0x28, 0x2a, 0xd0, 0x22,
  332. 0x16, 0x6e, 0xcb, 0x2a, 0xb8, 0xe1, 0xca, 0xf4, 0xb6, 0x57, 0x03, 0x99, 0x03, 0xda, 0xf8, 0x1e,
  333. 0x16, 0x68, 0xe3, 0x68, 0x4b, 0xf1, 0x44, 0x5b, 0x47, 0x3b, 0x1a, 0x4e, 0xb4, 0x73, 0xb4, 0xa6,
  334. 0xd1, 0x44, 0x6b, 0xf6, 0x85, 0x20, 0xad, 0x46, 0x25, 0xbb, 0x95, 0x34, 0xf6, 0x72, 0x06, 0xb9,
  335. 0x05, 0xdc, 0x68, 0x1f, 0x15, 0x0b, 0xdc, 0x68, 0x92, 0xc3, 0x6c, 0xa5, 0x06, 0x7b, 0x18, 0xac,
  336. 0x4f, 0x4c, 0xeb, 0x40, 0x9c, 0x0b, 0xe4, 0x01, 0x10, 0xf7, 0xc9, 0xd9, 0x72, 0x5e, 0xea, 0xb6,
  337. 0x3c, 0xcb, 0xd5, 0x81, 0x40, 0x9c, 0x14, 0x00, 0x2f, 0x7b, 0x87, 0xaf, 0xd2, 0x4a, 0x1a, 0xbb,
  338. 0xc4, 0x3a, 0x10, 0xff, 0x6a, 0x55, 0x02, 0x91, 0x5b, 0x59, 0x01, 0x51, 0x23, 0x8f, 0x1f, 0x84,
  339. 0xfe, 0xcd, 0x72, 0x46, 0xe9, 0xef, 0x24, 0xf6, 0x0c, 0x09, 0x3f, 0xca, 0xd3, 0x61, 0xbc, 0x62,
  340. 0x9c, 0x3b, 0x0b, 0x7c, 0x69, 0x21, 0x10, 0x67, 0x8f, 0x90, 0xf9, 0xe7, 0xf4, 0x77, 0x0d, 0xc9,
  341. 0x01, 0x6b, 0x43, 0x51, 0x11, 0x2e, 0xb2, 0x25, 0xf8, 0xb3, 0xbe, 0x21, 0xb0, 0x36, 0x55, 0xfc,
  342. 0x8d, 0x31, 0x6f, 0xdb, 0xc4, 0xff, 0xc5, 0xd3, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe6, 0xb4,
  343. 0xb8, 0x13, 0x98, 0x01, 0x00, 0x00,
  344. }