Major rewrite of game logic XMLs
[shipsimu.git] / application / ship-simu / templates / game / building / base_building.xml
index ab7743905c74d22fb7e143ab4f0338b2637b79b4..5a0aafb6de968d1f0ffc6be130a53c0e99da3da0 100644 (file)
@@ -42,7 +42,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
                        <![CDATA[{?description?}]]>
                </description>
                <!-- General data, like short name, type, level and many more. //-->
-               <general-data>
+               <building-data>
                        <id>{?id?}</id>
                        <name>{?name?}</name>
                        <type>{?type?}</type>
@@ -71,7 +71,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
                                        <![CDATA[{?destruction_reason?}]]>
                                </destruction-reason>
                        </deconstructed>
-               </general-data>
+               </building-data>
        </building-data>
        <!-- All sorts of costs for a building. //-->
        <costs>
@@ -84,7 +84,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
                        <construction-company extends="{?construction_template?}">
                                <!-- The construction company. //-->
                                <company>
-                                       <id>{?construct_id?}</id>
+                                       <company-id>{?construct_id?}</company-id>
                                        <!-- A construction of a building requires personel. We
                                             summary their salery here for simplicy. //-->
                                        <personel-costs currency="{?personel_currency?}" />
@@ -95,7 +95,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
                                                <!-- A single resource and its amount to construct this
                                                     building. //-->
                                                <resource>
-                                                       <id>{?resource_id?}</id>
+                                                       <resource-id>{?resource_id?}</resource-id>
                                                        <amount>{?resource_amount?}</amount>
                                                        <!-- The merchant dealing with this resource. //-->
                                                        <resource-merchant extends="{?merchant_template?}">
@@ -153,9 +153,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
                <technology-dependency-list>
                        <!-- A single required technology to construct this building. //-->
                        <technology-dependency>
-                               <id>{?technology_id?}</id>
-                               <type>{?technology_type?}</type>
-                               <level>{?technology_level?}</level>
+                               <technology-id>{?technology_id?}</technology-id>
+                               <technology-name>{?technology_name?}</technology-name>
+                               <technology-type>{?technology_type?}</technology-type>
+                               <technology-level>{?technology_level?}</technology-level>
                        </technology-dependency>
                </technology-dependency-list>
        </dependencies>