From 9283e1eb66d6ff96b02f317e28cb6ff060953cdf Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Tue, 29 Oct 2024 20:01:27 +0100 Subject: WIP load XML --- backend/Object.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'backend/Object.h') 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; + }; -- cgit v1.2.3