DarkflameServer/dGame/dInventory/EquippedItem.h

44 lines
858 B
C
Raw Normal View History

#pragma once
#include "dCommonVars.h"
#include "LDFFormat.h"
/**
* An item that's equipped, generally as a smaller return type than the regular Item class
*/
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
*/
LWOOBJID id = LWOOBJID_EMPTY;
2022-07-28 13:39:57 +00:00
/**
* The LOT of this equipped item
*/
LOT lot = LOT_NULL;
2022-07-28 13:39:57 +00:00
/**
* The number of items that are stored in this slot
*/
uint32_t count = 0;
2022-07-28 13:39:57 +00:00
/**
* The slot this item is stored in
*/
uint32_t slot = 0;
/**
* The configuration of the item with any extra data
*/
std::vector<LDFBaseData*> config = {};
};