AssetTypeScenarioManager.xsd 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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="SkirmishAI/AIDifficulties.xsd"/>
  6. <xs:complexType name="ScenarioEnemy">
  7. <xs:attribute name="Faction" type="PlayerTemplateRef" />
  8. <xs:attribute name="Personality" type="AIPersonalityDefinitionRef" />
  9. <xs:attribute name="Portrait" type="ImageRef" />
  10. <xs:attribute name="Difficulty" type="AIDifficulty" />
  11. <xs:attribute name="Team" type="SageUnsignedInt"/>
  12. <xs:attribute name="StartPosition" type="SageUnsignedInt" />
  13. <xs:attribute name="Color" type="MultiplayerColorWeakRef" />
  14. </xs:complexType>
  15. <xs:complexType name="ScenarioTemplate" xas:typeGroup="Xml">
  16. <xs:sequence>
  17. <xs:element name="Enemy" type="ScenarioEnemy" minOccurs="1" maxOccurs="5" />
  18. <xs:element name="ScenarioUnlock" type="ScenarioTemplateWeakRef" minOccurs="0" maxOccurs="unbounded" />
  19. </xs:sequence>
  20. <xs:attribute name="id" type="Poid" xas:refType="ScenarioTemplate"/>
  21. <xs:attribute name="UiName" type="xs:string" />
  22. <xs:attribute name="Title" type="xs:string" />
  23. <xs:attribute name="ShortTitle" type="xs:string" />
  24. <xs:attribute name="Description" type="xs:string" />
  25. <xs:attribute name="IsStartingScenario" type="SageBool" default="false" />
  26. <xs:attribute name="IsCriticalPath" type="SageBool" default="false" />
  27. <xs:attribute name="MapName" type="xs:string" />
  28. <xs:attribute name="UseRandomCrates" type="SageBool" default="false" />
  29. <xs:attribute name="PlayerStartPosition" type="SageUnsignedInt" />
  30. <xs:attribute name="PlayerTeam" type="SageUnsignedInt" default="1"/>
  31. <xs:attribute name="PlayerColor" type="MultiplayerColorWeakRef" default="ColorGold"/>
  32. <xs:attribute name="ParTime" type="Time" default="0s" />
  33. <xs:attribute name="ParTimeScoreBonus" type="SageUnsignedInt" />
  34. <xs:attribute name="DifficultyScoreBonus" type="SageUnsignedInt" />
  35. <xs:attribute name="MaxEfficiencyScoreMultiplier" type="SageReal" default="3.0" />
  36. <xs:attribute name="UnitUnlock" type="GameObjectWeakRef" use="required" />
  37. </xs:complexType>
  38. <xs:complexType name="UnlockableUnit">
  39. <xs:attribute name="Faction" type="PlayerTemplateRef" />
  40. <xs:attribute name="Name" type="GameObjectWeakRef" />
  41. </xs:complexType>
  42. <xs:complexType name="ScenarioManagerData" xas:typeGroup="Xml">
  43. <xs:complexContent>
  44. <xs:extension base="BaseAssetType">
  45. <xs:sequence>
  46. <xs:element name="ScenarioTemplate" type="ScenarioTemplate" minOccurs="0" maxOccurs="unbounded" />
  47. <xs:element name="UnlockableUnit" type="UnlockableUnit" minOccurs="0" maxOccurs="unbounded" />
  48. </xs:sequence>
  49. <xs:attribute name="IntroMovie" type="xs:string" />
  50. <xs:attribute name="CriticalPathCompletionMovie" type="xs:string" />
  51. <xs:attribute name="FullCompletionMovie" type="xs:string" />
  52. <xs:attribute name="MaxRedAlertDeposit" type="SageInt" default="50000" />
  53. </xs:extension>
  54. </xs:complexContent>
  55. </xs:complexType>
  56. </xs:schema>