Inital support for ENUM type items

This commit is contained in:
Carl Philipp Klemm 2026-04-05 00:24:02 +02:00
parent f3fe35e778
commit 074c2bd448

View file

@ -11,7 +11,8 @@ class Actor;
typedef enum {
ITEM_VALUE_BOOL = 0,
ITEM_VALUE_UINT,
ITEM_VALUE_NO_VALUE
ITEM_VALUE_NO_VALUE,
ITEM_VALUE_ENUM,
} item_value_type_t;
typedef enum {
@ -33,6 +34,7 @@ protected:
bool hidden_;
item_value_type_t type_;
QString groupName_;
std::vector<QString> valueNames_;
public:
ItemData(uint32_t itemIdIn = QRandomGenerator::global()->generate(),