This repository has been archived on 2025-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
lwb6/legacyworlds-server-main/data/resources.xsd

44 lines
1.6 KiB
XML
Raw Permalink Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.deepclone.com/lw/b6/m2/resources"
targetNamespace="http://www.deepclone.com/lw/b6/m2/resources"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="lw-resources">
<xs:complexType>
<xs:sequence>
<xs:element name="basic-resource" type="basic-resource"
minOccurs="0" maxOccurs="unbounded" />
<xs:element name="natural-resource" type="natural-resource"
minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="basic-resource">
<xs:attribute name="name" use="required" type="xs:token" />
<xs:attribute name="description" use="required" type="xs:token" />
<xs:attribute name="category" use="optional" type="xs:token" />
<xs:attribute name="weight" use="required" type="xs:integer" />
</xs:complexType>
<xs:complexType name="natural-resource">
<xs:complexContent>
<xs:extension base="basic-resource">
<xs:sequence>
<xs:element name="quantity" type="resource-parameter" />
<xs:element name="difficulty" type="resource-parameter" />
<xs:element name="recovery" type="resource-parameter" />
</xs:sequence>
<xs:attribute name="presence-probability" use="required"
type="xs:decimal" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="resource-parameter">
<xs:attribute name="average" use="required" type="xs:decimal" />
<xs:attribute name="deviation" use="required" type="xs:decimal" />
</xs:complexType>
</xs:schema>