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/tech-graph.xsd
Emmanuel BENOîT 1f3c7a9202 Technology definitions loader
* Added "dummy" data file for technologies (for now it simply copies the
old, line-based technologies) and corresponding XML schema

* Added missing SQL stored procedure to clear all dependencies and
reverse dependencies from a technology

* Added import classes, loader and import tool for the technology graph

* Added tech graph import tool to post-build tests
2012-02-27 20:04:02 +01:00

35 lines
No EOL
1.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.deepclone.com/lw/b6/m2/tech-graph"
targetNamespace="http://www.deepclone.com/lw/b6/m2/tech-graph"
xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:element name="lw-tech-graph">
<xs:complexType>
<xs:sequence>
<xs:element name="technology" type="technology-description"
minOccurs="1" maxOccurs="unbounded">
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:simpleType name="positive-long">
<xs:restriction base="xs:long">
<xs:minExclusive value="0"></xs:minExclusive>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="technology-description">
<xs:sequence>
<xs:element name="depends-on" type="xs:token" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:token" />
<xs:attribute name="category" use="required" type="xs:token" />
<xs:attribute name="description" use="required" type="xs:token" />
<xs:attribute name="discovery" use="required" type="xs:token" />
<xs:attribute name="cost" use="required" type="positive-long" />
<xs:attribute name="points" use="required" type="positive-long" />
</xs:complexType>
</xs:schema>