AssetTypeWeather.xsd 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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:complexType name="RainType">
  4. <xs:attribute name="RainTexture" type="TextureRef" />
  5. <xs:attribute name="IsRaining" type="SageBool" default="false" />
  6. <xs:attribute name="NumRaindropsPerBox" type="SageInt" default="16000" />
  7. <xs:attribute name="RainBoxWidth" type="SageReal" default="200" />
  8. <xs:attribute name="RainBoxLength" type="SageReal" default="200" />
  9. <xs:attribute name="RainBoxHeight" type="SageReal" default="200" />
  10. <xs:attribute name="MinWidth" type="SageReal" default="0.5" />
  11. <xs:attribute name="MaxWidth" type="SageReal" default="1.5" />
  12. <xs:attribute name="MinHeight" type="SageReal" default="5.0" />
  13. <xs:attribute name="MaxHeight" type="SageReal" default="15.0" />
  14. <xs:attribute name="MinSpeed" type="SageReal" default="50.0" />
  15. <xs:attribute name="MaxSpeed" type="SageReal" default="150.0" />
  16. <xs:attribute name="MinAlpha" type="SageReal" default="0.1" />
  17. <xs:attribute name="MaxAlpha" type="SageReal" default="0.5" />
  18. <xs:attribute name="WindStrength" type="SageReal" default="1.0" />
  19. </xs:complexType>
  20. <xs:complexType name="LightningType">
  21. <xs:sequence>
  22. <xs:element name="LightningFactor" type="ClientRandomVariable" minOccurs="0" maxOccurs="1" />
  23. </xs:sequence>
  24. <xs:attribute name="LightningDuration" type="SageInt" default="30" />
  25. <xs:attribute name="LightningChance" type="SageReal" default="0.01" />
  26. </xs:complexType>
  27. <xs:complexType name="CloudType">
  28. <xs:sequence>
  29. <xs:element name="CloudTextureSize" type="Vector2" minOccurs="0" maxOccurs="1" />
  30. <xs:element name="CloudOffsetPerSecond" type="Vector2" minOccurs="0" maxOccurs="1" />
  31. </xs:sequence>
  32. </xs:complexType>
  33. <xs:complexType name="WeatherData">
  34. <xs:attribute name="id" type="WeatherType" />
  35. <xs:attribute name="HasLightning" type="SageBool" />
  36. <xs:attribute name="Sound" type="AudioEventInfoRef" />
  37. </xs:complexType>
  38. <xs:complexType name="Weather" xas:runtimeWrapper="::WeatherSetting" xas:typeGroup="Xml">
  39. <xs:complexContent>
  40. <xs:extension base="BaseInheritableAsset">
  41. <xs:sequence>
  42. <xs:element name="Rain" type="RainType" minOccurs="0" maxOccurs="1" />
  43. <xs:element name="Lightning" type="LightningType" minOccurs="0" maxOccurs="1" />
  44. <xs:element name="Cloud" type="CloudType" minOccurs="0" maxOccurs="1" />
  45. <xs:element name="WeatherData" type="WeatherData" minOccurs="0" maxOccurs="unbounded" />
  46. </xs:sequence>
  47. </xs:extension>
  48. </xs:complexContent>
  49. </xs:complexType>
  50. </xs:schema>