aboutsummaryrefslogtreecommitdiff
path: root/backend/ObjectFactory.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-01 22:47:42 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-01 22:47:42 +0100
commit07796bea15a2d5f43766f062379b63fc9e9e1b5d (patch)
tree2d398f161a9a933176f50779ff164e76c3871f43 /backend/ObjectFactory.h
parentaf76b9a0ae58dc8c87548053a5bc310ad6be25ce (diff)
WIP consumables
Diffstat (limited to 'backend/ObjectFactory.h')
-rw-r--r--backend/ObjectFactory.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/backend/ObjectFactory.h b/backend/ObjectFactory.h
index 440d4bd..735ac1f 100644
--- a/backend/ObjectFactory.h
+++ b/backend/ObjectFactory.h
@@ -1,21 +1,14 @@
#pragma once
#include "Object.h"
-
-enum ObjectType {
- ARMOR,
- CONSUMABLE,
- GOLD,
- WEAPON,
-};
+#include "Range.h"
// database object table row
struct UniversalObject {
String name;
String description;
- ObjectType type;
- int min_value;
- int max_value;
+ String type;
+ Range<int> value;
int protection;
};