XML Schema Definition des ls3-Dateiformats: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Datentypen) |
(Datentypen) |
||
Zeile 59: | Zeile 59: | ||
<xs:element ref="sk"/> | <xs:element ref="sk"/> | ||
</xs:sequence> | </xs:sequence> | ||
<xs:attribute name="BoundingR" type="xs: | <xs:attribute name="BoundingR" type="xs:int"/> | ||
<xs:attribute name="Flags"/> | <xs:attribute name="Flags" type="xs:long"/> | ||
<xs:attribute name="GruppenName" type="xs:NCName"/> | <xs:attribute name="GruppenName" type="xs:NCName"/> | ||
<xs:attribute name="Helligkeit" type="xs: | <xs:attribute name="Helligkeit" type="xs:int"/> | ||
<xs:attribute name="LODbit" type="xs: | <xs:attribute name="LODbit" type="xs:int"/> | ||
<xs:attribute name="SichtbarAb" type="xs: | <xs:attribute name="SichtbarAb" type="xs:int"/> | ||
<xs:attribute name="SichtbarBis" type="xs: | <xs:attribute name="SichtbarBis" type="xs:int"/> | ||
<xs:attribute name="Vorlade" type="xs: | <xs:attribute name="Vorlade" type="xs:int"/> | ||
</xs:complexType> | </xs:complexType> | ||
</xs:element> | </xs:element> | ||
Zeile 79: | Zeile 79: | ||
<xs:complexType> | <xs:complexType> | ||
<xs:attribute name="Dateiname" type="xs:NCName"/> | <xs:attribute name="Dateiname" type="xs:NCName"/> | ||
<xs:attribute name="NurInfo" type="xs: | <xs:attribute name="NurInfo" type="xs:boolean"/> | ||
</xs:complexType> | </xs:complexType> | ||
</xs:element> | </xs:element> |
Version vom 10. Juli 2016, 15:50 Uhr
Hier entsteht eine XSD-Datei des ls3-Dateiformats - work in progress!
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="Zusi"> <xs:complexType> <xs:sequence> <xs:element ref="Info"/> <xs:element ref="Landschaft"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Info"> <xs:complexType> <xs:sequence> <xs:element ref="AutorEintrag"/> </xs:sequence> <xs:attribute name="Beschreibung" type="xs:NCName"/> <xs:attribute name="DateiKategorie" type="xs:NCName"/> <xs:attribute name="DateiTyp" type="xs:NCName"/> <xs:attribute name="EinsatzAb"/> <!-- Delphi TDateTime --> <xs:attribute name="EinsatzBis"/> <!-- Delphi TDateTime --> <xs:attribute name="MinVersion" type="xs:NCName"/> <xs:attribute name="ObjektID" type="xs:int"/> <xs:attribute name="Version" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="AutorEintrag"> <xs:complexType> <xs:attribute name="AutorAufwand" type="xs:float"/> <xs:attribute name="AutorBeschreibung" type="xs:NCName"/> <xs:attribute name="AutorEmail" type="xs:NCName"/> <xs:attribute name="AutorID" type="xs:int"/> <xs:attribute name="AutorLizenz"/> <!-- Delphi: integer enum --> <xs:attribute name="AutorName" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="Landschaft"> <xs:complexType> <xs:sequence> <xs:element ref="Verknuepfte"/> <xs:element ref="lsb"/> <xs:element ref="SubSet"/> <xs:element ref="Ankerpunkt"/> <xs:element ref="Animation"/> <xs:element ref="Sound"/> <xs:element ref="MeshAnimation"/> <xs:element ref="VerknAnimation"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Verknuepfte"> <xs:complexType> <xs:sequence> <xs:element ref="Datei"/> <xs:element ref="p"/> <xs:element ref="phi"/> <xs:element ref="sk"/> </xs:sequence> <xs:attribute name="BoundingR" type="xs:int"/> <xs:attribute name="Flags" type="xs:long"/> <xs:attribute name="GruppenName" type="xs:NCName"/> <xs:attribute name="Helligkeit" type="xs:int"/> <xs:attribute name="LODbit" type="xs:int"/> <xs:attribute name="SichtbarAb" type="xs:int"/> <xs:attribute name="SichtbarBis" type="xs:int"/> <xs:attribute name="Vorlade" type="xs:int"/> </xs:complexType> </xs:element> <xs:element name="sk"> <xs:complexType> <xs:attribute name="X" type="xs:NCName"/> <xs:attribute name="Y" type="xs:NCName"/> <xs:attribute name="Z" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="lsb"> <xs:complexType> <xs:attribute name="Dateiname" type="xs:NCName"/> <xs:attribute name="NurInfo" type="xs:boolean"/> </xs:complexType> </xs:element> <xs:element name="SubSet"> <xs:complexType> <xs:sequence> <xs:element ref="RenderFlags"/> <xs:element ref="Textur"/> <xs:element ref="Vertex"/> <xs:element ref="Face"/> </xs:sequence> <xs:attribute name="BeleuchtungTyp" type="xs:NCName"/> <xs:attribute name="Blink" type="xs:NCName"/> <xs:attribute name="Ca" type="xs:NCName"/> <xs:attribute name="Cd" type="xs:NCName"/> <xs:attribute name="Ce" type="xs:NCName"/> <xs:attribute name="DoppeltRendern" type="xs:NCName"/> <xs:attribute name="GruppenName" type="xs:NCName"/> <xs:attribute name="MeshI" type="xs:NCName"/> <xs:attribute name="MeshV" type="xs:NCName"/> <xs:attribute name="MeterProTex" type="xs:NCName"/> <xs:attribute name="MeterProTex2" type="xs:NCName"/> <xs:attribute name="NachtEinstellung" type="xs:NCName"/> <xs:attribute name="Nachtumschaltung" type="xs:NCName"/> <xs:attribute name="TypGF"/> <xs:attribute name="TypLs3"/> <xs:attribute name="Zwangshelligkeit" type="xs:NCName"/> <xs:attribute name="zBias" type="xs:NCName"/> <xs:attribute name="zZoom" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="RenderFlags"> <xs:complexType> <xs:sequence> <xs:element ref="SubSetTexFlags"/> <xs:element ref="SubSetTexFlags2"/> <xs:element ref="SubSetTexFlags3"/> </xs:sequence> <xs:attribute name="ALPHABLENDENABLE" type="xs:NCName"/> <xs:attribute name="ALPHAREF" type="xs:NCName"/> <xs:attribute name="ALPHATESTENABLE" type="xs:NCName"/> <xs:attribute name="DESTBLEND"/> <xs:attribute name="SHADEMODE"/> <xs:attribute name="SRCBLEND"/> <xs:attribute name="TexVoreinstellung" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="SubSetTexFlags"> <xs:complexType> <xs:attribute name="ALPHAARG0"/> <xs:attribute name="ALPHAARG1"/> <xs:attribute name="ALPHAARG2"/> <xs:attribute name="ALPHAOP"/> <xs:attribute name="COLORARG0"/> <xs:attribute name="COLORARG1"/> <xs:attribute name="COLORARG2"/> <xs:attribute name="COLOROP"/> <xs:attribute name="MAGFILTER"/> <xs:attribute name="MINFILTER"/> <xs:attribute name="RESULTARG"/> </xs:complexType> </xs:element> <xs:element name="SubSetTexFlags2"> <xs:complexType> <xs:attribute name="ALPHAARG0"/> <xs:attribute name="ALPHAARG1"/> <xs:attribute name="ALPHAARG2"/> <xs:attribute name="ALPHAOP"/> <xs:attribute name="COLORARG0"/> <xs:attribute name="COLORARG1"/> <xs:attribute name="COLORARG2"/> <xs:attribute name="COLOROP"/> <xs:attribute name="MAGFILTER"/> <xs:attribute name="MINFILTER"/> <xs:attribute name="RESULTARG"/> </xs:complexType> </xs:element> <xs:element name="SubSetTexFlags3"> <xs:complexType> <xs:attribute name="ALPHAARG0"/> <xs:attribute name="ALPHAARG1"/> <xs:attribute name="ALPHAARG2"/> <xs:attribute name="ALPHAOP"/> <xs:attribute name="COLORARG0"/> <xs:attribute name="COLORARG1"/> <xs:attribute name="COLORARG2"/> <xs:attribute name="COLOROP"/> <xs:attribute name="MAGFILTER"/> <xs:attribute name="MINFILTER"/> <xs:attribute name="RESULTARG"/> </xs:complexType> </xs:element> <xs:element name="Textur"> <xs:complexType> <xs:sequence> <xs:element ref="Datei"/> </xs:sequence> <xs:attribute name="AnzahlMipMapLevel" type="xs:NCName"/> <xs:attribute name="TransparentFarbe" type="xs:NCName"/> <xs:attribute name="TransparentModus"/> </xs:complexType> </xs:element> <xs:element name="Vertex"> <xs:complexType> <xs:sequence> <xs:element ref="p"/> <xs:element ref="n"/> </xs:sequence> <xs:attribute name="U" type="xs:NCName"/> <xs:attribute name="U2" type="xs:NCName"/> <xs:attribute name="V" type="xs:NCName"/> <xs:attribute name="V2" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="n"> <xs:complexType> <xs:attribute name="X" type="xs:NCName"/> <xs:attribute name="Y" type="xs:NCName"/> <xs:attribute name="Z" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="Face"> <xs:complexType> <xs:attribute name="i" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="Ankerpunkt"> <xs:complexType> <xs:sequence> <xs:element ref="p"/> <xs:element ref="phi"/> <xs:element ref="Datei"/> </xs:sequence> <xs:attribute name="AnkerKat"/> <xs:attribute name="AnkerTyp"/> <xs:attribute name="Beschreibung" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="Animation"> <xs:complexType> <xs:sequence> <xs:element ref="AniNrs"/> </xs:sequence> <xs:attribute name="AniBeschreibung" type="xs:NCName"/> <xs:attribute name="AniID"/> <xs:attribute name="AniLoopen" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="AniNrs"> <xs:complexType> <xs:attribute name="AniNr" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="MeshAnimation"> <xs:complexType> <xs:complexContent> <xs:extension base="AniPunkt"> <xs:attribute name="AniGeschw" type="xs:NCName"/> <xs:attribute name="AniIndex" type="xs:NCName"/> <xs:attribute name="AniNr" type="xs:NCName"/> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> <xs:element name="VerknAnimation"> <xs:complexType> <xs:complexContent> <xs:extension base="AniPunkt"> <xs:attribute name="AniGeschw" type="xs:NCName"/> <xs:attribute name="AniIndex" type="xs:NCName"/> <xs:attribute name="AniNr" type="xs:NCName"/> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> <xs:element name="Datei"> <xs:complexType> <xs:attribute name="Dateiname" type="xs:NCName"/> <xs:attribute name="NurInfo" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="p"> <xs:complexType> <xs:attribute name="X" type="xs:NCName"/> <xs:attribute name="Y" type="xs:NCName"/> <xs:attribute name="Z" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="phi"> <xs:complexType> <xs:attribute name="X"/> <xs:attribute name="Y"/> <xs:attribute name="Z"/> </xs:complexType> </xs:element> <xs:element name="Sound"> <xs:complexType> <xs:choice> <xs:element ref="Abhaengigkeit"/> <xs:sequence> <xs:element ref="Sound"/> <xs:element ref="Datei"/> </xs:sequence> </xs:choice> <xs:attribute name="Autostart" type="xs:NCName"/> <xs:attribute name="GeschwAendern" type="xs:NCName"/> <xs:attribute name="Lautstaerke" type="xs:NCName"/> <xs:attribute name="Loop" type="xs:NCName"/> <xs:attribute name="MaxRadius" type="xs:NCName"/> <xs:attribute name="MinRadius" type="xs:NCName"/> <xs:attribute name="PosAnlauf" type="xs:NCName"/> <xs:attribute name="PosAuslauf" type="xs:NCName"/> <xs:attribute name="dreiD" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="Abhaengigkeit"> <xs:complexType> <xs:sequence> <xs:element ref="Kennfeld"/> </xs:sequence> <xs:attribute name="LautstaerkeAbh" type="xs:NCName"/> <xs:attribute name="PhysikGroesse"/> <xs:attribute name="SoundGeschwAbh" type="xs:NCName"/> <xs:attribute name="SoundOperator"/> <xs:attribute name="Trigger"/> <xs:attribute name="TriggerGrenze" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="Kennfeld"> <xs:complexType> <xs:sequence> <xs:element ref="Pkt"/> <xs:element ref="Stufe"/> </xs:sequence> <xs:attribute name="Beschreibung" type="xs:NCName"/> <xs:attribute name="xText" type="xs:NCName"/> <xs:attribute name="yText" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="Pkt"> <xs:complexType> <xs:attribute name="PktX" type="xs:NCName"/> <xs:attribute name="PktY" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="Stufe"> <xs:complexType> <xs:attribute name="StufenWert" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:complexType name="AniPunkt"> <xs:sequence> <xs:element ref="AniPunkt"/> </xs:sequence> </xs:complexType> <xs:element name="AniPunkt"> <xs:complexType> <xs:sequence> <xs:element ref="p"/> <xs:element ref="q"/> </xs:sequence> <xs:attribute name="AniDimmung" type="xs:NCName"/> <xs:attribute name="AniZeit" type="xs:NCName"/> </xs:complexType> </xs:element> <xs:element name="q"> <xs:complexType> <xs:attribute name="W"/> <xs:attribute name="X"/> <xs:attribute name="Y"/> <xs:attribute name="Z"/> </xs:complexType> </xs:element> </xs:schema>