<?xml version="1.0" encoding="UTF-8" ?>

<PropertyList>

	<path>EHAM_gate.ac</path>

	<!-- Required -->
	<is-animated-jetway type="bool">true</is-animated-jetway>

	<!-- Parameters read by the script -->
	<rotunda>
		<x-m>24.892</x-m>
		<y-m>0.01</y-m>
		<z-m>5.041</z-m>
	</rotunda>
	<extend-offset-m>19.19</extend-offset-m>
	<entrance-offset-m>1.85</entrance-offset-m>
	<min-extend-m>-4.15</min-extend-m>
	<max-extend-m>7.65</max-extend-m>

	<!-- Parameters set by the script -->
	<toggle-action-script type="string" />
	<extend-m type="string" />
	<pitch-deg type="string" />
	<heading-deg type="string" />
	<entrance-heading-deg type="string" />
	<hood-deg type="string" />
	<gate type="string" />
	<airline-code type="string" />

	<!-- Animations -->
	<!-- Click action -->
	<animation>
		<type>pick</type>
		<action>
			<button>0</button>
			<repeatable type="bool">false</repeatable>
			<binding>
				<command>nasal</command>
				<script alias="../../../../toggle-action-script" />
			</binding>
		</action>
	</animation>

	<!-- Gate number -->
	<text>
		<name>Gate number 1</name>
		<offsets>
			<x-m>24.094</x-m>
			<y-m>0.207</y-m>
			<z-m>8.064</z-m>
			<heading-deg>45</heading-deg>
		</offsets>
		<alignment>right-center</alignment>
		<axis-alignment>yz-plane</axis-alignment>
		<type>literal</type>
		<text alias="../../gate" />
		<font>helvetica_bold.txf</font>
		<character-size>0.6</character-size>
		<character-aspect-ratio type="double">-1.3</character-aspect-ratio>
		<font-resolution>
			<width type="int">32</width>
			<height type="int">32</height>
		</font-resolution>
	</text>
	<text>
		<name>Gate number 2</name>
		<offsets>
			<x-m>25.123</x-m>
			<y-m>-0.802</y-m>
			<z-m>8.064</z-m>
			<heading-deg>165</heading-deg>
		</offsets>
		<alignment>right-center</alignment>
		<axis-alignment>yz-plane</axis-alignment>
		<type>literal</type>
		<text alias="../../gate" />
		<font>helvetica_bold.txf</font>
		<character-size>0.6</character-size>
		<character-aspect-ratio type="double">-1.3</character-aspect-ratio>
		<font-resolution>
			<width type="int">32</width>
			<height type="int">32</height>
		</font-resolution>
	</text>
	<text>
		<name>Gate number 3</name>
		<offsets>
			<x-m>25.482</x-m>
			<y-m>0.595</y-m>
			<z-m>8.064</z-m>
			<heading-deg>-75</heading-deg>
		</offsets>
		<alignment>right-center</alignment>
		<axis-alignment>yz-plane</axis-alignment>
		<type>literal</type>
		<text alias="../../gate" />
		<font>helvetica_bold.txf</font>
		<character-size>0.6</character-size>
		<character-aspect-ratio type="double">-1.3</character-aspect-ratio>
		<font-resolution>
			<width type="int">32</width>
			<height type="int">32</height>
		</font-resolution>
	</text>
	<animation>
		<type>material</type>
		<object-name>Gate number 1</object-name>
		<object-name>Gate number 2</object-name>
		<object-name>Gate number 3</object-name>
		<ambient>
			<red>0.9</red>
			<green>0.9</green>
			<blue>0</blue>
		</ambient>
		<emission>
			<red alias="../../ambient/red" />
			<green alias="../../ambient/green" />
			<blue alias="../../ambient/blue" />
		</emission>
	</animation>

	<!-- Day/night lighting -->
	<animation>
		<type>material</type>
		<object-name>Support</object-name>
		<object-name>Tunnel1</object-name>
		<object-name>Tunnel2</object-name>
		<object-name>Terminal</object-name>
		<object-name>Rotunda</object-name>
		<object-name>Entrance</object-name>
		<emission>
			<red>0.3</red>
			<green>0.3</green>
			<blue>0.3</blue>
		</emission>
	</animation>

	<!-- Don't let the entrance rotunda interact with the aircraft -->
	<animation>
		<object-name>Entrance</object-name>
		<object-name>Rotunda</object-name>
		<enable-hot type="bool">false</enable-hot>
	</animation>

	<!-- Jetway movement -->
	<animation>
		<type>rotate</type>
		<object-name>Tunnel1</object-name>
		<object-name>Tunnel2</object-name>
		<object-name>Support</object-name>
		<object-name>Rotunda</object-name>
		<object-name>Entrance</object-name>
		<property alias="../../heading-deg" />
		<center>
			<x-m>24.892</x-m>
			<y-m>0.01</y-m>
			<z-m>0</z-m>
		</center>
		<axis>
			<x>0</x>
			<y>0</y>
			<z>-1</z>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>Tunnel1</object-name>
		<object-name>Tunnel2</object-name>
		<object-name>Rotunda</object-name>
		<object-name>Entrance</object-name>
		<property alias="../../pitch-deg" />
		<center>
			<x-m>25.7</x-m>
			<y-m>0</y-m>
			<z-m>5.041</z-m>
		</center>
		<axis>
			<x>0</x>
			<y>-1</y>
			<z>0</z>
		</axis>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>Tunnel2</object-name>
		<object-name>Rotunda</object-name>
		<object-name>Entrance</object-name>
		<property alias="../../extend-m" />
		<axis>
			<x>1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>Entrance</object-name>
		<property alias="../../entrance-heading-deg" />
		<center>
			<x-m>44.064</x-m>
			<y-m>-0.063</y-m>
			<z-m>0</z-m>
		</center>
		<axis>
			<x>0</x>
			<y>0</y>
			<z>-1</z>
		</axis>
	</animation>

</PropertyList>