aboutsummaryrefslogtreecommitdiff
path: root/backend/ObjectFactory.h
diff options
context:
space:
mode:
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;
};