2022-05-09 00:57:36 +00:00
|
|
|
#pragma once
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
#include "dCommonVars.h"
|
2022-05-09 00:57:36 +00:00
|
|
|
#include "LDFFormat.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An item that's equipped, generally as a smaller return type than the regular Item class
|
|
|
|
*/
|
2023-06-27 09:01:43 +00:00
|
|
|
struct EquippedItem {
|
|
|
|
EquippedItem() {}
|
|
|
|
|
|
|
|
EquippedItem(const LWOOBJID& id, const LOT lot, const uint32_t count, const uint32_t slot, const std::vector<LDFBaseData*>& config = {}) {
|
|
|
|
this->id = id;
|
|
|
|
this->lot = lot;
|
|
|
|
this->count = count;
|
|
|
|
this->slot = slot;
|
|
|
|
this->config = config;
|
|
|
|
}
|
2022-07-28 13:39:57 +00:00
|
|
|
/**
|
|
|
|
* The object ID of the equipped item
|
|
|
|
*/
|
2021-12-05 17:54:36 +00:00
|
|
|
LWOOBJID id = LWOOBJID_EMPTY;
|
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
/**
|
|
|
|
* The LOT of this equipped item
|
|
|
|
*/
|
2021-12-05 17:54:36 +00:00
|
|
|
LOT lot = LOT_NULL;
|
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
/**
|
|
|
|
* The number of items that are stored in this slot
|
|
|
|
*/
|
2021-12-05 17:54:36 +00:00
|
|
|
uint32_t count = 0;
|
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
/**
|
|
|
|
* The slot this item is stored in
|
|
|
|
*/
|
2021-12-05 17:54:36 +00:00
|
|
|
uint32_t slot = 0;
|
2022-05-09 00:57:36 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The configuration of the item with any extra data
|
|
|
|
*/
|
|
|
|
std::vector<LDFBaseData*> config = {};
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|