Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-11-24 00:26:00 +0000
committerStijn Buys <ingar@osirion.org>2013-11-24 00:26:00 +0000
commit9ae7de1aeab9e578bd470c5be2c86e34f8a02af2 (patch)
treef55bdbe5f8743618e56f6bbd6e8f3bd6969a3633 /src/model/tags.h
parentba3c01738cba3a842b2fe02f6b0f4e5fec454179 (diff)
Parse the map tag 'info' key.
Diffstat (limited to 'src/model/tags.h')
-rw-r--r--src/model/tags.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/model/tags.h b/src/model/tags.h
index 7f7d5d7..5be7576 100644
--- a/src/model/tags.h
+++ b/src/model/tags.h
@@ -60,6 +60,14 @@ public:
{
return tag_location;
}
+
+ /**
+ * @brief tag info text
+ * */
+ inline const std::string & info() const
+ {
+ return tag_info;
+ }
/* ---- mutators ------------------------------------------- */
/**
@@ -77,6 +85,14 @@ public:
{
tag_location.assign(x, y, z);
}
+
+ /**
+ * @brief set the info text
+ * */
+ inline void set_info(const std::string &text)
+ {
+ tag_info.assign(text);
+ }
/* ---- actors --------------------------------------------- */
@@ -90,6 +106,7 @@ public:
private:
math::Vector3f tag_location;
+ std::string tag_info;
};
/* ---- class Light ------------------------------------------------ */