Skip to content

Commit

Permalink
示例程序。
Browse files Browse the repository at this point in the history
  • Loading branch information
game-universe committed Jun 26, 2018
1 parent e4e0912 commit 0f145e6
Show file tree
Hide file tree
Showing 228 changed files with 29,722 additions and 0 deletions.
28 changes: 28 additions & 0 deletions engine/example/gui/XMLRefSchema/CEGUIConfig.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">

<xsd:element name="CEGUIConfig" type="CEGUIConfigType"/>

<xsd:simpleType name="LogLevel">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Errors"/>
<xsd:enumeration value="Standard"/>
<xsd:enumeration value="Informative"/>
<xsd:enumeration value="Insane"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:complexType name="CEGUIConfigType">
<xsd:attribute name="Logfile" type="xsd:string" use="optional" default=""/>
<xsd:attribute name="Scheme" type="xsd:string" use="optional" default=""/>
<xsd:attribute name="DefaultFont" type="xsd:string" use="optional" default=""/>
<xsd:attribute name="Layout" type="xsd:string" use="optional" default=""/>
<xsd:attribute name="InitScript" type="xsd:string" use="optional" default=""/>
<xsd:attribute name="TerminateScript" type="xsd:string" use="optional" default=""/>
<xsd:attribute name="DefaultResourceGroup" type="xsd:string" use="optional" default="" />
<xsd:attribute name="LoggingLevel" type="LogLevel" use="optional" default="Standard" />
</xsd:complexType>

</xsd:schema>


391 changes: 391 additions & 0 deletions engine/example/gui/XMLRefSchema/Falagard.xsd

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions engine/example/gui/XMLRefSchema/Font.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xsd:element name="Font" type="FontType" />

<xsd:complexType name="FontType">
<xsd:sequence>
<xsd:element name="Mapping" type="MapType" maxOccurs="unbounded" minOccurs="0" />
</xsd:sequence>
<xsd:attributeGroup ref="FontAttrs" />
</xsd:complexType>
<xsd:complexType name="MapType">
<xsd:attribute name="Codepoint" type="xsd:nonNegativeInteger" use="required" />
<xsd:attribute name="Image" type="xsd:string" use="required" />
<xsd:attribute name="HorzAdvance" type="xsd:integer" use="optional" default="-1" />
</xsd:complexType>
<xsd:attributeGroup name="FontAttrs">
<xsd:attribute name="Name" type="xsd:string" use="required" />
<xsd:attribute name="Filename" type="xsd:string" use="required" />
<xsd:attribute name="ResourceGroup" type="xsd:string" use="optional" default="" />
<xsd:attribute name="Type" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="FreeType" />
<xsd:enumeration value="Pixmap" />
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="Size" type="xsd:nonNegativeInteger" use="optional" default="12" />
<xsd:attribute name="NativeHorzRes" type="xsd:nonNegativeInteger" use="optional" default="640" />
<xsd:attribute name="NativeVertRes" type="xsd:nonNegativeInteger" use="optional" default="480" />
<xsd:attribute name="AutoScaled" type="xsd:boolean" use="optional" default="false" />
<xsd:attribute name="AntiAlias" type="xsd:boolean" use="optional" default="true" />
</xsd:attributeGroup>
</xsd:schema>
63 changes: 63 additions & 0 deletions engine/example/gui/XMLRefSchema/GUILayout.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">

<xsd:element name="GUILayout" type="GUILayoutType"/>

<xsd:complexType name="GUILayoutType">
<xsd:sequence>
<xsd:element name="Window" type="WindowType" />
</xsd:sequence>
<xsd:attribute name="Parent" type="xsd:string" use="optional" default=""/>
</xsd:complexType>

<xsd:complexType name="WindowType">
<xsd:sequence>
<xsd:element name="LayoutImport" type="LayoutImportType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="Event" type="EventType" minOccurs="0" maxOccurs="unbounded" />
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="Window" type="WindowType" />
<xsd:element name="AutoWindow" type="AutoWindowType" />
</xsd:choice>
<xsd:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="Type" type="xsd:string" use="required"/>
<xsd:attribute name="Name" type="xsd:string" use="optional" default="" />
</xsd:complexType>

<xsd:complexType name="AutoWindowType">
<xsd:sequence>
<xsd:element name="LayoutImport" type="LayoutImportType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="Event" type="EventType" minOccurs="0" maxOccurs="unbounded" />
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="Window" type="WindowType" />
<xsd:element name="AutoWindow" type="AutoWindowType" />
</xsd:choice>
<xsd:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="NameSuffix" type="xsd:string" use="required"/>
</xsd:complexType>

<xsd:complexType name="PropertyType">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="Name" type="xsd:string" use="required"/>
<xsd:attribute name="Value" type="xsd:string" use="optional"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>

