02-20-2016, 04:36 PM
anyway help me with the structure from PROTOCOL_BASE_GET_INVEN_INFO_ACK and PROTOCOL_BASE_GET_CHARA_INFO_ACK
|
PROTOCOL_BASE_GET_INVEN_INFO_ACK
|
|
02-20-2016, 04:36 PM
anyway help me with the structure from PROTOCOL_BASE_GET_INVEN_INFO_ACK and PROTOCOL_BASE_GET_CHARA_INFO_ACK
02-20-2016, 04:43 PM
[SRC="csharp"]class PROTOCOL_BASE_GET_INVEN_INFO_ACK : Packet
{ IEnumerable<ItemModel> items; int result; public PROTOCOL_BASE_GET_INVEN_INFO_ACK(IEnumerable<ItemModel> items, int result = 0) { this.items = items; this.result = result; } public override void WriteImpl() { Write<ushort>(0); Write<int>(result); Write<ushort>(items.Count()); foreach (var item in items) { Write<uint>(item.StoredId); Write<uint>(item.ItemId); Write<ItemExpirationType>(item.ExpirationType); Write<uint>(item.Quantity); } } } [/SRC] |
|
« Предыдущая | Следующая »
|
| Возможно похожие темы ... | |||||
| Тема | Автор | Ответы | Просмотры | Последний пост | |
| PROTOCOL_BASE_GET_INVEN_INFO_ACK | 4 | 1,853 |
06-12-2017, 11:38 PM Последний пост: ManuelDev |
||