Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapentity.h')
-rw-r--r--src/mapentity.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mapentity.h b/src/mapentity.h
index f08f1b0..a7b5a3a 100644
--- a/src/mapentity.h
+++ b/src/mapentity.h
@@ -52,6 +52,13 @@ public:
inline const float location(int index) const {
return entity_location[index];
}
+
+ /**
+ * @brief returns the properties string
+ * */
+ inline const QString &properties() const {
+ return entity_properties;
+ }
signals:
/**
@@ -82,6 +89,16 @@ public slots:
void set_location(const float x, const float y, const float z);
/**
+ * @brief set the entity properties string
+ * */
+ void set_properties(const QString &properties);
+
+ /**
+ * @brief add a property
+ * */
+ void add_property(const QString &key, const QString &value);
+
+ /**
* @brief set the selected state
* */
void set_selected(const bool selected);
@@ -104,6 +121,8 @@ private:
QString entity_name;
QString entity_type;
+ QString entity_properties;
+
float entity_location[3];
float entity_radius;