Semi-working entity loading from XML files!

This commit is contained in:
sippeangelo
2015-12-09 11:59:58 +01:00
parent c9d1ba6cae
commit c9b140bd6b
6 changed files with 121 additions and 63 deletions
+5 -5
View File
@@ -3,10 +3,12 @@
<Entity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xi="http://www.w3.org/2001/XInclude" xsi:noNamespaceSchemaLocation="../Types/Entity.xsd" xmlns:c="components">
<Components>
<c:Transform>
<Position X="1.02" Y="3.123123" Z="41.123"/>
<Orientation I="1.234" J="1.234" K="1.234"/>
<Scale X="1.02" Y="3.123123" Z="41.123"/>
<Position X="0" Y="0" Z="0"/>
<Scale X="3" Y="3" Z="3"/>
</c:Transform>
<c:Model>
<Resource>Models/Core/UnitSphere.obj</Resource>
</c:Model>
<c:Test>
<Integer>12</Integer>
<Double>11.11</Double>
@@ -14,7 +16,5 @@
</c:Test>
</Components>
<Children>
<xi:include href="OtherEntity.xml"/>
<xi:include href="OtherEntity.xml"/>
</Children>
</Entity>
+1
View File
@@ -11,6 +11,7 @@
<xs:complexType>
<xs:all>
<xs:element ref="c:Transform" minOccurs="0"/>
<xs:element ref="c:Model" minOccurs="0"/>
<xs:element ref="c:Test" minOccurs="0"/>
</xs:all>
</xs:complexType>