Proposed change to planets.xml file. Does this look ok? (looks like pasting this stuff in the codebox tag has escaped it all)
[codebox] <country name=\"UK\">
<col$orKey R=\"32\" G=\"16\" B=\"255\" />
<funds seed=\"240000\" cap=\"7000000\"/>
<boundingBox>
<topLeft latitude=\"0.9401534\" longitude=\"-0.04485813\"/>
<bottomRight latitude=\"0.8938255\" longitude=\"-0.00014316\" />
</boundingBox>
<boundingBox>
<topLeft latitude =\"1.015182\" longitude =\"-0.1052626\"/>
<bottomRight latitude =\"0.969976\" longitude =\"-0.0571474\"/>
</boundingBox>
<boundingBox>
<topLeft latitude =\"0.934903\" longitude =\"-0.07214101\"/>
<bottomRight latitude =\"0.913208\" longitude =\"-0.05893808\"/>
</boundingBox>
</country>[/codebox]
and the corresponding XSD change.
[codebox]
<!-- Landing Bounding Box-->
<xs:complexType name="landingBoundingBoxType">
<xs:annotation>
<xs:documentation>Defines a landable area with a country</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs ="1" maxOccurs="1">
<xs:element name="topLeft" type="geopositionType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Top left corner of the bounding box</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="bottomRight" type="geopositionType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Bottom right corner of the bounding box</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
... snip...
<!-- Country definition (A geographical area that funds X-Corp) -->
<xs:complexType name=\"countryType\">
<xs:annotation>
<xs:documentation>Basic information for a country. e.g. France, Germany</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name=\"colorKey\" type=\"colorType\" minOccurs=\"1\" maxOccurs=\"1\">
<xs:annotation>
<xs:documentation>The RGB value associated with this country\'s area on the bitmap</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name=\"funds\">
<xs:annotation>
<xs:documentation>Control $ per month country will give X-Corp</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name=\"seed\" type=\"xs:nonNegativeInteger\" use=\"required\">
<xs:annotation>
<xs:documentation>Seed used to determine starting value (between 100% and 200% of this value)</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name=\"cap\" type=\"xs:nonNegativeInteger\" use=\"required\">
<xs:annotation>
<xs:documentation>Maximum $ per month</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name=\"boundingBox\" type=\"landingBoundingBoxType\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>
</xs:sequence>
<xs:attribute name=\"name\" type=\"xs:string\" use=\"required\">
<xs:annotation>
<xs:documentation>The name of the country</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>[/codebox]
Edited by PezzA, 17 November 2009 - 04:03 PM.