This repository has been archived on 2024-07-18. You can view files and clone it, but cannot push or open issues or pull requests.
lwb6/legacyworlds-server/legacyworlds-server-main/data/techs.xsd

34 lines
1.4 KiB
XML
Raw Normal View History

2018-10-23 09:38:02 +02:00
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.deepclone.com/lw/b6/m1/techs" targetNamespace="http://www.deepclone.com/lw/b6/m1/techs"
xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="technologies">
<xs:complexType>
<xs:sequence>
2018-10-23 09:43:42 +02:00
<xs:element name="category" type="category" minOccurs="1" maxOccurs="unbounded" />
<xs:element name="technology" type="technology" minOccurs="1" maxOccurs="unbounded" />
2018-10-23 09:38:02 +02:00
</xs:sequence>
</xs:complexType>
</xs:element>
2018-10-23 09:43:42 +02:00
<xs:complexType name="category">
2018-10-23 09:38:02 +02:00
<xs:attribute name="name" use="required" type="xs:token" />
<xs:attribute name="description" use="required" type="xs:token" />
</xs:complexType>
2018-10-23 09:43:42 +02:00
<xs:complexType name="technology">
<xs:sequence>
<xs:element name="depends" type="dependency" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
2018-10-23 09:38:02 +02:00
<xs:attribute name="name" use="required" type="xs:token" />
2018-10-23 09:43:42 +02:00
<xs:attribute name="category" use="required" type="xs:token" />
2018-10-23 09:38:02 +02:00
<xs:attribute name="description" use="required" type="xs:token" />
<xs:attribute name="points" use="required" type="xs:positiveInteger" />
<xs:attribute name="cost" use="required" type="xs:positiveInteger" />
</xs:complexType>
2018-10-23 09:43:42 +02:00
<xs:complexType name="dependency">
<xs:attribute name="on" use="required" type="xs:token" />
</xs:complexType>
2018-10-23 09:38:02 +02:00
</xs:schema>