<xsd:complexType name="LayoutImportType">
<xsd:attribute name="Filename" type="xsd:string" use="required"/>
<xsd:attribute name="Prefix" type="xsd:string" use="optional" default="" />
<xsd:attribute name="ResourceGroup" type="xsd:string" use="optional" default="" />
</xsd:complexType>

<xsd:complexType name="EventType">
<xsd:attribute name="Name" type="xsd:string" use="required"/>
<xsd:attribute name="Function" type="xsd:string" use="required"/>
</xsd:complexType>

</xsd:schema>

54 changes: 54 additions & 0 deletions engine/example/gui/XMLRefSchema/GUIScheme.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xsd:element name="GUIScheme" type="SchemeType" />
<xsd:complexType name="SchemeType">
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="Imageset" type="NamedDataType" />
<xsd:element name="ImagesetFromImage" type="NamedDataType" />
<xsd:element name="Font" type="NamedDataType" />
<xsd:element name="LookNFeel" type="FileDataType" />
<xsd:element name="WindowSet" type="WindowSetType" />
<xsd:element name="WindowRendererSet" type="WindowRendererSetType" />
<xsd:element name="WindowAlias" type="WindowAliasType" />
<xsd:element name="FalagardMapping" type="FalagardMapType" />
</xsd:choice>
<xsd:attribute name="Name" type="xsd:string" use="required" />
</xsd:complexType>
<xsd:complexType name="WindowSetType">
<xsd:sequence>
<xsd:element name="WindowFactory" type="WindowFactoryType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="Filename" type="xsd:string" use="required" />
</xsd:complexType>
<xsd:complexType name="WindowRendererSetType">
<xsd:sequence>
<xsd:element name="WindowRendererFactory" type="WindowRendererFactoryType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="Filename" type="xsd:string" use="required" />
</xsd:complexType>
<xsd:complexType name="FileDataType">
<xsd:attribute name="Filename" type="xsd:string" use="required" />
<xsd:attribute name="ResourceGroup" type="xsd:string" use="optional" default="" />
</xsd:complexType>
<xsd:complexType name="NamedDataType">
<xsd:attribute name="Name" type="xsd:string" use="required" />
<xsd:attribute name="Filename" type="xsd:string" use="required" />
<xsd:attribute name="ResourceGroup" type="xsd:string" use="optional" default="" />
</xsd:complexType>
<xsd:complexType name="WindowFactoryType">
<xsd:attribute name="Name" type="xsd:string" use="required" />
</xsd:complexType>
<xsd:complexType name="WindowRendererFactoryType">
<xsd:attribute name="Name" type="xsd:string" use="required" />
</xsd:complexType>
<xsd:complexType name="WindowAliasType">
<xsd:attribute name="Alias" type="xsd:string" use="required" />
<xsd:attribute name="Target" type="xsd:string" use="required" />
</xsd:complexType>
<xsd:complexType name="FalagardMapType">
<xsd:attribute name="WindowType" type="xsd:string" use="required" />
<xsd:attribute name="TargetType" type="xsd:string" use="required" />
<xsd:attribute name="Renderer" type="xsd:string" use="required" />
<xsd:attribute name="LookNFeel" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:schema>
28 changes: 28 additions & 0 deletions engine/example/gui/XMLRefSchema/Imageset.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">

<xsd:element name="Imageset" type="ImagesetType"/>

<xsd:complexType name="ImagesetType">
<xsd:sequence>
<xsd:element name="Image" type="ImageType" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="Imagefile" type="xsd:string" use="required"/>
<xsd:attribute name="ResourceGroup" type="xsd:string" use="optional" default="" />
<xsd:attribute name="Name" type="xsd:string" use="required"/>
<xsd:attribute name="NativeHorzRes" type="xsd:nonNegativeInteger" use="optional" default="640" />
<xsd:attribute name="NativeVertRes" type="xsd:nonNegativeInteger" use="optional" default="480" />
<xsd:attribute name="AutoScaled" type="xsd:boolean" use="optional" default="false" />
</xsd:complexType>

<xsd:complexType name="ImageType">
<xsd:attribute name="Name" type="xsd:string" use="required"/>
<xsd:attribute name="XPos" type="xsd:nonNegativeInteger" use="required"/>
<xsd:attribute name="YPos" type="xsd:nonNegativeInteger" use="required"/>
<xsd:attribute name="Width" type="xsd:nonNegativeInteger" use="required"/>
<xsd:attribute name="Height" type="xsd:nonNegativeInteger" use="required"/>
<xsd:attribute name="XOffset" type="xsd:integer" use="optional" default="0"/>
<xsd:attribute name="YOffset" type="xsd:integer" use="optional" default="0"/>
</xsd:complexType>

</xsd:schema>
Loading

0 comments on commit 0f145e6

Please sign in to comment.