Files
DarkflameServer/dGame/dInventory/EquippedItem.h
David Markowitz 0101933f5c chore: cleanup pointer management for LDF data (#1995)
* change network settings from vector to LwoNameValue

* move settings on Entity to managed memory

* Migrate more members

* chore: remove pointer leakage from raw ldf pointers

* feedback

* fix ci
2026-06-14 20:54:52 -07:00

36 lines
577 B
C

#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
{
/**
* The object ID of the equipped item
*/
LWOOBJID id = LWOOBJID_EMPTY;
/**
* The LOT of this equipped item
*/
LOT lot = LOT_NULL;
/**
* The number of items that are stored in this slot
*/
uint32_t count = 0;
/**
* The slot this item is stored in
*/
uint32_t slot = 0;
/**
* The configuration of the item with any extra data
*/
LwoNameValue config = {};
};