<?xml version="1.0"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="types">
	<xs:import schemaLocation="../Types.xsd" namespace="types"/>

	<xs:element name="Model">
		<xs:annotation>
			<xs:documentation>A visible model loaded from disk</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:all>
				<xs:element name="Resource" type="t:string" minOccurs="0">
					<xs:annotation><xs:documentation>Model file</xs:documentation></xs:annotation>
				</xs:element>
				<xs:element name="Color" type="t:Color" minOccurs="0">
					<xs:annotation><xs:documentation>Color tint</xs:documentation></xs:annotation>
				</xs:element>
				<xs:element name="Transparent" type="t:bool" minOccurs="0">
					<xs:annotation><xs:documentation>Wether the model is transparent or not</xs:documentation></xs:annotation>
				</xs:element>
				<xs:element name="Visible" type="t:bool" minOccurs="0">
					<xs:annotation><xs:documentation>Whether the model is visible or not</xs:documentation></xs:annotation>
				</xs:element>
				<xs:element name="DiffuseTexture" type="t:bool" minOccurs="0">
					<xs:annotation><xs:documentation>Whether the model should use the Diffuse texture or not</xs:documentation></xs:annotation>
				</xs:element>
				<xs:element name="NormalMap" type="t:bool" minOccurs="0">
					<xs:annotation><xs:documentation>Whether the model should use the Normalmap or not</xs:documentation></xs:annotation>
				</xs:element>
				<xs:element name="SpecularMap" type="t:bool" minOccurs="0">
					<xs:annotation><xs:documentation>Whether the model should use the Specularmap or not</xs:documentation></xs:annotation>
				</xs:element>
				<xs:element name="GlowMap" type="t:bool" minOccurs="0">
					<xs:annotation><xs:documentation>Whether the model should use the Glowmap or not</xs:documentation></xs:annotation>
				</xs:element>
				<xs:element name="GlowIntensity" type="t:double" minOccurs="0">
					<xs:annotation><xs:documentation>Intensity of the glow map</xs:documentation></xs:annotation>
				</xs:element>
				<xs:element name="Shadow" type="t:bool" minOccurs="0">
					<xs:annotation><xs:documentation>Whether the object cast/recieve shadows or not</xs:documentation></xs:annotation>
				</xs:element>
			</xs:all>
		</xs:complexType>
	</xs:element>
</xs:schema>