ObjectSound.xsd 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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" xmlns:xas="uri:ea.com:eala:asset:schema" targetNamespace="uri:ea.com:eala:asset" elementFormDefault="qualified" xmlns:XmlEdit="uri:ea.com:eala:XmlEdit">
  3. <xs:complexType name="AudioVoiceEntry">
  4. <xs:complexContent>
  5. <xs:extension base="SoundOrEvaEvent">
  6. <xs:attribute name="AudioType" type="ThingTemplateVoiceType" use="required" />
  7. </xs:extension>
  8. </xs:complexContent>
  9. </xs:complexType>
  10. <!-- This is a unit response played when the object of an action is a specific type of GameObject
  11. e.g. an override for VoiceEnter played only when entering a GDI Ox, but not any other type of
  12. enterable object. -->
  13. <xs:complexType name="AudioObjectSpecificVoiceEntry">
  14. <xs:complexContent>
  15. <xs:extension base="SoundOrEvaEvent">
  16. <xs:attribute name="AudioType" type="ThingTemplateObjectSpecificVoiceType" use="required"/>
  17. <xs:attribute name="TargetObject" type="GameObjectWeakRef" use="required" />
  18. </xs:extension>
  19. </xs:complexContent>
  20. </xs:complexType>
  21. <!-- A voice which, instead of being reference by a fixed enum value within the code, is instead
  22. referenced by name from another XML file. E.g. an upgrade like the old Generals' Battle Done
  23. might tell the unit which receives it to play "VoiceGainBattleDrone" when that unit finishes
  24. building the battle drone. Each upgrade could ask the units to play a different voice while
  25. each unit could play a different voice for the same upgrade. -->
  26. <xs:complexType name="AudioVoiceReferentialEntry" >
  27. <xs:complexContent>
  28. <xs:extension base="SoundOrEvaEvent">
  29. <xs:attribute name="Name" type="StringHash" use="required"/>
  30. </xs:extension>
  31. </xs:complexContent>
  32. </xs:complexType>
  33. <xs:complexType name="AudioSoundEntry">
  34. <xs:attribute name="Sound" type="AudioEventInfoRef" use="required" />
  35. <xs:attribute name="AudioType" type="ThingTemplateSoundType" use="required" />
  36. </xs:complexType>
  37. <xs:complexType name="AudioArrayVoice">
  38. <xs:sequence>
  39. <xs:element name="AudioEntry" type="AudioVoiceEntry" minOccurs="0" maxOccurs="unbounded" />
  40. <xs:element name="ObjectSpecificEntry" type="AudioObjectSpecificVoiceEntry" minOccurs="0" maxOccurs="unbounded" />
  41. <xs:element name="NamedEntry" type ="AudioVoiceReferentialEntry" minOccurs="0" maxOccurs="unbounded" />
  42. </xs:sequence>
  43. </xs:complexType>
  44. <xs:complexType name="AudioArraySound">
  45. <xs:sequence>
  46. <xs:element name="AudioEntry" type="AudioSoundEntry" minOccurs="0" maxOccurs="unbounded" />
  47. </xs:sequence>
  48. </xs:complexType>
  49. </xs:schema>