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>2012-02-25 18:45:02 +0000
committerStijn Buys <ingar@osirion.org>2012-02-25 18:45:02 +0000
commit9e7b304351872f0d1c1fb7cc5af7e8bc3c7df678 (patch)
tree6e40d4ff00cbf63cb36a89abbfb8f90b5b273e06 /src/editorwindow.cc
parent0934e5bc329c2b292110b1559c4114f9d1dbba9d (diff)
Added support for entity templates.
Diffstat (limited to 'src/editorwindow.cc')
-rw-r--r--src/editorwindow.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/editorwindow.cc b/src/editorwindow.cc
index bd00189..6757745 100644
--- a/src/editorwindow.cc
+++ b/src/editorwindow.cc
@@ -143,6 +143,14 @@ bool EditorWindow::loadFile(const QString &filename)
entity->properties()->set_comment("label", ini.comment());
entity->properties()->set_label(str);
+ } else if (ini.got_key_string("template", str)) {
+ entity->properties()->set_comment("template", ini.comment());
+ entity->properties()->set_template(0, str);
+
+ } else if (ini.got_key_string("ship", str)) {
+ entity->properties()->set_comment("template", ini.comment());
+ entity->properties()->set_template(1, str);
+
} else if (ini.got_key_string("name", str)) {
entity->properties()->set_comment("name", ini.comment());
entity->properties()->set_name(str);