| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334 |
- <?xml version="1.0" encoding="utf-8"?>
- <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">
- <xs:complexType name="RGBColor">
- <xs:annotation>
- <xs:documentation>floating point RGB data</xs:documentation>
- </xs:annotation>
- <xs:attribute name="R"
- type="xs:float"
- use="required" />
- <xs:attribute name="G"
- type="xs:float"
- use="required" />
- <xs:attribute name="B"
- type="xs:float"
- use="required" />
- </xs:complexType>
- <xs:complexType name="RGBAColor">
- <xs:annotation>
- <xs:documentation>floating point RGBA data</xs:documentation>
- </xs:annotation>
- <xs:attribute name="R"
- type="xs:float"
- use="required" />
- <xs:attribute name="G"
- type="xs:float"
- use="required" />
- <xs:attribute name="B"
- type="xs:float"
- use="required" />
- <xs:attribute name="A"
- type="xs:float"
- use="required" />
- </xs:complexType>
- <xs:complexType name="Color3f">
- <xs:sequence></xs:sequence>
- <xs:attribute name="r" type="SageReal" />
- <xs:attribute name="g" type="SageReal" />
- <xs:attribute name="b" type="SageReal" />
- </xs:complexType>
- <xs:complexType name="Color4f">
- <xs:sequence></xs:sequence>
- <xs:attribute name="r" type="SageReal" />
- <xs:attribute name="g" type="SageReal" />
- <xs:attribute name="b" type="SageReal" />
- <xs:attribute name="a" type="SageReal" />
- </xs:complexType>
-
- <xs:simpleType name="AssetId">
- <xs:restriction base="xs:string"/>
- </xs:simpleType>
- <xs:simpleType name="AssetIdList">
- <xs:list itemType="AssetId" />
- </xs:simpleType>
- <xs:simpleType name="SageUnsignedShort">
- <xs:restriction base="xs:string" >
- <xs:pattern value="(\d{1,5})|(0x[0-9a-fA-F]{1,4})|(=[_a-zA-Z]+)" />
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="SageReal">
- <xs:restriction base="xs:string" >
- <xs:pattern value="((\+|\-)?((\.\d{1,16})|(\d{1,16}(\.\d{0,16})?))([eE](\+|\-)?\d{1,3})?)|(=[_a-zA-Z]+)"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="SageInt">
- <xs:restriction base="xs:string" >
- <xs:pattern value="((\+|\-)?\d{1,10})|((0x)[A-Fa-f0-9]{8,8})|(=[_a-zA-Z]+)" />
- </xs:restriction>
- </xs:simpleType>
-
- <xs:simpleType name="SageIntList" >
- <xs:list itemType="SageInt" />
- </xs:simpleType>
- <xs:simpleType name="UnsignedShortList">
- <xs:list itemType="xs:unsignedShort" />
- </xs:simpleType>
- <xs:simpleType name="FloatList">
- <xs:list itemType="xs:float" />
- </xs:simpleType>
- <xs:simpleType name="UnsignedByteList">
- <xs:list itemType="xs:unsignedByte" />
- </xs:simpleType>
- <xs:simpleType name="SageBool">
- <xs:restriction base="xs:string" >
- <xs:pattern value="([Ff]alse)|([Tt]rue)|0|1" />
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="SageUnsignedInt">
- <xs:restriction base="xs:string" >
- <xs:pattern value="(\d{1,10})|(0x[0-9a-zA-Z]{1,8})|(0\.0)|(=[_a-zA-Z]+)" />
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="SageUnsignedIntList">
- <xs:list itemType="SageUnsignedInt" />
- </xs:simpleType>
-
- <xs:simpleType name="SageDurationUnsignedInt">
- <xs:restriction base="xs:string" />
- </xs:simpleType>
- <xs:simpleType name="Angle">
- <xs:restriction base="xs:string" xas:tag="AngleTag">
- <xs:pattern value="(((\+|\-)?((\.\d{1,16})|(\d{1,16}(\.\d{0,16})?))([eE](\+|\-)?\d{1,3})?)|(=[_a-zA-Z]+))(r|d)"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="Percentage">
- <xs:restriction base="xs:string" xas:tag="PercentageTag">
- <xs:pattern value="((\+|\-)?((\.\d{1,16})|(\d{1,16}(\.\d{0,16})?))([%])?)|(=[_a-zA-Z]+)"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="PercentageList">
- <xs:list itemType="Percentage"/>
- </xs:simpleType>
- <xs:simpleType name="Time">
- <xs:restriction base="xs:string" xas:tag="TimeTag">
- <xs:pattern value="(((\+|\-)?((\.\d{1,16})|(\d{1,16}(\.\d{0,16})?))([eE](\+|\-)?\d{1,3})?)|(=[_a-zA-Z]+))(s|ms)"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="PositiveNonZeroReal">
- <xs:restriction base="SageReal" xas:tag="PositiveNonZeroRealTag" />
- </xs:simpleType>
- <xs:simpleType name="DurationUnsignedInt">
- <xs:restriction base="SageDurationUnsignedInt" xas:tag="DurationTag" />
- </xs:simpleType>
- <xs:simpleType name="Velocity">
- <xs:restriction base="SageReal" xas:tag="VelocityTag" />
- </xs:simpleType>
- <xs:complexType name="TimeRange">
- <xs:attribute name="Low" type="Time" use="required"/>
- <xs:attribute name="High" type="Time" use="required"/>
- </xs:complexType>
-
- <xs:complexType name="RealRange">
- <xs:attribute name="Low" type="SageReal" use="required"/>
- <xs:attribute name="High" type="SageReal" use="required"/>
- </xs:complexType>
- <xs:complexType name="IntRange">
- <xs:attribute name="Low" type="SageInt" use="required"/>
- <xs:attribute name="High" type="SageInt" use="required"/>
- </xs:complexType>
-
- <xs:complexType name="ICoord2D">
- <xs:sequence></xs:sequence>
- <xs:attribute name="x" type="SageInt" default="0" />
- <xs:attribute name="y" type="SageInt" default="0" />
- </xs:complexType>
- <xs:complexType name="Vector2" xas:tag="VectorHack">
- <xs:sequence></xs:sequence>
- <xs:attribute name="x" type="SageReal" default="0.0" />
- <xs:attribute name="y" type="SageReal" default="0.0" />
- </xs:complexType>
- <xs:complexType name="Vector3" xas:tag="VectorHack">
- <xs:sequence></xs:sequence>
- <xs:attribute name="x" type="SageReal" default="0.0" />
- <xs:attribute name="y" type="SageReal" default="0.0" />
- <xs:attribute name="z" type="SageReal" default="0.0" />
- </xs:complexType>
- <xs:complexType name="Vector4" xas:tag="VectorHack">
- <xs:sequence></xs:sequence>
- <xs:attribute name="x" type="SageReal" default="0.0" />
- <xs:attribute name="y" type="SageReal" default="0.0" />
- <xs:attribute name="z" type="SageReal" default="0.0" />
- <xs:attribute name="w" type="SageReal" default="0.0" />
- </xs:complexType>
- <xs:complexType name="Quaternion" xas:tag="VectorHack">
- <xs:sequence></xs:sequence>
- <xs:attribute name="x" type="SageReal" default="0.0" />
- <xs:attribute name="y" type="SageReal" default="0.0" />
- <xs:attribute name="z" type="SageReal" default="0.0" />
- <xs:attribute name="w" type="SageReal" default="0.0" />
- </xs:complexType>
- <xs:complexType name="Color3" xas:byValue="true" xas:tag="ColorTag">
- <xs:sequence></xs:sequence>
- <xs:attribute name="R" type="xs:unsignedByte" />
- <xs:attribute name="G" type="xs:unsignedByte" />
- <xs:attribute name="B" type="xs:unsignedByte" />
- </xs:complexType>
- <xs:complexType name="Color4" xas:byValue="true" xas:tag="ColorTag">
- <xs:sequence></xs:sequence>
- <xs:attribute name="R" type="xs:unsignedByte" />
- <xs:attribute name="G" type="xs:unsignedByte" />
- <xs:attribute name="B" type="xs:unsignedByte" />
- <xs:attribute name="A" type="xs:unsignedByte" />
- </xs:complexType>
- <xs:simpleType name="DistributionType">
- <xs:restriction base="xs:string">
- <xs:enumeration value="CONSTANT" />
- <xs:enumeration value="UNIFORM" />
- <xs:enumeration value="GAUSSIAN" />
- <xs:enumeration value="TRIANGULAR" />
- <xs:enumeration value="LOW_BIAS" />
- <xs:enumeration value="HIGH_BIAS" />
- </xs:restriction>
- </xs:simpleType>
-
- <xs:complexType name="RandomVariable">
- <xs:sequence></xs:sequence>
- <xs:attribute name="Type" type="DistributionType" default="UNIFORM" />
- <xs:attribute name="Low" type="SageReal" />
- <xs:attribute name="High" type="SageReal" />
- </xs:complexType>
- <xs:complexType name="LogicRandomVariable">
- <xs:annotation>
- <xs:appinfo source="../GameData.xsd">
- <GameData xmlns="uri:ea.com:eala:asset:gamedata">
- <Function name="GetValue"
- return="float_t" />
- </GameData>
- </xs:appinfo>
- </xs:annotation>
- <xs:complexContent>
- <xs:extension base="RandomVariable">
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
- <xs:complexType name="ClientRandomVariable">
- <xs:annotation>
- <xs:appinfo source="../GameData.xsd">
- <GameData xmlns="uri:ea.com:eala:asset:gamedata">
- <Function name="GetValue"
- return="float_t" />
- </GameData>
- </xs:appinfo>
- </xs:annotation>
- <xs:complexContent>
- <xs:extension base="RandomVariable">
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
- <xs:simpleType name="Script">
- <xs:restriction base="xs:string" />
- </xs:simpleType>
- <xs:simpleType name="WideString">
- <xs:restriction base="xs:string" />
- </xs:simpleType>
- <xs:simpleType name="StringList">
- <xs:list itemType="xs:token" />
- </xs:simpleType>
- <xs:simpleType name="StickyString">
- <xs:restriction base="xs:string" xas:tag="StickyStringTag" />
- </xs:simpleType>
- <xs:complexType name="ReplaceTexture">
- <xs:sequence></xs:sequence>
- <xs:attribute name="Original" type="TextureRef" />
- <xs:attribute name="New" type="TextureRef" />
- </xs:complexType>
- <!-- This is the type of Object-level voices (e.g. VoiceAttack). It is normally a sound reference, but
- it can also be a Eva event reference, or both, because some units (especially those that can't
- talk) use Eva events in place of a few voice responses. -->
- <xs:complexType name="SoundOrEvaEvent" >
- <xs:sequence></xs:sequence>
- <xs:attribute name="Sound" type="AudioEventInfoRef" use="optional" />
- <xs:attribute name="EvaEvent" type="EvaEventRef" default="" />
- </xs:complexType>
- <xs:simpleType name="EmotionNuggetTemplate">
- <xs:restriction base="xs:string" />
- </xs:simpleType>
- <xs:simpleType name="StringHash">
- <xs:restriction base="xs:string" xas:tag="StringHashTag" />
- </xs:simpleType>
- <xs:simpleType name="FontFamily">
- <xs:restriction base="xs:string" />
- </xs:simpleType>
- <xs:simpleType name="LargeGroupAudioKeyList">
- <xs:restriction base="xs:string" />
- </xs:simpleType>
- <xs:complexType name="MoneyTransaction">
- <xs:attribute name="Account"
- type="SageUnsignedInt"
- use="required" />
- <xs:attribute name="Amount"
- type="SageUnsignedInt"
- use="required" />
- </xs:complexType>
- <xs:simpleType name="ComparisonOperator">
- <xs:restriction base="xs:string">
- <xs:enumeration value="LESS_THAN" />
- <xs:enumeration value="LESS_THAN_OR_EQUAL" />
- <xs:enumeration value="EQUAL" />
- <xs:enumeration value="GREATER_THAN_OR_EQUAL" />
- <xs:enumeration value="GREATER_THAN" />
- </xs:restriction>
- </xs:simpleType>
- <!-- Dynamic Game State changes -->
- <xs:simpleType name="StateChangeType">
- <xs:restriction base="xs:string">
- <xs:enumeration value="ENTER" />
- <xs:enumeration value="EXIT" />
- </xs:restriction>
- </xs:simpleType>
-
- </xs:schema>
|