Addition of fences support.

Contributed by Sahar.
This commit is contained in:
MobiusDev
2018-05-08 16:56:05 +00:00
parent e05d0a1a14
commit 138dd34c73
100 changed files with 6857 additions and 18 deletions

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xsd/FenceData.xsd">
<fence name="demo" x="-114552" y="-251256" z="-2992" width="100" length="100" height="3" state="CLOSED" />
</list>

View File

@@ -0,0 +1,25 @@
<html>
<head>
<title>Fence List</title>
</head>
<body>
<table width="100%">
<tr>
<td width=45>
<button value="Main" action="bypass -h admin_admin" width=45 height=21 back="sek.cbui94" fore="sek.cbui92">
</td>
<td width=180>
<center><font color="LEVEL">Fence List</font></center>
</td>
<td width=45>
<button value="Back" action="bypass -h admin_current_player" width=45 height=21 back="sek.cbui94" fore="sek.cbui92">
</td>
</tr>
</table>
<br>
<table width="100%">
%fences%
</table>
<br>%pages%<br>
</body>
</html>

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="fence">
<xs:attribute type="xs:string" name="name" />
<xs:attribute type="xs:integer" name="x" use="required" />
<xs:attribute type="xs:integer" name="y" use="required" />
<xs:attribute type="xs:integer" name="z" use="required" />
<xs:attribute type="xs:positiveInteger" name="width" use="required" />
<xs:attribute type="xs:positiveInteger" name="length" use="required" />
<xs:attribute name="height" use="required">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:minInclusive value="1" />
<xs:maxInclusive value="3" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="state" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="HIDDEN" />
<xs:enumeration value="OPENED" />
<xs:enumeration value="CLOSED" />
<xs:enumeration value="CLOSED_HIDDEN" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:element name="list">
<xs:complexType>
<xs:sequence>
<xs:element name="fence" maxOccurs="unbounded" type="fence" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>