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