AssetTypeCampaignManager.xsd 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="uri:ea.com:eala:asset" xmlns:at="uri:ea.com:eala:asset:type"
  3. xmlns:xas="uri:ea.com:eala:asset:schema" targetNamespace="uri:ea.com:eala:asset" elementFormDefault="qualified"
  4. xmlns:XmlEdit="http://tempuri.org/XmlEdit.xsd">
  5. <xs:include schemaLocation="Includes/FactionType.xsd"/>
  6. <xs:include schemaLocation="Includes/Ref.xsd"/>
  7. <xs:simpleType name="CampaignFlagType">
  8. <xs:restriction base="xs:string">
  9. <xs:enumeration value="Use_Alternate_Campaign_Finale" /> <!-- Set this flag to play an alternate ending for your mission -->
  10. </xs:restriction>
  11. </xs:simpleType>
  12. <xs:simpleType name="CampaignFlagBitFlags">
  13. <xs:list itemType="CampaignFlagType" />
  14. </xs:simpleType>
  15. <xs:complexType name="CampaignAICommander" >
  16. <xs:attribute name="Portrait" type="OnDemandImageRef" />
  17. <xs:attribute name="Personality" type="xs:string"/>
  18. <xs:attribute name="Description" type="xs:string" />
  19. <xs:attribute name="Faction" type="FactionType" use="required"/>
  20. </xs:complexType>
  21. <xs:complexType name="CampaignMovie" >
  22. <xs:attribute name="ImageRef" type="ImageRef" />
  23. <xs:attribute name="FileName" type="xs:string" use="required"/>
  24. <xs:attribute name="ScreenName" type="xs:string" />
  25. <xs:attribute name="Description" type="xs:string" />
  26. </xs:complexType>
  27. <xs:complexType name="MissionTemplate" xas:typeGroup="Xml">
  28. <xs:complexContent>
  29. <xs:extension base="BaseAssetType">
  30. <xs:sequence>
  31. <xs:element name="Prerequisite" type="xs:int" default="-1" minOccurs="0" maxOccurs="unbounded" />
  32. <xs:element name="PrerequisiteTemplate" type="AssetReference" xas:refType="MissionTemplate" minOccurs="0" maxOccurs="unbounded" xas:pipelineOnly="true" />
  33. <xs:element name="Objective" type="xs:string" default="-1" minOccurs="0" maxOccurs="5" />
  34. <xs:element name="BonusObjective" type="xs:string" default="-1" minOccurs="0" maxOccurs="5" />
  35. <xs:element name="AICommander" type="CampaignAICommander" minOccurs="0" maxOccurs="3" />
  36. <xs:element name="IntroMovie" type="CampaignMovie" minOccurs="1" maxOccurs="1" />
  37. </xs:sequence>
  38. <xs:attribute name="DisplayName" type="xs:string" />
  39. <xs:attribute name="ShortDisplayName" type="xs:string" />
  40. <xs:attribute name="OverviewTalkingHead" type="xs:string" />
  41. <xs:attribute name="OverviewBackground" type="xs:string" />
  42. <xs:attribute name="Title" type="xs:string" />
  43. <xs:attribute name="MapName" type="xs:string" />
  44. <xs:attribute name="BriefingFLA" type="xs:string" />
  45. <xs:attribute name="BriefingSummary" type="xs:string" />
  46. <xs:attribute name="VictoryAchEvent" type="SageUnsignedInt" />
  47. <xs:attribute name="VictoryAchEventMedium" type="SageUnsignedInt" />
  48. <xs:attribute name="VictoryAchEventHard" type="SageUnsignedInt" />
  49. <xs:attribute name="VictoryAchEventCoop" type="SageUnsignedInt" />
  50. <xs:attribute name="VictoryAchEventBonusObj" type="SageUnsignedInt" />
  51. </xs:extension>
  52. </xs:complexContent>
  53. </xs:complexType>
  54. <xs:complexType name="CampaignTemplate" xas:typeGroup="Xml">
  55. <xs:complexContent>
  56. <xs:extension base="BaseAssetType">
  57. <xs:sequence>
  58. <xs:element name="Mission" type="AssetReference" xas:refType="MissionTemplate" minOccurs="1" maxOccurs="unbounded" />
  59. <xs:element name="FinalMovie" type="CampaignMovie" minOccurs="1" maxOccurs="1" />
  60. <xs:element name="AlternateFinalMovie" type="CampaignMovie" minOccurs="1" maxOccurs="1" />
  61. </xs:sequence>
  62. <xs:attribute name="PrerequisiteCampaign" type="FactionType" default="Neutral" />
  63. <xs:attribute name="PrerequisiteCampaignMissionNumber" type="SageUnsignedInt" default="0" />
  64. <xs:attribute name="DisplayName" type="xs:string" />
  65. <xs:attribute name="ConsoleAutosaveFilename" type="xs:string" />
  66. <xs:attribute name="ForceSinglePlayer" type="SageBool" />
  67. </xs:extension>
  68. </xs:complexContent>
  69. </xs:complexType>
  70. <xs:complexType name="CampaignEnumerator" xas:typeGroup="Xml">
  71. <xs:complexContent>
  72. <xs:extension base="BaseAssetType">
  73. <xs:sequence>
  74. <xs:element name="Campaign" type="AssetReference" xas:refType="CampaignTemplate" minOccurs="1" maxOccurs="unbounded" />
  75. </xs:sequence>
  76. </xs:extension>
  77. </xs:complexContent>
  78. </xs:complexType>
  79. </xs:schema>