|
1 | | -using System; |
2 | | -using ProtoBuf; |
3 | | -using System.Collections.Generic; |
4 | | -using GameFrameX.NetWork.Abstractions; |
5 | | -using GameFrameX.NetWork.Messages; |
6 | | - |
7 | | -namespace GameFrameX.Proto.Proto |
8 | | -{ |
9 | | - /// <summary> |
10 | | - /// |
11 | | - /// </summary> |
12 | | - public enum BagType |
13 | | - { |
14 | | - /// <summary> |
15 | | - /// 默认 |
16 | | - /// </summary> |
17 | | - Default = 0, |
18 | | - /// <summary> |
19 | | - /// 宠物 |
20 | | - /// </summary> |
21 | | - Pet = 1, |
22 | | - } |
23 | | - |
24 | | - /// <summary> |
25 | | - /// 请求背包数据 |
26 | | - /// </summary> |
27 | | - [ProtoContract] |
28 | | - [MessageTypeHandler(6553610)] |
29 | | - public sealed class ReqBagInfo : MessageObject, IRequestMessage |
30 | | - { |
31 | | - /// <summary> |
32 | | - /// 背包类型 |
33 | | - /// </summary> |
34 | | - [ProtoMember(1)] |
35 | | - public BagType BagType { get; set; } |
36 | | - |
37 | | - } |
38 | | - |
39 | | - /// <summary> |
40 | | - /// 返回背包数据 |
41 | | - /// </summary> |
42 | | - [ProtoContract] |
43 | | - [MessageTypeHandler(6553611)] |
44 | | - public sealed class RespBagInfo : MessageObject, IResponseMessage |
45 | | - { |
46 | | - /// <summary> |
47 | | - /// |
48 | | - /// </summary> |
49 | | - [ProtoMember(1)] |
50 | | - [ProtoMap(DisableMap = true)] |
51 | | - public Dictionary<int, long> ItemDic { get; set; } = new Dictionary<int, long>(); |
52 | | - |
53 | | - /// <summary> |
54 | | - /// 返回的错误码 |
55 | | - /// </summary> |
56 | | - [ProtoMember(888)] |
57 | | - public int ErrorCode { get; set; } |
58 | | - |
59 | | - } |
60 | | - |
61 | | - /// <summary> |
62 | | - /// 通知背包数据变化 |
63 | | - /// </summary> |
64 | | - [ProtoContract] |
65 | | - [MessageTypeHandler(6553612)] |
66 | | - public sealed class NotifyBagInfoChanged : MessageObject, INotifyMessage |
67 | | - { |
68 | | - /// <summary> |
69 | | - /// 变化的道具,key:道具id,value:数量 |
70 | | - /// </summary> |
71 | | - [ProtoMember(1)] |
72 | | - [ProtoMap(DisableMap = true)] |
73 | | - public Dictionary<int, long> ItemDic { get; set; } = new Dictionary<int, long>(); |
74 | | - |
75 | | - } |
76 | | - |
77 | | - /// <summary> |
78 | | - /// 请求合成宠物 |
79 | | - /// </summary> |
80 | | - [ProtoContract] |
81 | | - [MessageTypeHandler(6553613)] |
82 | | - public sealed class ReqComposePet : MessageObject, IRequestMessage |
83 | | - { |
84 | | - /// <summary> |
85 | | - /// 碎片id |
86 | | - /// </summary> |
87 | | - [ProtoMember(1)] |
88 | | - public int FragmentId { get; set; } |
89 | | - |
90 | | - } |
91 | | - |
92 | | - /// <summary> |
93 | | - /// 返回合成宠物 |
94 | | - /// </summary> |
95 | | - [ProtoContract] |
96 | | - [MessageTypeHandler(6553614)] |
97 | | - public sealed class RespComposePet : MessageObject, IResponseMessage |
98 | | - { |
99 | | - /// <summary> |
100 | | - /// 合成宠物的Id |
101 | | - /// </summary> |
102 | | - [ProtoMember(1)] |
103 | | - public int PetId { get; set; } |
104 | | - |
105 | | - /// <summary> |
106 | | - /// 返回的错误码 |
107 | | - /// </summary> |
108 | | - [ProtoMember(888)] |
109 | | - public int ErrorCode { get; set; } |
110 | | - |
111 | | - } |
112 | | - |
113 | | - /// <summary> |
114 | | - /// 请求使用道具 |
115 | | - /// </summary> |
116 | | - [ProtoContract] |
117 | | - [MessageTypeHandler(6553615)] |
118 | | - public sealed class ReqUseItem : MessageObject, IRequestMessage |
119 | | - { |
120 | | - /// <summary> |
121 | | - /// 道具id |
122 | | - /// </summary> |
123 | | - [ProtoMember(1)] |
124 | | - public int ItemId { get; set; } |
125 | | - |
126 | | - } |
127 | | - |
128 | | - /// <summary> |
129 | | - /// 出售道具 |
130 | | - /// </summary> |
131 | | - [ProtoContract] |
132 | | - [MessageTypeHandler(6553616)] |
133 | | - public sealed class ReqSellItem : MessageObject, IRequestMessage |
134 | | - { |
135 | | - /// <summary> |
136 | | - /// 道具id |
137 | | - /// </summary> |
138 | | - [ProtoMember(1)] |
139 | | - public int ItemId { get; set; } |
140 | | - |
141 | | - } |
142 | | - |
143 | | - /// <summary> |
144 | | - /// 出售道具 |
145 | | - /// </summary> |
146 | | - [ProtoContract] |
147 | | - [MessageTypeHandler(6553617)] |
148 | | - public sealed class RespItemChange : MessageObject, IResponseMessage |
149 | | - { |
150 | | - /// <summary> |
151 | | - /// 变化的道具 |
152 | | - /// </summary> |
153 | | - [ProtoMember(1)] |
154 | | - [ProtoMap(DisableMap = true)] |
155 | | - public Dictionary<int, long> ItemDic { get; set; } = new Dictionary<int, long>(); |
156 | | - |
157 | | - /// <summary> |
158 | | - /// 返回的错误码 |
159 | | - /// </summary> |
160 | | - [ProtoMember(888)] |
161 | | - public int ErrorCode { get; set; } |
162 | | - |
163 | | - } |
164 | | - |
165 | | -} |
| 1 | +using System; |
| 2 | +using ProtoBuf; |
| 3 | +using System.Collections.Generic; |
| 4 | +using GameFrameX.NetWork.Abstractions; |
| 5 | +using GameFrameX.NetWork.Messages; |
| 6 | + |
| 7 | +namespace GameFrameX.Proto.Proto |
| 8 | +{ |
| 9 | + /// <summary> |
| 10 | + /// |
| 11 | + /// </summary> |
| 12 | + [System.ComponentModel.Description("")] |
| 13 | + public enum BagType |
| 14 | + { |
| 15 | + /// <summary> |
| 16 | + /// 默认 |
| 17 | + /// </summary> |
| 18 | + [System.ComponentModel.Description("默认")] |
| 19 | + Default = 0, |
| 20 | + |
| 21 | + /// <summary> |
| 22 | + /// 宠物 |
| 23 | + /// </summary> |
| 24 | + [System.ComponentModel.Description("宠物")] |
| 25 | + Pet = 1, |
| 26 | + } |
| 27 | + |
| 28 | + /// <summary> |
| 29 | + /// 请求背包数据 |
| 30 | + /// </summary> |
| 31 | + [ProtoContract] |
| 32 | + [System.ComponentModel.Description("请求背包数据")] |
| 33 | + [MessageTypeHandler(6553610)] |
| 34 | + public sealed class ReqBagInfo : MessageObject, IRequestMessage |
| 35 | + { |
| 36 | + /// <summary> |
| 37 | + /// 背包类型 |
| 38 | + /// </summary> |
| 39 | + [ProtoMember(1)] |
| 40 | + [System.ComponentModel.Description("背包类型")] |
| 41 | + public BagType BagType { get; set; } |
| 42 | + } |
| 43 | + |
| 44 | + /// <summary> |
| 45 | + /// 返回背包数据 |
| 46 | + /// </summary> |
| 47 | + [ProtoContract] |
| 48 | + [System.ComponentModel.Description("返回背包数据")] |
| 49 | + [MessageTypeHandler(6553611)] |
| 50 | + public sealed class RespBagInfo : MessageObject, IResponseMessage |
| 51 | + { |
| 52 | + /// <summary> |
| 53 | + /// |
| 54 | + /// </summary> |
| 55 | + [ProtoMember(1)] |
| 56 | + [System.ComponentModel.Description("")] |
| 57 | + [ProtoMap(DisableMap = true)] |
| 58 | + public Dictionary<int, long> ItemDic { get; set; } = new Dictionary<int, long>(); |
| 59 | + |
| 60 | + /// <summary> |
| 61 | + /// 返回的错误码 |
| 62 | + /// </summary> |
| 63 | + [ProtoMember(888)] |
| 64 | + [System.ComponentModel.Description("返回的错误码")] |
| 65 | + public int ErrorCode { get; set; } |
| 66 | + } |
| 67 | + |
| 68 | + /// <summary> |
| 69 | + /// 通知背包数据变化 |
| 70 | + /// </summary> |
| 71 | + [ProtoContract] |
| 72 | + [System.ComponentModel.Description("通知背包数据变化")] |
| 73 | + [MessageTypeHandler(6553612)] |
| 74 | + public sealed class NotifyBagInfoChanged : MessageObject, INotifyMessage |
| 75 | + { |
| 76 | + /// <summary> |
| 77 | + /// 变化的道具,key:道具id,value:数量 |
| 78 | + /// </summary> |
| 79 | + [ProtoMember(1)] |
| 80 | + [System.ComponentModel.Description("变化的道具,key:道具id,value:数量")] |
| 81 | + [ProtoMap(DisableMap = true)] |
| 82 | + public Dictionary<int, long> ItemDic { get; set; } = new Dictionary<int, long>(); |
| 83 | + } |
| 84 | + |
| 85 | + /// <summary> |
| 86 | + /// 请求合成宠物 |
| 87 | + /// </summary> |
| 88 | + [ProtoContract] |
| 89 | + [System.ComponentModel.Description("请求合成宠物")] |
| 90 | + [MessageTypeHandler(6553613)] |
| 91 | + public sealed class ReqComposePet : MessageObject, IRequestMessage |
| 92 | + { |
| 93 | + /// <summary> |
| 94 | + /// 碎片id |
| 95 | + /// </summary> |
| 96 | + [ProtoMember(1)] |
| 97 | + [System.ComponentModel.Description("碎片id")] |
| 98 | + public int FragmentId { get; set; } |
| 99 | + } |
| 100 | + |
| 101 | + /// <summary> |
| 102 | + /// 返回合成宠物 |
| 103 | + /// </summary> |
| 104 | + [ProtoContract] |
| 105 | + [System.ComponentModel.Description("返回合成宠物")] |
| 106 | + [MessageTypeHandler(6553614)] |
| 107 | + public sealed class RespComposePet : MessageObject, IResponseMessage |
| 108 | + { |
| 109 | + /// <summary> |
| 110 | + /// 合成宠物的Id |
| 111 | + /// </summary> |
| 112 | + [ProtoMember(1)] |
| 113 | + [System.ComponentModel.Description("合成宠物的Id")] |
| 114 | + public int PetId { get; set; } |
| 115 | + |
| 116 | + /// <summary> |
| 117 | + /// 返回的错误码 |
| 118 | + /// </summary> |
| 119 | + [ProtoMember(888)] |
| 120 | + [System.ComponentModel.Description("返回的错误码")] |
| 121 | + public int ErrorCode { get; set; } |
| 122 | + } |
| 123 | + |
| 124 | + /// <summary> |
| 125 | + /// 请求使用道具 |
| 126 | + /// </summary> |
| 127 | + [ProtoContract] |
| 128 | + [System.ComponentModel.Description("请求使用道具")] |
| 129 | + [MessageTypeHandler(6553615)] |
| 130 | + public sealed class ReqUseItem : MessageObject, IRequestMessage |
| 131 | + { |
| 132 | + /// <summary> |
| 133 | + /// 道具id |
| 134 | + /// </summary> |
| 135 | + [ProtoMember(1)] |
| 136 | + [System.ComponentModel.Description("道具id")] |
| 137 | + public int ItemId { get; set; } |
| 138 | + } |
| 139 | + |
| 140 | + /// <summary> |
| 141 | + /// 出售道具 |
| 142 | + /// </summary> |
| 143 | + [ProtoContract] |
| 144 | + [System.ComponentModel.Description("出售道具")] |
| 145 | + [MessageTypeHandler(6553616)] |
| 146 | + public sealed class ReqSellItem : MessageObject, IRequestMessage |
| 147 | + { |
| 148 | + /// <summary> |
| 149 | + /// 道具id |
| 150 | + /// </summary> |
| 151 | + [ProtoMember(1)] |
| 152 | + [System.ComponentModel.Description("道具id")] |
| 153 | + public int ItemId { get; set; } |
| 154 | + } |
| 155 | + |
| 156 | + /// <summary> |
| 157 | + /// 出售道具 |
| 158 | + /// </summary> |
| 159 | + [ProtoContract] |
| 160 | + [System.ComponentModel.Description("出售道具")] |
| 161 | + [MessageTypeHandler(6553617)] |
| 162 | + public sealed class RespItemChange : MessageObject, IResponseMessage |
| 163 | + { |
| 164 | + /// <summary> |
| 165 | + /// 变化的道具 |
| 166 | + /// </summary> |
| 167 | + [ProtoMember(1)] |
| 168 | + [System.ComponentModel.Description("变化的道具")] |
| 169 | + [ProtoMap(DisableMap = true)] |
| 170 | + public Dictionary<int, long> ItemDic { get; set; } = new Dictionary<int, long>(); |
| 171 | + |
| 172 | + /// <summary> |
| 173 | + /// 返回的错误码 |
| 174 | + /// </summary> |
| 175 | + [ProtoMember(888)] |
| 176 | + [System.ComponentModel.Description("返回的错误码")] |
| 177 | + public int ErrorCode { get; set; } |
| 178 | + } |
| 179 | + |
| 180 | +} |
0 commit comments