GameLOD.xsd 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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. <!--
  4. Attribute Types
  5. -->
  6. <xs:simpleType name="ProcessorType">
  7. <xs:restriction base="xs:string">
  8. <xs:enumeration value="UNKNOWN" />
  9. <xs:enumeration value="PENTIUM_4" />
  10. <xs:enumeration value="CORE_DUO" />
  11. <xs:enumeration value="ATHLON" />
  12. <xs:enumeration value="ATHLON_64" />
  13. </xs:restriction>
  14. </xs:simpleType>
  15. <xs:simpleType name="GameLODType">
  16. <xs:restriction base="xs:string">
  17. <xs:enumeration value="UNKNOWN" />
  18. <xs:enumeration value="VERY_LOW" />
  19. <xs:enumeration value="LOW" />
  20. <xs:enumeration value="MEDIUM" />
  21. <xs:enumeration value="HIGH" />
  22. <xs:enumeration value="ULTRA_HIGH" />
  23. <xs:enumeration value="CUSTOM" /> <!-- Make sure this is last -->
  24. </xs:restriction>
  25. </xs:simpleType>
  26. <xs:simpleType name="ShaderLODType">
  27. <xs:restriction base="xs:string">
  28. <xs:enumeration value="LOW" />
  29. <xs:enumeration value="MEDIUM" />
  30. <xs:enumeration value="HIGH" />
  31. <xs:enumeration value="ULTRA_HIGH" />
  32. </xs:restriction>
  33. </xs:simpleType>
  34. <xs:simpleType name="AudioLODType">
  35. <xs:restriction base="xs:string">
  36. <xs:enumeration value="UNKNOWN" />
  37. <xs:enumeration value="LOW" />
  38. <xs:enumeration value="HIGH" />
  39. </xs:restriction>
  40. </xs:simpleType>
  41. <xs:complexType name="ProcessorRequirement">
  42. <xs:attribute name="Type"
  43. type="ProcessorType"
  44. use="required" />
  45. <xs:attribute name="MinMHz"
  46. type="SageInt"
  47. use="required" />
  48. </xs:complexType>
  49. <xs:complexType name="GraphicsDevice">
  50. <xs:attribute name="VendorId" type="SageUnsignedInt" use="required" />
  51. <xs:attribute name="DeviceId" type="SageUnsignedInt" use="required" />
  52. <xs:attribute name="Name" type="xs:string" use="required" />
  53. <xs:attribute name="Level" type="GameLODType" use="required" />
  54. <xs:attribute name="MacLevel" type="GameLODType" use="optional" />
  55. </xs:complexType>
  56. <!--
  57. LOD Assets
  58. -->
  59. <!-- This is the list of graphics card that map to a level of Static LOD -->
  60. <xs:complexType name="GraphicsHardware" xas:typeGroup="Xml">
  61. <xs:complexContent>
  62. <xs:extension base="BaseAssetType">
  63. <xs:sequence>
  64. <xs:element name="Device" type="GraphicsDevice" minOccurs="0" maxOccurs="unbounded" />
  65. </xs:sequence>
  66. </xs:extension>
  67. </xs:complexContent>
  68. </xs:complexType>
  69. <!-- This is the system requirements to set the level of Static LOD -->
  70. <xs:complexType name="GameLODPreset" xas:typeGroup="Xml">
  71. <xs:complexContent>
  72. <xs:extension base="BaseAssetType">
  73. <xs:sequence>
  74. <xs:element name="Processor" type="ProcessorRequirement" minOccurs="1" maxOccurs="unbounded" />
  75. </xs:sequence>
  76. <xs:attribute name="Level"
  77. type="GameLODType"
  78. default="MEDIUM" />
  79. <xs:attribute name="SystemMemory"
  80. type="SageInt"
  81. default="500" />
  82. <xs:attribute name="Xres"
  83. type="SageInt"
  84. default="1024" />
  85. <xs:attribute name="YRes"
  86. type="SageInt"
  87. default="768" />
  88. </xs:extension>
  89. </xs:complexContent>
  90. </xs:complexType>
  91. <!-- The static LOD level That has all the settings based on the level of LOD selected -->
  92. <xs:complexType name="StaticGameLOD" xas:typeGroup="Xml">
  93. <xs:complexContent>
  94. <xs:extension base="BaseAssetType">
  95. <xs:attribute name="Level"
  96. type="GameLODType"
  97. default="MEDIUM" />
  98. <xs:attribute name="ModelLOD"
  99. type="ModelLODType"
  100. default="HIGH" />
  101. <xs:attribute name="EffectsLOD"
  102. type="EffectsLODType"
  103. default="MEDIUM" />
  104. <xs:attribute name="MaxParticleCount"
  105. type="SageInt"
  106. default="1500" />
  107. <xs:attribute name="UseShadowDecals"
  108. type="SageBool"
  109. default="true" />
  110. <xs:attribute name="UseShadowMapping"
  111. type="SageBool"
  112. default="false" />
  113. <xs:attribute name="ShadowLOD"
  114. type="ShadowLODType"
  115. default="MEDIUM" />
  116. <xs:attribute name="TerrainLOD"
  117. type="TerrainLODType"
  118. default="MEDIUM" />
  119. <xs:attribute name="UseTerrainNormalMap"
  120. type="SageBool"
  121. default="false" />
  122. <xs:attribute name="WaterLOD"
  123. type="WaterLODType"
  124. default="MEDIUM" />
  125. <xs:attribute name="MaxTankTrackEdges"
  126. type="SageInt"
  127. default="100" />
  128. <xs:attribute name="MaxTankTrackOpaqueEdges"
  129. type="SageInt"
  130. default="25" />
  131. <xs:attribute name="MaxTankTrackFadeDelay"
  132. type="SageInt"
  133. default="30000" />
  134. <xs:attribute name="ShowProps"
  135. type="SageBool"
  136. default="true" />
  137. <xs:attribute name="TextureReductionFactor"
  138. type="SageInt"
  139. default="0" />
  140. <xs:attribute name="AnimationLOD"
  141. type="AnimationLODType"
  142. default="HIGH" />
  143. <xs:attribute name="ShaderLOD"
  144. type="ShaderLODType"
  145. default="MEDIUM" />
  146. <xs:attribute name="DecalLOD"
  147. type="DecalLODType"
  148. default="HIGH" />
  149. <xs:attribute name="MinParticlePriority"
  150. type="FXParticleSystem_Priority"
  151. default="MEDIUM_OR_ABOVE" />
  152. <xs:attribute name="MinParticleSkipPriority"
  153. type="FXParticleSystem_Priority"
  154. default="ALWAYS_RENDER" />
  155. <xs:attribute name="AntiAliasingQuality"
  156. type="SageInt"
  157. default="0" />
  158. <xs:attribute name="EnableVSync"
  159. type="SageBool"
  160. default="true" />
  161. </xs:extension>
  162. </xs:complexContent>
  163. </xs:complexType>
  164. <!-- Dynamic LOD settings -->
  165. <xs:complexType name="DynamicGameLOD" xas:typeGroup="Xml">
  166. <xs:complexContent>
  167. <xs:extension base="BaseAssetType">
  168. <xs:attribute name="Level"
  169. type="GameLODType"
  170. default="MEDIUM" />
  171. <xs:attribute name="MinimumFPS"
  172. type="SageInt"
  173. default="10" />
  174. <xs:attribute name="ParticleSkipMask"
  175. type="SageInt"
  176. default="1" />
  177. <xs:attribute name="DebrisSkipMask"
  178. type="SageInt"
  179. default="0" />
  180. <xs:attribute name="SlowDeathScale"
  181. type="SageReal"
  182. default="1.0" />
  183. </xs:extension>
  184. </xs:complexContent>
  185. </xs:complexType>
  186. <!-- Audio LOD settings -->
  187. <xs:complexType name="AudioLOD" xas:typeGroup="Xml">
  188. <xs:complexContent>
  189. <xs:extension base="BaseAssetType">
  190. <xs:sequence>
  191. <xs:element name="Processor" type="ProcessorRequirement" minOccurs="0" maxOccurs="unbounded" />
  192. </xs:sequence>
  193. <xs:attribute name="Level"
  194. type="AudioLODType"
  195. use="required" />
  196. <xs:attribute name="AllowReverb"
  197. type="SageBool"
  198. use="required" />
  199. <xs:attribute name="MaximumAmbientStreams"
  200. type="SageInt"
  201. use="required" />
  202. <xs:attribute name="AllowCPULimiter"
  203. type="SageBool"
  204. use="required" />
  205. <xs:attribute name="CPULimiterLevel"
  206. type="Percentage"
  207. use="required" />
  208. <xs:attribute name="CPULimiterLevelDebug"
  209. type="Percentage"
  210. use="required" />
  211. <xs:attribute name="MaxVoices"
  212. type="SageInt"
  213. use="required" />
  214. <xs:attribute name="OutputBitRate"
  215. type="SageInt"
  216. use="required" />
  217. <xs:attribute name="AllowVolumeCompressor"
  218. type="SageBool"
  219. use="required" />
  220. <xs:attribute name="MinimumLogicalProcessors"
  221. type="SageUnsignedInt"
  222. use="required" />
  223. </xs:extension>
  224. </xs:complexContent>
  225. </xs:complexType>
  226. </xs:schema>