2010-11-23 21:07:06 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
|
|
|
2016-01-10 09:08:08 +00:00
|
|
|
<xs:element name="config">
|
2010-11-23 21:07:06 +00:00
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element ref="server"/>
|
|
|
|
<xs:element ref="playerTypes"/>
|
|
|
|
<xs:element ref="gameTypes"/>
|
2011-02-06 16:09:25 +00:00
|
|
|
<xs:element ref="tournamentTypes"/>
|
2016-01-10 09:08:08 +00:00
|
|
|
<xs:element ref="draftCubes"/>
|
2010-11-23 21:07:06 +00:00
|
|
|
<xs:element ref="deckTypes"/>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
2016-01-10 09:08:08 +00:00
|
|
|
|
2010-11-23 21:07:06 +00:00
|
|
|
<xs:element name="server">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:attribute name="serverAddress" type="xs:string" use="required"/>
|
|
|
|
<xs:attribute name="serverName" type="xs:string" use="required"/>
|
|
|
|
<xs:attribute name="port" type="xs:positiveInteger" use="required"/>
|
|
|
|
<xs:attribute name="maxGameThreads" type="xs:positiveInteger" use="required"/>
|
|
|
|
<xs:attribute name="maxSecondsIdle" type="xs:positiveInteger" use="required"/>
|
2016-01-10 09:08:08 +00:00
|
|
|
<xs:attribute name="secondaryBindPort" type="xs:integer" use="required"/>
|
|
|
|
<xs:attribute name="backlogSize" type="xs:positiveInteger" use="required"/>
|
|
|
|
<xs:attribute name="numAcceptThreads" type="xs:positiveInteger" use="required"/>
|
|
|
|
<xs:attribute name="maxPoolSize" type="xs:positiveInteger" use="required"/>
|
|
|
|
<xs:attribute name="leasePeriod" type="xs:positiveInteger" use="required"/>
|
|
|
|
<xs:attribute name="minUserNameLength" type="xs:positiveInteger" use="required"/>
|
|
|
|
<xs:attribute name="maxUserNameLength" type="xs:positiveInteger" use="required"/>
|
2016-01-11 02:15:01 +00:00
|
|
|
<xs:attribute name="invalidUserNamePattern" type="xs:string" use="required"/>
|
|
|
|
<xs:attribute name="minPasswordLength" type="xs:positiveInteger" use="required"/>
|
|
|
|
<xs:attribute name="maxPasswordLength" type="xs:positiveInteger" use="required"/>
|
2016-01-10 09:08:08 +00:00
|
|
|
<xs:attribute name="maxAiOpponents" type="xs:string" use="optional"/>
|
|
|
|
<xs:attribute name="saveGameActivated" type="xs:boolean" use="optional"/>
|
|
|
|
<xs:attribute name="authenticationActivated" type="xs:boolean" use="optional"/>
|
|
|
|
<xs:attribute name="googleAccount" type="xs:string" use="optional"/>
|
2016-01-12 15:38:59 +00:00
|
|
|
<xs:attribute name="mailgunApiKey" type="xs:string" use="optional"/>
|
|
|
|
<xs:attribute name="mailgunDomain" type="xs:string" use="optional"/>
|
2016-01-22 12:40:08 +00:00
|
|
|
<xs:attribute name="mailSmtpHost" type="xs:string" use="optional"/>
|
|
|
|
<xs:attribute name="mailSmtpPort" type="xs:string" use="optional"/>
|
|
|
|
<xs:attribute name="mailUser" type="xs:string" use="optional"/>
|
|
|
|
<xs:attribute name="mailPassword" type="xs:string" use="optional"/>
|
|
|
|
<xs:attribute name="mailFromAddress" type="xs:string" use="optional"/>
|
2010-11-23 21:07:06 +00:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
|
|
|
|
<xs:complexType name="plugin">
|
|
|
|
<xs:attribute name="name" type="xs:string"/>
|
|
|
|
<xs:attribute name="jar" type="xs:string"/>
|
|
|
|
<xs:attribute name="className" type="xs:string"/>
|
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="gamePlugin">
|
|
|
|
<xs:complexContent>
|
|
|
|
<xs:extension base="plugin">
|
|
|
|
<xs:attribute name="typeName" type="xs:string"/>
|
|
|
|
</xs:extension>
|
|
|
|
</xs:complexContent>
|
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:element name="playerTypes">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="playerType" type="plugin" maxOccurs="unbounded"/>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
2016-01-10 09:08:08 +00:00
|
|
|
|
2010-11-23 21:07:06 +00:00
|
|
|
<xs:element name="gameTypes">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="gameType" type="gamePlugin" maxOccurs="unbounded"/>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
|
2011-02-06 16:09:25 +00:00
|
|
|
<xs:element name="tournamentTypes">
|
2011-01-09 04:54:32 +00:00
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
2011-02-06 16:09:25 +00:00
|
|
|
<xs:element name="tournamentType" type="gamePlugin" maxOccurs="unbounded"/>
|
2011-01-09 04:54:32 +00:00
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
|
2014-01-10 18:58:55 +00:00
|
|
|
<xs:element name="draftCubes">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="draftCube" type="plugin" maxOccurs="unbounded"/>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
|
2010-11-23 21:07:06 +00:00
|
|
|
<xs:element name="deckTypes">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="deckType" type="plugin" maxOccurs="unbounded"/>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
|
|
|
|
</xs:schema>
|