<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> 

<xs:complexType name="weapon-bay-details-type">
   <xs:sequence>
		<xs:element name="name" 				type="xs:string"/>
		<xs:element name="max-fire-angle"   type="xs:int" minOccurs="0"/>
   </xs:sequence>
	<xs:attribute name="class" type="xs:string" fixed="mot.common.technology.WeaponBayDetails"/> 
</xs:complexType>

<xs:complexType name="hull-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="battle-turning-cost"  type="xs:decimal"/>
		<xs:element name="battle-movement-cost" type="xs:decimal"/>
		<xs:element name="max-damage" 		    type="xs:integer"/>
		<xs:element name="space" 		        type="xs:integer"/>
		<xs:element name="crew" 		        type="xs:integer"/>
		<xs:element name="weapon-bay-details" 	type="weapon-bay-details-type"/>
		<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="cost-to-build-factor" type="xs:decimal"/>
		<xs:element name="group" 				type="xs:string" minOccurs="0"/>
		<xs:element name="meta" 				type="xs:string" minOccurs="0"/>
		<xs:element name="destructon-can-cause-wreckage" type="xs:boolean"/>
		<xs:element name="mandatory-restriction" minOccurs="0">
			<xs:complexType>
				<xs:sequence>
					<xs:element name="race" type="xs:string" minOccurs="0"/>
				</xs:sequence>
				<xs:attribute name="class" type="xs:string" fixed="mot.common.technology.MandatoryRestriction"/> 
			</xs:complexType>
		</xs:element>
   </xs:sequence>
	<xs:attribute name="class" type="xs:string" fixed="mot.common.technology.Hull"/> 
</xs:complexType>

<xs:complexType name="hulls-type">
   <xs:sequence>
		<xs:element name="hull" type="hull-type" minOccurs="1" maxOccurs="unbounded"/>
   </xs:sequence>
	<xs:attribute name="class" type="xs:string" fixed="mot.common.technology.Hulls"/> 
</xs:complexType>

<xs:element name="hulls" type="hulls-type"/>

</xs:schema>
