@@ -9,20 +9,23 @@ namespace GameFrameX.Proto.Proto
99 /// <summary>
1010 ///
1111 /// </summary>
12+ [ ProtoContract ]
1213 [ System . ComponentModel . Description ( "" ) ]
13- public enum BagType
14+ public sealed class BagItem
1415 {
1516 /// <summary>
16- /// 默认
17+ /// 道具id
1718 /// </summary>
18- [ System . ComponentModel . Description ( "默认" ) ]
19- Default = 0 ,
19+ [ ProtoMember ( 1 ) ]
20+ [ System . ComponentModel . Description ( "道具id" ) ]
21+ public int ItemId { get ; set ; }
2022
2123 /// <summary>
22- /// 宠物
24+ /// 道具数量
2325 /// </summary>
24- [ System . ComponentModel . Description ( "宠物" ) ]
25- Pet = 1 ,
26+ [ ProtoMember ( 2 ) ]
27+ [ System . ComponentModel . Description ( "道具数量" ) ]
28+ public long Count { get ; set ; }
2629 }
2730
2831 /// <summary>
@@ -33,12 +36,6 @@ public enum BagType
3336 [ MessageTypeHandler ( 6553610 ) ]
3437 public sealed class ReqBagInfo : MessageObject , IRequestMessage
3538 {
36- /// <summary>
37- /// 背包类型
38- /// </summary>
39- [ ProtoMember ( 1 ) ]
40- [ System . ComponentModel . Description ( "背包类型" ) ]
41- public BagType BagType { get ; set ; }
4239 }
4340
4441 /// <summary>
@@ -65,12 +62,42 @@ public sealed class RespBagInfo : MessageObject, IResponseMessage
6562 public int ErrorCode { get ; set ; }
6663 }
6764
65+ /// <summary>
66+ ///
67+ /// </summary>
68+ [ ProtoContract ]
69+ [ System . ComponentModel . Description ( "" ) ]
70+ [ MessageTypeHandler ( 6553612 ) ]
71+ public sealed class NotifyBagItem : MessageObject , INotifyMessage
72+ {
73+ /// <summary>
74+ /// 道具id
75+ /// </summary>
76+ [ ProtoMember ( 1 ) ]
77+ [ System . ComponentModel . Description ( "道具id" ) ]
78+ public int ItemId { get ; set ; }
79+
80+ /// <summary>
81+ /// 最终道具数量
82+ /// </summary>
83+ [ ProtoMember ( 2 ) ]
84+ [ System . ComponentModel . Description ( "最终道具数量" ) ]
85+ public long Count { get ; set ; }
86+
87+ /// <summary>
88+ /// 变化的值
89+ /// </summary>
90+ [ ProtoMember ( 3 ) ]
91+ [ System . ComponentModel . Description ( "变化的值" ) ]
92+ public long Value { get ; set ; }
93+ }
94+
6895 /// <summary>
6996 /// 通知背包数据变化
7097 /// </summary>
7198 [ ProtoContract ]
7299 [ System . ComponentModel . Description ( "通知背包数据变化" ) ]
73- [ MessageTypeHandler ( 6553612 ) ]
100+ [ MessageTypeHandler ( 6553613 ) ]
74101 public sealed class NotifyBagInfoChanged : MessageObject , INotifyMessage
75102 {
76103 /// <summary>
@@ -79,15 +106,15 @@ public sealed class NotifyBagInfoChanged : MessageObject, INotifyMessage
79106 [ ProtoMember ( 1 ) ]
80107 [ System . ComponentModel . Description ( "变化的道具,key:道具id,value:数量" ) ]
81108 [ ProtoMap ( DisableMap = true ) ]
82- public Dictionary < int , long > ItemDic { get ; set ; } = new Dictionary < int , long > ( ) ;
109+ public Dictionary < int , NotifyBagItem > ItemDic { get ; set ; } = new Dictionary < int , NotifyBagItem > ( ) ;
83110 }
84111
85112 /// <summary>
86113 /// 请求合成宠物
87114 /// </summary>
88115 [ ProtoContract ]
89116 [ System . ComponentModel . Description ( "请求合成宠物" ) ]
90- [ MessageTypeHandler ( 6553613 ) ]
117+ [ MessageTypeHandler ( 6553614 ) ]
91118 public sealed class ReqComposePet : MessageObject , IRequestMessage
92119 {
93120 /// <summary>
@@ -103,7 +130,7 @@ public sealed class ReqComposePet : MessageObject, IRequestMessage
103130 /// </summary>
104131 [ ProtoContract ]
105132 [ System . ComponentModel . Description ( "返回合成宠物" ) ]
106- [ MessageTypeHandler ( 6553614 ) ]
133+ [ MessageTypeHandler ( 6553615 ) ]
107134 public sealed class RespComposePet : MessageObject , IResponseMessage
108135 {
109136 /// <summary>
@@ -126,7 +153,7 @@ public sealed class RespComposePet : MessageObject, IResponseMessage
126153 /// </summary>
127154 [ ProtoContract ]
128155 [ System . ComponentModel . Description ( "请求使用道具" ) ]
129- [ MessageTypeHandler ( 6553615 ) ]
156+ [ MessageTypeHandler ( 6553616 ) ]
130157 public sealed class ReqUseItem : MessageObject , IRequestMessage
131158 {
132159 /// <summary>
@@ -135,14 +162,104 @@ public sealed class ReqUseItem : MessageObject, IRequestMessage
135162 [ ProtoMember ( 1 ) ]
136163 [ System . ComponentModel . Description ( "道具id" ) ]
137164 public int ItemId { get ; set ; }
165+
166+ /// <summary>
167+ /// 道具数量
168+ /// </summary>
169+ [ ProtoMember ( 2 ) ]
170+ [ System . ComponentModel . Description ( "道具数量" ) ]
171+ public long Count { get ; set ; }
172+ }
173+
174+ /// <summary>
175+ /// 请求使用道具
176+ /// </summary>
177+ [ ProtoContract ]
178+ [ System . ComponentModel . Description ( "请求使用道具" ) ]
179+ [ MessageTypeHandler ( 6553617 ) ]
180+ public sealed class RespUseItem : MessageObject , IResponseMessage
181+ {
182+ /// <summary>
183+ /// 道具id
184+ /// </summary>
185+ [ ProtoMember ( 1 ) ]
186+ [ System . ComponentModel . Description ( "道具id" ) ]
187+ public int ItemId { get ; set ; }
188+
189+ /// <summary>
190+ /// 道具数量
191+ /// </summary>
192+ [ ProtoMember ( 2 ) ]
193+ [ System . ComponentModel . Description ( "道具数量" ) ]
194+ public long Count { get ; set ; }
195+
196+ /// <summary>
197+ /// 返回的错误码
198+ /// </summary>
199+ [ ProtoMember ( 888 ) ]
200+ [ System . ComponentModel . Description ( "返回的错误码" ) ]
201+ public int ErrorCode { get ; set ; }
202+ }
203+
204+ /// <summary>
205+ /// 丢弃物品请求
206+ /// </summary>
207+ [ ProtoContract ]
208+ [ System . ComponentModel . Description ( "丢弃物品请求" ) ]
209+ [ MessageTypeHandler ( 6553618 ) ]
210+ public sealed class ReqDiscardItem : MessageObject , IRequestMessage
211+ {
212+ /// <summary>
213+ /// 道具id
214+ /// </summary>
215+ [ ProtoMember ( 1 ) ]
216+ [ System . ComponentModel . Description ( "道具id" ) ]
217+ public int ItemId { get ; set ; }
218+
219+ /// <summary>
220+ /// 道具数量
221+ /// </summary>
222+ [ ProtoMember ( 2 ) ]
223+ [ System . ComponentModel . Description ( "道具数量" ) ]
224+ public long Count { get ; set ; }
225+ }
226+
227+ /// <summary>
228+ /// 丢弃物品返回
229+ /// </summary>
230+ [ ProtoContract ]
231+ [ System . ComponentModel . Description ( "丢弃物品返回" ) ]
232+ [ MessageTypeHandler ( 6553619 ) ]
233+ public sealed class RespDiscardItem : MessageObject , IResponseMessage
234+ {
235+ /// <summary>
236+ /// 道具id
237+ /// </summary>
238+ [ ProtoMember ( 1 ) ]
239+ [ System . ComponentModel . Description ( "道具id" ) ]
240+ public int ItemId { get ; set ; }
241+
242+ /// <summary>
243+ /// 道具数量
244+ /// </summary>
245+ [ ProtoMember ( 2 ) ]
246+ [ System . ComponentModel . Description ( "道具数量" ) ]
247+ public long Count { get ; set ; }
248+
249+ /// <summary>
250+ /// 返回的错误码
251+ /// </summary>
252+ [ ProtoMember ( 888 ) ]
253+ [ System . ComponentModel . Description ( "返回的错误码" ) ]
254+ public int ErrorCode { get ; set ; }
138255 }
139256
140257 /// <summary>
141258 /// 出售道具
142259 /// </summary>
143260 [ ProtoContract ]
144261 [ System . ComponentModel . Description ( "出售道具" ) ]
145- [ MessageTypeHandler ( 6553616 ) ]
262+ [ MessageTypeHandler ( 6553620 ) ]
146263 public sealed class ReqSellItem : MessageObject , IRequestMessage
147264 {
148265 /// <summary>
@@ -158,8 +275,90 @@ public sealed class ReqSellItem : MessageObject, IRequestMessage
158275 /// </summary>
159276 [ ProtoContract ]
160277 [ System . ComponentModel . Description ( "出售道具" ) ]
161- [ MessageTypeHandler ( 6553617 ) ]
278+ [ MessageTypeHandler ( 6553621 ) ]
162279 public sealed class RespItemChange : MessageObject , IResponseMessage
280+ {
281+ /// <summary>
282+ /// 变化的道具
283+ /// </summary>
284+ [ ProtoMember ( 1 ) ]
285+ [ System . ComponentModel . Description ( "变化的道具" ) ]
286+ [ ProtoMap ( DisableMap = true ) ]
287+ public Dictionary < long , long > ItemDic { get ; set ; } = new Dictionary < long , long > ( ) ;
288+
289+ /// <summary>
290+ /// 返回的错误码
291+ /// </summary>
292+ [ ProtoMember ( 888 ) ]
293+ [ System . ComponentModel . Description ( "返回的错误码" ) ]
294+ public int ErrorCode { get ; set ; }
295+ }
296+
297+ /// <summary>
298+ /// 增加道具
299+ /// </summary>
300+ [ ProtoContract ]
301+ [ System . ComponentModel . Description ( "增加道具" ) ]
302+ [ MessageTypeHandler ( 6553622 ) ]
303+ public sealed class ReqAddItem : MessageObject , IRequestMessage
304+ {
305+ /// <summary>
306+ ///
307+ /// </summary>
308+ [ ProtoMember ( 1 ) ]
309+ [ System . ComponentModel . Description ( "" ) ]
310+ [ ProtoMap ( DisableMap = true ) ]
311+ public Dictionary < int , long > ItemDic { get ; set ; } = new Dictionary < int , long > ( ) ;
312+ }
313+
314+ /// <summary>
315+ /// 增加道具返回
316+ /// </summary>
317+ [ ProtoContract ]
318+ [ System . ComponentModel . Description ( "增加道具返回" ) ]
319+ [ MessageTypeHandler ( 6553623 ) ]
320+ public sealed class RespAddItem : MessageObject , IResponseMessage
321+ {
322+ /// <summary>
323+ /// 变化的道具
324+ /// </summary>
325+ [ ProtoMember ( 1 ) ]
326+ [ System . ComponentModel . Description ( "变化的道具" ) ]
327+ [ ProtoMap ( DisableMap = true ) ]
328+ public Dictionary < int , long > ItemDic { get ; set ; } = new Dictionary < int , long > ( ) ;
329+
330+ /// <summary>
331+ /// 返回的错误码
332+ /// </summary>
333+ [ ProtoMember ( 888 ) ]
334+ [ System . ComponentModel . Description ( "返回的错误码" ) ]
335+ public int ErrorCode { get ; set ; }
336+ }
337+
338+ /// <summary>
339+ /// 减少道具
340+ /// </summary>
341+ [ ProtoContract ]
342+ [ System . ComponentModel . Description ( "减少道具" ) ]
343+ [ MessageTypeHandler ( 6553624 ) ]
344+ public sealed class ReqRemoveItem : MessageObject , IRequestMessage
345+ {
346+ /// <summary>
347+ ///
348+ /// </summary>
349+ [ ProtoMember ( 1 ) ]
350+ [ System . ComponentModel . Description ( "" ) ]
351+ [ ProtoMap ( DisableMap = true ) ]
352+ public Dictionary < int , long > ItemDic { get ; set ; } = new Dictionary < int , long > ( ) ;
353+ }
354+
355+ /// <summary>
356+ /// 减少道具返回
357+ /// </summary>
358+ [ ProtoContract ]
359+ [ System . ComponentModel . Description ( "减少道具返回" ) ]
360+ [ MessageTypeHandler ( 6553625 ) ]
361+ public sealed class RespRemoveItem : MessageObject , IResponseMessage
163362 {
164363 /// <summary>
165364 /// 变化的道具
0 commit comments