Updated schema with custom type names to better match their C++ counterparts
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element name="Integer" type="xs:integer" minOccurs="0"/>
|
||||
<xs:element name="Float" type="xs:decimal" minOccurs="0"/>
|
||||
<xs:element name="String" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="Integer" type="t:int" minOccurs="0"/>
|
||||
<xs:element name="Double" type="t:double" minOccurs="0"/>
|
||||
<xs:element name="String" type="t:string" minOccurs="0"/>
|
||||
<xs:element name="Vector" type="t:Vector" minOccurs="0"/>
|
||||
<xs:element name="Quaternion" type="t:Quaternion" minOccurs="0"/>
|
||||
</xs:all>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<Components>
|
||||
<c:Test>
|
||||
<Integer>5555</Integer>
|
||||
<Float>12.34</Float>
|
||||
<Double>12.34</Double>
|
||||
</c:Test>
|
||||
</Components>
|
||||
</Entity>
|
||||
@@ -9,7 +9,8 @@
|
||||
</c:Transform>
|
||||
<c:Test>
|
||||
<Integer>12</Integer>
|
||||
<Float>11.11</Float>
|
||||
<Double>11.11</Double>
|
||||
<String>Hello World</String>
|
||||
</c:Test>
|
||||
</Components>
|
||||
<Children>
|
||||
|
||||
@@ -3,4 +3,13 @@
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="types" elementFormDefault="qualified">
|
||||
<xs:include schemaLocation="Types/Quaternion.xsd"/>
|
||||
<xs:include schemaLocation="Types/Vector.xsd"/>
|
||||
<xs:simpleType name="int">
|
||||
<xs:restriction base="xs:integer"></xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="double">
|
||||
<xs:restriction base="xs:decimal"></xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="string">
|
||||
<xs:restriction base="xs:string"></xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:schema>
|
||||
Reference in New Issue
Block a user