aboutsummaryrefslogtreecommitdiff
path: root/backend/ObjectFactory.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-30 12:24:43 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-30 12:24:43 +0100
commitb1d5d7936bed17a684daff15b0294ef70754e8b9 (patch)
tree85ee543a15b42c7f854e4ce403bcff3dff5a3bd4 /backend/ObjectFactory.h
parent991c9aac53fa3562b0fdc03d74b398052b207d2c (diff)
more more WIP
Diffstat (limited to 'backend/ObjectFactory.h')
-rw-r--r--backend/ObjectFactory.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/backend/ObjectFactory.h b/backend/ObjectFactory.h
index adf960b..60123bd 100644
--- a/backend/ObjectFactory.h
+++ b/backend/ObjectFactory.h
@@ -9,9 +9,19 @@ enum ObjectType {
WEAPON,
};
+// database object table row
+struct UniversalObject {
+ const char * name;
+ const char * description;
+ ObjectType type;
+ int min_value;
+ int max_value;
+ int protection;
+};
+
class ObjectFactory {
public:
- static Object * create_object(ObjectType type, const char * name = "", const char * description = "");
+ static Object * create_object(const UniversalObject & universal);
static Object * create_object(const char * name = "", const char * description = "");
private: