From 18df574808083a6c14fdfb2de02e8d493d41a4d6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 16 Mar 2019 23:21:09 +0300 Subject: Sort fields in class InventoryItem --- src/net/ea/inventoryitem.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/net/ea/inventoryitem.h b/src/net/ea/inventoryitem.h index 3dcb4d7c3..c0f7332b6 100644 --- a/src/net/ea/inventoryitem.h +++ b/src/net/ea/inventoryitem.h @@ -48,19 +48,19 @@ namespace Ea class InventoryItem final { public: - int slot; - int id; - ItemTypeT type; int cards[maxCards]; ItemOptionsList *options; + int slot; + int id; int quantity; - uint8_t refine; + int equipIndex; + ItemTypeT type; ItemColor color; Identified identified; Damaged damaged; Favorite favorite; Equipm equip; - int equipIndex; + uint8_t refine; InventoryItem(const int slot0, const int id0, @@ -75,19 +75,19 @@ class InventoryItem final const Favorite favorite0, Equipm equip0, int equipIndex0) : - slot(slot0), - id(id0), - type(type0), cards(), options(ItemOptionsList::copy(options0)), + slot(slot0), + id(id0), quantity(quantity0), - refine(refine0), + equipIndex(equipIndex0), + type(type0), color(color0), identified(identified0), damaged(damaged0), favorite(favorite0), equip(equip0), - equipIndex(equipIndex0) + refine(refine0) { if (cards0 == nullptr) return; @@ -96,19 +96,19 @@ class InventoryItem final } InventoryItem(const InventoryItem &c) : - slot(c.slot), - id(c.id), - type(c.type), cards(), options(ItemOptionsList::copy(c.options)), + slot(c.slot), + id(c.id), quantity(c.quantity), - refine(c.refine), + equipIndex(c.equipIndex), + type(c.type), color(c.color), identified(c.identified), damaged(c.damaged), favorite(c.favorite), equip(c.equip), - equipIndex(c.equipIndex) + refine(c.refine) { for (int f = 0; f < 4; f ++) cards[f] = c.cards[f]; -- cgit v1.2.3-70-g09d2