Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/entityproperties.cc')
-rw-r--r--src/entityproperties.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/entityproperties.cc b/src/entityproperties.cc
index 84a6bc4..bbef6c9 100644
--- a/src/entityproperties.cc
+++ b/src/entityproperties.cc
@@ -12,20 +12,21 @@ namespace editor
EntityProperties::EntityProperties()
{
+ properties_radius = 0;
}
EntityProperties::~EntityProperties()
{
}
-void EntityProperties::add_subsection(const QString &name)
+void EntityProperties::add_subsection_header(const QString &header)
{
if (properties_subsections.size()) {
properties_subsections += '\n';
}
properties_subsections += '[';
- properties_subsections += name;
+ properties_subsections += header;
properties_subsections += ']';
properties_subsections += '\n';
@@ -47,6 +48,14 @@ void EntityProperties::save(QTextStream &textstream)
if (name().size())
textstream << "name=" << name() << '\n';
+ // location
+ textstream << "location=" << location().x() << " " << location().y() << " " << location().z() << '\n';
+
+ // radius
+ if (radius()) {
+ textstream << "radius=" << radius() << '\n';
+ }
+
// other values
if (values().size()) {
textstream << values();