mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-10 01:18:07 +00:00
Add default constructor for EquipmentItem
Change struct constructors to proper constructors.
This commit is contained in:
@@ -6,8 +6,16 @@
|
||||
/**
|
||||
* An item that's equipped, generally as a smaller return type than the regular Item class
|
||||
*/
|
||||
struct EquippedItem
|
||||
{
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* The object ID of the equipped item
|
||||
*/
|
||||
|
Reference in New Issue
Block a user