summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-03-16 23:21:09 +0300
committerAndrei Karas <akaras@inbox.ru>2019-03-16 23:21:09 +0300
commit18df574808083a6c14fdfb2de02e8d493d41a4d6 (patch)
tree569ac3d1e8da2da7d104d08a69f6e2d9c4f60d0c /src/net
parent5c102d8b75d301a511336174d0a6eb401ba31967 (diff)
downloadmv-18df574808083a6c14fdfb2de02e8d493d41a4d6.tar.gz
mv-18df574808083a6c14fdfb2de02e8d493d41a4d6.tar.bz2
mv-18df574808083a6c14fdfb2de02e8d493d41a4d6.tar.xz
mv-18df574808083a6c14fdfb2de02e8d493d41a4d6.zip
Sort fields in class InventoryItem
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ea/inventoryitem.h30
1 files changed, 15 insertions, 15 deletions
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];