]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/templates/game/research/base_research.xml
Added to generic directory
[shipsimu.git] / application / ship-simu / templates / game / research / base_research.xml
diff --git a/application/ship-simu/templates/game/research/base_research.xml b/application/ship-simu/templates/game/research/base_research.xml
new file mode 100644 (file)
index 0000000..de2e7aa
--- /dev/null
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+This is a general research proposal template. A research is the theoretical
+requirement to gain a specific technology or to be able to construct special
+buildings, ships et cetera. A research may not be gainable but conductable e.g.
+in a research lab.
+
+@author                Roland Haeder <webmaster@ship-simu.org>
+@version       0.0.0
+@copyright     Copyright (c) 2007, 2008 Roland Haeder, 2009 Ship-Simu Developer Team
+@license       GNU GPL 3.0 or any newer version
+@link          http://www.ship-simu.org
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>
+//-->
+<research-proposal>
+       <!-- General data of this research like id, summar or description. //-->
+       <research-data>
+               <id>{?id?}</id>
+               <name>{?name?}</name>
+               <type>{?type?}</type>
+               <max-level>{?max_level?}</max-level>
+               <!-- All researches end up with results which can be improvements to
+                    to existing technology or how research is conducted. Some research
+                    may have multiple results and they all might not be good. //-->
+               <research-result-list>
+                       <!-- A single research result. //-->
+                       <research-result>
+                               <!-- A list of modified technology when this research is completed. //-->
+                               <modify-technology-list>
+                                       <!-- A single technology modification. //-->
+                                       <modify-technology id="{?modify_technology_id?}" amount="{?modify_technology_amount?}" />
+                               </modify-technology-list>
+                       </research-result>
+               </research-result-list>
+               <!-- A summary for this research proposal. //-->
+               <research-summary>
+                       <![CDATA[{?summary?}]]>
+               </research-summary>
+               <!-- A full description for this research proposal. //-->
+               <research-description>
+                       <![CDATA[{?description?}]]>
+               </research-description>
+       </research-data>
+       <!-- This is somewhat a "research history". //-->
+       <research-level-list>
+               <!-- A research level X has its own summary and a full description.
+                    It also can have dependencies which makes it possible to add different
+                    dependencies for higher research levels. //-->
+               <research-level>
+                       <level>{?level?}</level>
+                       <!-- When the research of this level has been started ... //-->
+                       <research-started timestamp="{?started?}" />
+                       <!-- ... and when it has ended so when the research results are
+                            available. //-->
+                       <research-finished timestamp="{?finished?}" />
+                       <!-- A summary for this research level. //-->
+                       <level-summary>
+                               <![CDATA[{?level_summary?}]]>
+                       </level-summary>
+                       <!-- A full description for this research level. //-->
+                       <level-description>
+                               <![CDATA[{?level_description?}]]>
+                       </level-description>
+                       <!-- A research level may depend on none, some or all of these
+                            'dependency types'. We are doing this this way to keep this XML
+                            simple but still flexible enougth to fit all proposal needs. //-->
+                       <level-dependencies>
+                               <level-technology-dependency-list>
+                                       <level-technology-dependency>
+                                               <id>{?level_technology_id?}</id>
+                                               <name>{?level_technology_name?}</name>
+                                               <level>{?level_technology_level?}</level>
+                                       </level-technology-dependency>
+                               </level-technology-dependency-list>
+                               <level-research-dependency-list>
+                                       <level-research-dependency>
+                                               <id>{?level_research_id?}</id>
+                                               <name>{?level_research_name?}</name>
+                                               <level>{?level_research_level?}</level>
+                                       </level-research-dependency>
+                               </level-research-dependency-list>
+                               <level-building-dependency-list>
+                                       <level-buildimng-dependency>
+                                               <id>{?level_building_id?}</id>
+                                               <name>{?level_building_name?}</name>
+                                               <level>{?level_building_level?}</level>
+                                       </level-building-dependency>
+                               </level-building-dependency-list>
+                       </level-dependencies>
+               </research-level>
+       </research-level-list>
+       <dependencies>
+               <technology-dependency-list>
+                       <technology-dependency>
+                               <id>{?technology_id?}</id>
+                               <name>{?technology_name?}</name>
+                               <level>{?technology_level?}</level>
+                       </technology-dependency>
+               </technology-dependency-list>
+               <research-dependency-list>
+                       <research-dependency>
+                               <id>{?research_id?}</id>
+                               <name>{?research_name?}</name>
+                               <level>{?research_level?}</level>
+                       </research-dependency>
+               </research-dependency-list>
+               <building-dependency-list>
+                       <building-dependency>
+                               <id>{?building_id?}</id>
+                               <name>{?building_name?}</name>
+                               <level>{?building_level?}</level>
+                       </building-dependency>
+               </building-dependency-list>
+       </dependencies>
+</research-proposal>