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.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/entityproperties.cc b/src/entityproperties.cc
index bdc2394..3a0dff6 100644
--- a/src/entityproperties.cc
+++ b/src/entityproperties.cc
@@ -13,6 +13,7 @@ namespace editor
EntityProperties::EntityProperties()
{
properties_radius = 0;
+ properties_template_type = 0;
}
EntityProperties::~EntityProperties()
@@ -62,6 +63,16 @@ void EntityProperties::save(QTextStream &textstream)
}
textstream << "[" << type() << "]" << '\n';
+
+ save_comment(textstream, "template");
+ if (template_label().size()) {
+ if (template_type() == 0) {
+ textstream << "template=" << template_label() << '\n';
+ } else if (template_type() == 1) {
+ textstream << "ship=" << template_label() << '\n';
+ }
+ }
+
save_comment(textstream, "label");
if (label().size())
textstream << "label=" << label() << '\n';