<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> 

<xs:complexType name="restrictions-type">
   <xs:sequence>
		<xs:element name="max-qty-per-craft"		type="xs:integer" minOccurs="0"/>
   </xs:sequence>
	<xs:attribute name="class"  type="xs:string" fixed="mot.common.technology.WeaponRestrictions"/> 
</xs:complexType>

<xs:complexType name="weapon-type">
   <xs:sequence>
		<xs:element name="name" 			 type="xs:string"/>
		<xs:element name="description"		 type="xs:string" minOccurs="0"/>
		<xs:element name="image"			 type="xs:string" minOccurs="0"/>
		<xs:element name="damage" 			 type="xs:decimal"/>
		<xs:element name="range" 			 type="xs:integer"/>
		<xs:element name="degredation" 		 type="xs:decimal" minOccurs="0"/>
		<xs:element name="variance" 		 type="xs:decimal" minOccurs="0"/>
		<xs:element name="salvage-effect" 	 type="xs:decimal" minOccurs="0"/>
		<xs:element name="space" 			 type="xs:integer"/>
		<xs:element name="qty-shots"		 type="xs:integer" minOccurs="0"/>
		<xs:element name="uses-dish"		 type="xs:boolean" minOccurs="0"/>
		<xs:element name="animation-type"	 type="xs:integer" minOccurs="0"/>
        <xs:element name="param1"            type="xs:integer" minOccurs="0"/>
		<xs:element name="param2"			 type="xs:integer" minOccurs="0"/>
        <xs:element name="max-qty-on-craft"  type="xs:integer"/>
        <xs:element name="max-qty-on-planet" type="xs:integer"/>
		<xs:element name="cost-to-build" 	 type="xs:integer"/>
		<xs:element name="cost-to-research"  type="xs:integer"/>
		<xs:element name="maintenance-cost"	 type="xs:integer" minOccurs="0"/>
		<xs:element name="group" 			 type="xs:string" minOccurs="0"/>
		<xs:element name="sound-group" 		 type="xs:string" minOccurs="0"/>
		<xs:element name="restrictions"      type="restrictions-type" minOccurs="0"/>
   </xs:sequence>
	<xs:attribute name="class"  type="xs:string" fixed="mot.common.technology.Weapon"/> 
</xs:complexType>

<xs:complexType name="weapons-type">
   <xs:sequence>
		<xs:element name="weapon" type="weapon-type" minOccurs="1" maxOccurs="unbounded"/>
   </xs:sequence>
	<xs:attribute name="class"  type="xs:string" fixed="mot.common.technology.Weapons"/> 
</xs:complexType>

<xs:element name="weapons" type="weapons-type"/>

</xs:schema>