<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> 

<xs:complexType name="mine-field-type">
   <xs:sequence>
		<xs:element name="name" 				type="xs:string"/>
		<xs:element name="range" 				type="xs:integer"/>
		<xs:element name="qty" 					type="xs:integer"/>
		<xs:element name="description"			type="xs:string" minOccurs="0"/>
		<xs:element name="image" 				type="xs:string" minOccurs="0"/>
		<xs:element name="cost-to-build" 		type="xs:integer"/>
		<xs:element name="cost-to-research" 	type="xs:integer"/>
   </xs:sequence>
   <xs:attribute name="class" type="xs:string" fixed="mot.common.technology.MineField"/> 
</xs:complexType>

<xs:complexType name="news-system-type">
   <xs:sequence>
		<xs:element name="name" 				type="xs:string"/>
		<xs:element name="influence" 			type="xs:decimal"/>
		<xs:element name="description"			type="xs:string" minOccurs="0"/>
		<xs:element name="image" 				type="xs:string" minOccurs="0"/>
		<xs:element name="cost-to-build" 		type="xs:integer"/>
		<xs:element name="cost-to-research" 	type="xs:integer"/>
   </xs:sequence>
   <xs:attribute name="class" type="xs:string" fixed="mot.common.technology.NewsSystem"/> 
</xs:complexType>

<xs:complexType name="kamikaze-type">
   <xs:sequence>
		<xs:element name="name" 				type="xs:string"/>
		<xs:element name="suicide-percent" 			type="xs:decimal"/>
		<xs:element name="description"			type="xs:string" minOccurs="0"/>
		<xs:element name="image" 				type="xs:string" minOccurs="0"/>
		<xs:element name="cost-to-build" 		type="xs:integer"/>
		<xs:element name="cost-to-research" 	type="xs:integer"/>
   </xs:sequence>
   <xs:attribute name="class" type="xs:string" fixed="mot.common.technology.Kamikaze"/> 
</xs:complexType>

<xs:complexType name="asteroid-field-construction-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="cost-to-build" 		type="xs:integer"/>
		<xs:element name="cost-to-research" 	type="xs:integer"/>
   </xs:sequence>
   <xs:attribute name="class" type="xs:string" fixed="mot.common.technology.AsteroidFieldConstruction"/> 
</xs:complexType>

<xs:complexType name="planet-construction-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="cost-to-build" 				type="xs:integer"/>
		<xs:element name="cost-to-research" 			type="xs:integer"/>
		<xs:element name="planet-size"					type="xs:integer"/>
		<xs:element name="planet-terraform"				type="xs:decimal"/>
		<xs:element name="planet-production-bonus"		type="xs:decimal"/>
		<xs:element name="planet-research-bonus"		type="xs:decimal"/>
		<xs:element name="planet-reproduction-bonus"	type="xs:decimal"/>
		<xs:element name="group" 						type="xs:string"/>
   </xs:sequence>
   <xs:attribute name="class" type="xs:string" fixed="mot.common.technology.PlanetConstruction"/> 
</xs:complexType>

<xs:complexType name="station-missile-base-type">
   <xs:sequence>
		<xs:element name="name" 			type="xs:string"/>
		<xs:element name="qty-missiles"		type="xs:integer"/>
		<xs:element name="description"		type="xs:string" minOccurs="0"/>
		<xs:element name="image" 			type="xs:string" minOccurs="0"/>
		<xs:element name="cost-to-build" 	type="xs:integer"/>
		<xs:element name="cost-to-research" type="xs:integer"/>
   </xs:sequence>
   <xs:attribute name="class" type="xs:string" fixed="mot.common.technology.StationMissileBase"/> 
</xs:complexType>

<xs:complexType name="galactic-lore-type">
   <xs:sequence>
		<xs:element name="name" 				type="xs:string"/>
		<xs:element name="qty-galactic-lore"	type="xs:integer"/>
		<xs:element name="description"			type="xs:string" minOccurs="0"/>
		<xs:element name="image" 				type="xs:string" minOccurs="0"/>
		<xs:element name="cost-to-build" 		type="xs:integer"/>
		<xs:element name="cost-to-research" 	type="xs:integer"/>
   </xs:sequence>
   <xs:attribute name="class" type="xs:string" fixed="mot.common.technology.GalacticLore"/> 
</xs:complexType>


<xs:complexType name="extended-space-jump-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="cost-to-build" 	type="xs:integer"/>
		<xs:element name="cost-to-research" type="xs:integer"/>
   </xs:sequence>
   <xs:attribute name="class" type="xs:string" fixed="mot.common.technology.ExtendedSpaceJump"/> 
</xs:complexType>

<xs:complexType name="planet-command-center-type">
   <xs:sequence>
		<xs:element name="name" 				 type="xs:string"/>
		<xs:element name="attacker-modification" type="xs:decimal"/>
		<xs:element name="description"			 type="xs:string" minOccurs="0"/>
		<xs:element name="image" 				 type="xs:string" minOccurs="0"/>
		<xs:element name="cost-to-build" 		 type="xs:integer"/>
		<xs:element name="cost-to-research" 	 type="xs:integer"/>
   </xs:sequence>
   <xs:attribute name="class" type="xs:string" fixed="mot.common.technology.PlanetCommandCenter"/> 
</xs:complexType>


<xs:complexType name="misc-technologies-type">
   <xs:sequence>
		<xs:element name="kamikaze" type="kamikaze-type" minOccurs="1" maxOccurs="unbounded"/>
		<xs:element name="news-system" type="news-system-type" minOccurs="1" maxOccurs="unbounded"/>
		<xs:element name="asteroid-field-construction" type="asteroid-field-construction-type" minOccurs="1" maxOccurs="unbounded"/>
		<xs:element name="planet-construction" type="planet-construction-type" minOccurs="1" maxOccurs="unbounded"/>
		<xs:element name="planet-command-center" type="planet-command-center-type" minOccurs="1" maxOccurs="unbounded"/>
		<xs:element name="station-missile-base" type="station-missile-base-type" minOccurs="1" maxOccurs="unbounded"/>
		<xs:element name="galactic-lore" type="galactic-lore-type" minOccurs="1" maxOccurs="unbounded"/>
		<xs:element name="extended-space-jump" type="extended-space-jump-type" minOccurs="1" maxOccurs="unbounded"/>
		<xs:element name="mine-field" type="mine-field-type" minOccurs="1" maxOccurs="unbounded"/>
   </xs:sequence>
   <xs:attribute name="class" type="xs:string" fixed="mot.common.technology.MiscTechnologies"/> 
</xs:complexType>

<xs:element name="misc-technologies" type="misc-technologies-type"/>

</xs:schema>
