]> git.mxchange.org Git - shipsimu.git/blobdiff - application/shipsimu/templates/game/merchant/base_merchant.xml
Renamed 'ship-simu' to 'shipsimu' + added 'core' and symlink to core/inc
[shipsimu.git] / application / shipsimu / templates / game / merchant / base_merchant.xml
diff --git a/application/shipsimu/templates/game/merchant/base_merchant.xml b/application/shipsimu/templates/game/merchant/base_merchant.xml
new file mode 100644 (file)
index 0000000..22d4c78
--- /dev/null
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+A general merchant template.
+
+@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/>
+//-->
+<merchant>
+       <!-- General data about this merchant like id, type, summary or description. //-->
+       <merchant-data>
+               <id>{?id?}</id>
+               <name>{?name?}</name>
+               <type>{?type?</type>
+               <!-- A summary what this merchant is trading. //-->
+               <summary>
+                       <![CDATA[{?summary?}]]>
+               </summary>
+               <!-- A full description about this merchant. //-->
+               <description>
+                       <![CDATA[{?description?}]]>
+               </description>
+       </merchant-data>
+       <!-- The owner of this merchant. If left out the AI of the game will play
+            this merchant. //-->
+       <owner>
+               <company id="{?owner_id?}" />
+       </owner>
+       <!-- A detailed trading list of goods this merchant is trading. Amount, when
+            the first item was added or the last one was removed are being stored
+            with every goods. //-->
+       <goods-list goods-count="{?goods_count?}">
+               <!-- A single goods this merchant is trading. //-->
+               <goods>
+                       <goods-id>{?goods_id?}</goods-id>
+                       <goods-name>{?goods_name?}</goods-name>
+                       <goods-type>{?goods_type?}</goods-type>
+                       <goods-amount>{?goods_amount?}</goods-amount>
+                       <goods-first-added>{?goods_added?}</goods-first-added>
+                       <goods-last-removed>{?goods_remoed?}</goods-last-removed>
+               </goods>
+       </goods-list>
+</merchant>