AssetTypeRegisteredObjectSet.xsd 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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="http://tempuri.org/XmlEdit.xsd">
  3. <xs:include schemaLocation="includes/RegisteredObjectSetId.xsd"/>
  4. <xs:simpleType name="RegisteredObjectSetType">
  5. <xs:restriction base="xs:string">
  6. <xs:enumeration value="GLOBAL" />
  7. <xs:enumeration value="PLAYER" />
  8. </xs:restriction>
  9. </xs:simpleType>
  10. <xs:complexType name="RegisteredObjectSet" xas:typeGroup="Xml">
  11. <xs:complexContent>
  12. <xs:extension base="BaseInheritableAsset">
  13. <!-- This is supposed to work to put a TestObject() function in the
  14. SageBinaryData::RegisteredObjectSet struct that can be called instead of accessing the
  15. ObjectFilter directly, so that in the future this could be expanded beyond always using
  16. a single ObjectFilter. (Eg, multiple ObjectFilters, some other custom criteria, etc).
  17. BUT, there appears to be a bug in the header generation so it doesn't work yet.
  18. -->
  19. <xs:annotation>
  20. <xs:appinfo source="GameData.xsd">
  21. <GameData xmlns="uri:ea.com:eala:asset:gamedata">
  22. <Function name="TestObject" return="bool">
  23. <Parameter name="object" type="::Object" const="true" modifier="*"/>
  24. <Parameter name="playerOwningRegistry" type="::Player" const="true" modifier="*" defaultValue="NULL"/>
  25. </Function>
  26. </GameData>
  27. </xs:appinfo>
  28. </xs:annotation>
  29. <xs:sequence>
  30. <xs:element name="ObjectFilter" type="ObjectFilter" minOccurs="1" maxOccurs="1"/>
  31. </xs:sequence>
  32. <xs:attribute name="SetId" type="RegisteredObjectSetId" use="required" />
  33. <xs:attribute name="Type" type="RegisteredObjectSetType" use="required" />
  34. </xs:extension>
  35. </xs:complexContent>
  36. </xs:complexType>
  37. </xs:schema>