Skip to content

Commit

Permalink
Add version 4 schema
Browse files Browse the repository at this point in the history
  • Loading branch information
dh-nunes committed Dec 3, 2017
1 parent 981b548 commit 00a740d
Showing 1 changed file with 46 additions and 5 deletions.
51 changes: 46 additions & 5 deletions ModuleConfig.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
</xs:annotation>
<xs:attribute name="path" use="required">
<xs:annotation>
<xs:documentation>The path to the image in the FOMOD.</xs:documentation>
<xs:documentation>The path to the image in the FOMod.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
Expand All @@ -242,7 +242,7 @@
</xs:annotation>
<xs:attribute name="path" use="optional" type="xs:string">
<xs:annotation>
<xs:documentation>The path to the image in the FOMOD. If omitted the FOMOD's screenshot is used.</xs:documentation>
<xs:documentation>The path to the image in the FOMod. If omitted the FOMod's screenshot is used.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="showImage" type="xs:boolean" default="true" use="optional">
Expand Down Expand Up @@ -427,13 +427,54 @@
</xs:attribute>
</xs:complexType>

<xs:complexType name="stepList">
<xs:annotation>
<xs:documentation>A list of install steps.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="installStep" type="installStep" minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A list of install steps for the mod.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="order" type="orderEnum" use="optional" default="Ascending">
<xs:annotation>
<xs:documentation>The order by which to list the steps.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>

<xs:complexType name="installStep">
<xs:annotation>
<xs:documentation>A step in the install process containing groups of optional plugins.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="visible" type="compositeDependency" minOccurs="0">
<xs:annotation>
<xs:documentation>The pattern against which to match the conditional flags and installed files. If the pattern is matched, then the install step will be visible.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="optionalFileGroups" type="groupList" minOccurs="1">
<xs:annotation>
<xs:documentation>The list of optional files (or plugins) that may optionally be installed for this module.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The name of the install step.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>

<xs:complexType name="fileSystemItem">
<xs:annotation>
<xs:documentation>A file or folder that may be installed as part of a module or plugin.</xs:documentation>
</xs:annotation>
<xs:attribute name="source" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The path to the file or folder in the FOMOD.</xs:documentation>
<xs:documentation>The path to the file or folder in the FOMod.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="destination" type="xs:string">
Expand Down Expand Up @@ -628,9 +669,9 @@
<xs:documentation>The list of files and folders that must be installed for this module.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="optionalFileGroups" type="groupList" minOccurs="0">
<xs:element name="installSteps" type="stepList" minOccurs="0">
<xs:annotation>
<xs:documentation>The list of optional files (or plugins) that may optionally be installed for this module.</xs:documentation>
<xs:documentation>The list of install steps that determine which files (or plugins) that may optionally be installed for this module.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="conditionalFileInstalls" type="conditionalFileInstallList" minOccurs="0">
Expand Down

0 comments on commit 00a740d

Please sign in to comment.