aboutsummaryrefslogtreecommitdiff
path: root/backend/Object.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-29 20:01:27 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-29 20:01:27 +0100
commit9283e1eb66d6ff96b02f317e28cb6ff060953cdf (patch)
treec03d853ef620216f1c2299936004f56c6c3cee04 /backend/Object.h
parent7285f9f2c2622acff734e31314f92df9b25cae16 (diff)
WIP load XML
Diffstat (limited to 'backend/Object.h')
-rw-r--r--backend/Object.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/backend/Object.h b/backend/Object.h
index 789de25..92652c4 100644
--- a/backend/Object.h
+++ b/backend/Object.h
@@ -5,10 +5,21 @@ private:
const char * name = nullptr;
const char * description = nullptr;
+public:
+ void set_name(const char * name);
+ const char * get_name();
+ void set_description(const char * description);
+ const char * get_description();
+ void set_hidden(bool hidden);
+ bool get_hidden();
+
protected:
- Object() = default;
+ Object(const char * name = "", const char * description = "");
virtual ~Object();
friend class ObjectFactory;
+protected:
+ bool hidden = false;
+
};